Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class CronResource<R extends CronResource<R,N>,N extends CronResourceNode<R,N>>
java.lang.Object
com.aoapps.appcluster.Resource<R,N>
com.aoapps.appcluster.CronResource<R,N>
public abstract class CronResource<R extends CronResource<R,N>,N extends CronResourceNode<R,N>>
extends Resource<R,N>
A resource that is scheduled by CronDaemon.
- Author:
- AO Industries, Inc.
-
Constructor Summary
ModifierConstructorDescriptionprotected
CronResource
(AppCluster cluster, CronResourceConfiguration<R, N> resourceConfiguration, Collection<? extends ResourceNode<?, ?>> resourceNodes) -
Method Summary
Modifier and TypeMethodDescriptionint
The synchronize timeout for this resource in seconds.int
The test timeout for this resource in seconds.protected abstract CronResourceSynchronizer
<R, N> newResourceSynchronizer
(N localResourceNode, N remoteResourceNode, ResourceConfiguration<R, N> resourceConfiguration) Creates the resource synchronizer for this specific type of resource ornull
if never performs any synchronization between these two nodes.Methods inherited from class com.aoapps.appcluster.Resource
equals, getAllowMultiMaster, getCluster, getDisplay, getDnsMonitor, getEnabledNameservers, getId, getMasterRecords, getMasterRecordsTtl, getResourceNodes, getStatus, getSynchronizerMap, getSynchronizers, getType, hashCode, isEnabled, toString
-
Constructor Details
-
CronResource
protected CronResource(AppCluster cluster, CronResourceConfiguration<R, N> resourceConfiguration, Collection<? extends ResourceNode<?, throws AppClusterConfigurationException?>> resourceNodes) - Throws:
AppClusterConfigurationException
-
-
Method Details
-
getSynchronizeTimeout
public int getSynchronizeTimeout()The synchronize timeout for this resource in seconds. -
getTestTimeout
public int getTestTimeout()The test timeout for this resource in seconds. -
newResourceSynchronizer
protected abstract CronResourceSynchronizer<R,N> newResourceSynchronizer(N localResourceNode, N remoteResourceNode, ResourceConfiguration<R, N> resourceConfiguration) throws AppClusterConfigurationExceptionDescription copied from class:Resource
Creates the resource synchronizer for this specific type of resource ornull
if never performs any synchronization between these two nodes.- Specified by:
newResourceSynchronizer
in classResource<R extends CronResource<R,
N>, N extends CronResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-