Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class CronResourcePropertiesConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>>
- java.lang.Object
-
- com.aoapps.appcluster.ResourcePropertiesConfiguration<R,RN>
-
- com.aoapps.appcluster.CronResourcePropertiesConfiguration<R,RN>
-
- All Implemented Interfaces:
CronResourceConfiguration<R,RN>,ResourceConfiguration<R,RN>
public abstract class CronResourcePropertiesConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>> extends ResourcePropertiesConfiguration<R,RN> implements CronResourceConfiguration<R,RN>
The configuration for one resource that is scheduled as a CronJob.- Author:
- AO Industries, Inc.
-
-
Field Summary
-
Fields inherited from class com.aoapps.appcluster.ResourcePropertiesConfiguration
display, enabled, id, masterRecords, masterRecordsTtl, properties, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCronResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulegetSynchronizeSchedule(RN localResourceNode, RN remoteResourceNode)Gets the synchronization schedule between the local node and the remote node.intgetSynchronizeTimeout()Gets the number of seconds before a synchronization pass times-out.SchedulegetTestSchedule(RN localResourceNode, RN remoteResourceNode)Gets the test schedule between the local node and the remote node.intgetTestTimeout()Gets the number of seconds before a test pass times-out.-
Methods inherited from class com.aoapps.appcluster.ResourcePropertiesConfiguration
equals, getDisplay, getId, getMasterRecords, getMasterRecordsTtl, getResourceNodeConfigurations, getType, hashCode, isEnabled, newResource, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.aoapps.appcluster.ResourceConfiguration
equals, getDisplay, getId, getMasterRecords, getMasterRecordsTtl, getResourceNodeConfigurations, getType, hashCode, isEnabled, newResource, toString
-
-
-
-
Constructor Detail
-
CronResourcePropertiesConfiguration
protected CronResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id) throws AppClusterConfigurationException
- Throws:
AppClusterConfigurationException
-
-
Method Detail
-
getSynchronizeTimeout
public int getSynchronizeTimeout()
Description copied from interface:CronResourceConfigurationGets the number of seconds before a synchronization pass times-out.- Specified by:
getSynchronizeTimeoutin interfaceCronResourceConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>>
-
getSynchronizeSchedule
public Schedule getSynchronizeSchedule(RN localResourceNode, RN remoteResourceNode) throws AppClusterConfigurationException
Description copied from interface:CronResourceConfigurationGets the synchronization schedule between the local node and the remote node.- Specified by:
getSynchronizeSchedulein interfaceCronResourceConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>>- Throws:
AppClusterConfigurationException
-
getTestTimeout
public int getTestTimeout()
Description copied from interface:CronResourceConfigurationGets the number of seconds before a test pass times-out.- Specified by:
getTestTimeoutin interfaceCronResourceConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>>
-
getTestSchedule
public Schedule getTestSchedule(RN localResourceNode, RN remoteResourceNode) throws AppClusterConfigurationException
Description copied from interface:CronResourceConfigurationGets the test schedule between the local node and the remote node.- Specified by:
getTestSchedulein interfaceCronResourceConfiguration<R extends CronResource<R,RN>,RN extends CronResourceNode<R,RN>>- Throws:
AppClusterConfigurationException
-
-