Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class ResourceNodePropertiesConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>
- java.lang.Object
-
- com.aoapps.appcluster.ResourceNodePropertiesConfiguration<R,RN>
-
- All Implemented Interfaces:
ResourceNodeConfiguration<R,RN>
- Direct Known Subclasses:
CronResourceNodePropertiesConfiguration
public abstract class ResourceNodePropertiesConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>> extends Object implements ResourceNodeConfiguration<R,RN>
The configuration for one resource node.- Author:
- AO Industries, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringnodeIdprotected Set<? extends Name>nodeRecordsprotected AppClusterPropertiesConfigurationpropertiesprotected StringresourceId
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceNodePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String resourceId, String nodeId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetNodeId()Gets the unique ID of the node this configuration represents.Set<? extends Name>getNodeRecords()StringgetResourceId()Gets the unique ID of the resource this configuration represents.inthashCode()abstract RNnewResourceNode(Node node)Creates a new resource node from this configuration.StringtoString()
-
-
-
Field Detail
-
properties
protected final AppClusterPropertiesConfiguration properties
-
resourceId
protected final String resourceId
-
nodeId
protected final String nodeId
-
-
Constructor Detail
-
ResourceNodePropertiesConfiguration
protected ResourceNodePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String resourceId, String nodeId) throws AppClusterConfigurationException
- Throws:
AppClusterConfigurationException
-
-
Method Detail
-
toString
public String toString()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getResourceId
public String getResourceId()
Description copied from interface:ResourceNodeConfigurationGets the unique ID of the resource this configuration represents.- Specified by:
getResourceIdin interfaceResourceNodeConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>
-
getNodeId
public String getNodeId()
Description copied from interface:ResourceNodeConfigurationGets the unique ID of the node this configuration represents.- Specified by:
getNodeIdin interfaceResourceNodeConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>
-
getNodeRecords
public Set<? extends Name> getNodeRecords()
- Specified by:
getNodeRecordsin interfaceResourceNodeConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>- See Also:
ResourceNode.getNodeRecords()
-
newResourceNode
public abstract RN newResourceNode(Node node) throws AppClusterConfigurationException
Description copied from interface:ResourceNodeConfigurationCreates a new resource node from this configuration.- Specified by:
newResourceNodein interfaceResourceNodeConfiguration<R extends Resource<R,RN>,RN extends ResourceNode<R,RN>>- Throws:
AppClusterConfigurationException
-
-