com.supermap.services.providers
Class DataProviderDelayCommitSetting
- java.lang.Object
-
- com.supermap.services.providers.DataProviderDelayCommitSetting
-
- All Implemented Interfaces:
- java.io.Serializable
public class DataProviderDelayCommitSetting extends java.lang.Object implements java.io.SerializableDelayed submission configuration classes- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDataProviderDelayCommitSetting.CommitMode
-
Constructor Summary
Constructors Constructor and Description DataProviderDelayCommitSetting()DataProviderDelayCommitSetting(DataProviderDelayCommitSetting dataProviderDelayCommitSetting)
-
Method Summary
Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)java.lang.StringgetCachePath()Gets the directory where the data update information is temporarily stored.DataProviderDelayCommitSetting.CommitModegetCommitMode()Gets the submission method, there are two ways to submit:intgetCountToCommit()Gets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.java.lang.StringgetDayOfWeek()Gets what day of the week needs to update data.intgetHour()Gets the time to update the data, hours.intgetMinute()Gets the time to update the data, minutes.longgetUpdateInterval()Gets the update interval in seconds, it is valid when commitMode is IntervalUpdate.inthashCode()booleanisEnabled()Whether to enable delayed submissionbooleanisLogEntireErrorMsg()Whether the error details are logged.voidsetCachePath(java.lang.String cachePath)Sets the directory where the data update information is temporarily stored.voidsetCommitMode(DataProviderDelayCommitSetting.CommitMode commitMode)Sets the submission method, there are two ways to submit:voidsetCountToCommit(int countToCommit)Sets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.voidsetDayOfWeek(java.lang.String dayOfWeek)Sets what days of the week need to update data.voidsetEnabled(boolean delayCommit)Sets whether to enable delayed commitvoidsetHour(int hour)Sets the time to update the data, hours.voidsetLogEntireErrorMsg(boolean logEntireErrorMsg)Sets whether the error details are logged.voidsetMinute(int minute)Sets the time to update the data, minutes.voidsetUpdateInterval(long updateInterval)Sets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
-
-
-
Constructor Detail
-
DataProviderDelayCommitSetting
public DataProviderDelayCommitSetting()
-
DataProviderDelayCommitSetting
public DataProviderDelayCommitSetting(DataProviderDelayCommitSetting dataProviderDelayCommitSetting)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Whether to enable delayed submission
The default value is false, which means that it does not open
-
setEnabled
public void setEnabled(boolean delayCommit)
Sets whether to enable delayed commit
-
getCommitMode
public DataProviderDelayCommitSetting.CommitMode getCommitMode()
Gets the submission method, there are two ways to submit:
IntervalUpdate, in accordance with the set time interval to update. SpecificTime, the update is made when the set time point is reached.
-
setCommitMode
public void setCommitMode(DataProviderDelayCommitSetting.CommitMode commitMode)
Sets the submission method, there are two ways to submit:
IntervalUpdate, in accordance with the set time interval to update. SpecificTime, the update is made when the set time point is reached.
-
getCountToCommit
public int getCountToCommit()
Gets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
The default value is 1000, which means automatic commit when there are 1000 delay tasks.
-
setCountToCommit
public void setCountToCommit(int countToCommit)
Sets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
The default value is 1000, which means automatic commit when there are 1000 delay tasks.
-
getUpdateInterval
public long getUpdateInterval()
Gets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
The default value is 3600, which means that the update interval is 1 hour.
-
setUpdateInterval
public void setUpdateInterval(long updateInterval)
Sets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
-
isLogEntireErrorMsg
public boolean isLogEntireErrorMsg()
Whether the error details are logged.
-
setLogEntireErrorMsg
public void setLogEntireErrorMsg(boolean logEntireErrorMsg)
Sets whether the error details are logged.
-
setCachePath
public void setCachePath(java.lang.String cachePath)
Sets the directory where the data update information is temporarily stored.
-
getCachePath
public java.lang.String getCachePath()
Gets the directory where the data update information is temporarily stored.
-
getHour
public int getHour()
Gets the time to update the data, hours. The default value is 3, representing 3:00 am.
-
setHour
public void setHour(int hour)
Sets the time to update the data, hours. The default value is 3, representing 3:00 am.
-
getMinute
public int getMinute()
Gets the time to update the data, minutes.
The default value is 0.
-
setMinute
public void setMinute(int minute)
Sets the time to update the data, minutes.
-
getDayOfWeek
public java.lang.String getDayOfWeek()
Gets what day of the week needs to update data.
Sunday to Saturday correspond to 1 to 7 numbers, each separated by commas. The default is "1,2,3,4,5,6,7" (does not contain double quotation marks)
-
setDayOfWeek
public void setDayOfWeek(java.lang.String dayOfWeek)
Sets what days of the week need to update data.
Sunday to Saturday correspond to 1 to 7 numbers, each separated by commas.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-