Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class ResourcePropertiesConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
java.lang.Object
com.aoapps.appcluster.ResourcePropertiesConfiguration<R,N>
- All Implemented Interfaces:
ResourceConfiguration<R,N>
- Direct Known Subclasses:
CronResourcePropertiesConfiguration
public abstract class ResourcePropertiesConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
extends Object
implements ResourceConfiguration<R,N>
The configuration for one resource.
- Author:
- AO Industries, Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final booleanprotected final Stringprotected final intprotected final AppClusterPropertiesConfigurationprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()intabstract Set<? extends ResourceNodePropertiesConfiguration<R, N>> Gets the source of per-node resource configurations.getType()inthashCode()booleanabstract RnewResource(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) Creates a new resource from this configuration.toString()
-
Field Details
-
properties
-
id
-
enabled
protected final boolean enabled -
display
-
masterRecords
-
masterRecordsTtl
protected final int masterRecordsTtl -
type
-
-
Constructor Details
-
ResourcePropertiesConfiguration
protected ResourcePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String id) throws AppClusterConfigurationException - Throws:
AppClusterConfigurationException
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getId
- Specified by:
getIdin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
getDisplay
- Specified by:
getDisplayin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
getMasterRecords
- Specified by:
getMasterRecordsin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
getMasterRecordsTtl
public int getMasterRecordsTtl()- Specified by:
getMasterRecordsTtlin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
getType
- Specified by:
getTypein interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - See Also:
-
getResourceNodeConfigurations
public abstract Set<? extends ResourceNodePropertiesConfiguration<R,N>> getResourceNodeConfigurations() throws AppClusterConfigurationExceptionDescription copied from interface:ResourceConfigurationGets the source of per-node resource configurations.- Specified by:
getResourceNodeConfigurationsin interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-
newResource
public abstract R newResource(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) throws AppClusterConfigurationExceptionDescription copied from interface:ResourceConfigurationCreates a new resource from this configuration.- Specified by:
newResourcein interfaceResourceConfiguration<R extends Resource<R,N>, N extends ResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-
