Package org.nuxeo.runtime.cluster
Class ClusterNodeDescriptor
java.lang.Object
org.nuxeo.runtime.cluster.ClusterNodeDescriptor
- All Implemented Interfaces:
Descriptor
Descriptor of a cluster node.
- Since:
- 11.1
-
Field Summary
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChecks if cluster is enabled for this node.getId()
The descriptor id, descriptors with same id are merged.getName()
Gets the name (id) of the cluster node.merge
(Descriptor o) Returns a descriptor representingother
merged intothis
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
name
-
enabled
-
-
Constructor Details
-
ClusterNodeDescriptor
public ClusterNodeDescriptor()Empty constructor.
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
getName
Gets the name (id) of the cluster node. -
getEnabled
Checks if cluster is enabled for this node. May returnnull
if there is no configuration. -
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-