Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Interface ResourceConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
- All Known Subinterfaces:
CronResourceConfiguration<R,
N>
- All Known Implementing Classes:
CronResourcePropertiesConfiguration
,ResourcePropertiesConfiguration
public interface ResourceConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
The configuration for one resource.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
Set
<? extends ResourceNodeConfiguration<R, N>> Gets the source of per-node resource configurations.getType()
int
hashCode()
boolean
newResource
(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) Creates a new resource from this configuration.toString()
-
Method Details
-
toString
String toString() -
equals
-
hashCode
int hashCode() -
getId
String getId()- See Also:
-
isEnabled
boolean isEnabled()- See Also:
-
getDisplay
String getDisplay()- See Also:
-
getMasterRecords
- See Also:
-
getMasterRecordsTtl
int getMasterRecordsTtl()- See Also:
-
getType
String getType()- See Also:
-
getResourceNodeConfigurations
Set<? extends ResourceNodeConfiguration<R,N>> getResourceNodeConfigurations() throws AppClusterConfigurationExceptionGets the source of per-node resource configurations.- Throws:
AppClusterConfigurationException
-
newResource
R newResource(AppCluster cluster, Collection<? extends ResourceNode<?, ?>> resourceNodes) throws AppClusterConfigurationExceptionCreates a new resource from this configuration.- Throws:
AppClusterConfigurationException
-