Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Interface ResourceConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>
-
- All Known Subinterfaces:
CronResourceConfiguration<R,RN>
- All Known Implementing Classes:
CronResourcePropertiesConfiguration,ResourcePropertiesConfiguration
public interface ResourceConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>The configuration for one resource.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplay()StringgetId()Set<? extends Name>getMasterRecords()intgetMasterRecordsTtl()Set<? extends ResourceNodeConfiguration<R,RN>>getResourceNodeConfigurations()Gets the source of per-node resource configurations.StringgetType()inthashCode()booleanisEnabled()RnewResource(AppCluster cluster, Collection<? extends ResourceNode<?,?>> resourceNodes)Creates a new resource from this configuration.StringtoString()
-
-
-
Method Detail
-
getId
String getId()
- See Also:
Resource.getId()
-
isEnabled
boolean isEnabled()
- See Also:
Resource.isEnabled()
-
getDisplay
String getDisplay()
- See Also:
Resource.getDisplay()
-
getMasterRecords
Set<? extends Name> getMasterRecords()
- See Also:
Resource.getMasterRecords()
-
getMasterRecordsTtl
int getMasterRecordsTtl()
- See Also:
Resource.getMasterRecordsTtl()
-
getType
String getType()
- See Also:
Resource.getType()
-
getResourceNodeConfigurations
Set<? extends ResourceNodeConfiguration<R,RN>> getResourceNodeConfigurations() throws AppClusterConfigurationException
Gets the source of per-node resource configurations.- Throws:
AppClusterConfigurationException
-
newResource
R newResource(AppCluster cluster, Collection<? extends ResourceNode<?,?>> resourceNodes) throws AppClusterConfigurationException
Creates a new resource from this configuration.- Throws:
AppClusterConfigurationException
-
-