Module com.aoapps.appcluster.core
Package com.aoapps.appcluster
Class ResourceNodePropertiesConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
java.lang.Object
com.aoapps.appcluster.ResourceNodePropertiesConfiguration<R,N>
- All Implemented Interfaces:
ResourceNodeConfiguration<R,
N>
- Direct Known Subclasses:
CronResourceNodePropertiesConfiguration
public abstract class ResourceNodePropertiesConfiguration<R extends Resource<R,N>,N extends ResourceNode<R,N>>
extends Object
implements ResourceNodeConfiguration<R,N>
The configuration for one resource node.
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final AppClusterPropertiesConfiguration
protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResourceNodePropertiesConfiguration
(AppClusterPropertiesConfiguration properties, String resourceId, String nodeId) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the unique ID of the node this configuration represents.Gets the unique ID of the resource this configuration represents.int
hashCode()
abstract N
newResourceNode
(Node node) Creates a new resource node from this configuration.toString()
-
Field Details
-
properties
-
resourceId
-
nodeId
-
nodeRecords
-
-
Constructor Details
-
ResourceNodePropertiesConfiguration
protected ResourceNodePropertiesConfiguration(AppClusterPropertiesConfiguration properties, String resourceId, String nodeId) throws AppClusterConfigurationException - Throws:
AppClusterConfigurationException
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getResourceId
Description copied from interface:ResourceNodeConfiguration
Gets the unique ID of the resource this configuration represents.- Specified by:
getResourceId
in interfaceResourceNodeConfiguration<R extends Resource<R,
N>, N extends ResourceNode<R, N>>
-
getNodeId
Description copied from interface:ResourceNodeConfiguration
Gets the unique ID of the node this configuration represents.- Specified by:
getNodeId
in interfaceResourceNodeConfiguration<R extends Resource<R,
N>, N extends ResourceNode<R, N>>
-
getNodeRecords
- Specified by:
getNodeRecords
in interfaceResourceNodeConfiguration<R extends Resource<R,
N>, N extends ResourceNode<R, N>> - See Also:
-
newResourceNode
Description copied from interface:ResourceNodeConfiguration
Creates a new resource node from this configuration.- Specified by:
newResourceNode
in interfaceResourceNodeConfiguration<R extends Resource<R,
N>, N extends ResourceNode<R, N>> - Throws:
AppClusterConfigurationException
-