Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class CronResourcePropertiesConfiguration<R extends CronResource<R,N>,N extends CronResourceNode<R,N>>
java.lang.Object
com.aoapps.appcluster.ResourcePropertiesConfiguration<R,N>
com.aoapps.appcluster.CronResourcePropertiesConfiguration<R,N>
- All Implemented Interfaces:
CronResourceConfiguration<R,
,N> ResourceConfiguration<R,
N>
public abstract class CronResourcePropertiesConfiguration<R extends CronResource<R,N>,N extends CronResourceNode<R,N>>
extends ResourcePropertiesConfiguration<R,N>
implements CronResourceConfiguration<R,N>
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
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptiongetSynchronizeSchedule
(N localResourceNode, N remoteResourceNode) Gets the synchronization schedule between the local node and the remote node.int
Gets the number of seconds before a synchronization pass times-out.getTestSchedule
(N localResourceNode, N remoteResourceNode) Gets the test schedule between the local node and the remote node.int
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 Details
-
CronResourcePropertiesConfiguration
protected CronResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id) throws AppClusterConfigurationException - Throws:
AppClusterConfigurationException
-
-
Method Details
-
getSynchronizeTimeout
public int getSynchronizeTimeout()Description copied from interface:CronResourceConfiguration
Gets the number of seconds before a synchronization pass times-out.- Specified by:
getSynchronizeTimeout
in interfaceCronResourceConfiguration<R extends CronResource<R,
N>, N extends CronResourceNode<R, N>>
-
getSynchronizeSchedule
public Schedule getSynchronizeSchedule(N localResourceNode, N remoteResourceNode) throws AppClusterConfigurationException Description copied from interface:CronResourceConfiguration
Gets the synchronization schedule between the local node and the remote node.- Specified by:
getSynchronizeSchedule
in interfaceCronResourceConfiguration<R extends CronResource<R,
N>, N extends CronResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-
getTestTimeout
public int getTestTimeout()Description copied from interface:CronResourceConfiguration
Gets the number of seconds before a test pass times-out.- Specified by:
getTestTimeout
in interfaceCronResourceConfiguration<R extends CronResource<R,
N>, N extends CronResourceNode<R, N>>
-
getTestSchedule
public Schedule getTestSchedule(N localResourceNode, N remoteResourceNode) throws AppClusterConfigurationException Description copied from interface:CronResourceConfiguration
Gets the test schedule between the local node and the remote node.- Specified by:
getTestSchedule
in interfaceCronResourceConfiguration<R extends CronResource<R,
N>, N extends CronResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-