Package org.nuxeo.runtime.cluster
Class ClusterNodeDescriptor
- java.lang.Object
-
- org.nuxeo.runtime.cluster.ClusterNodeDescriptor
-
- All Implemented Interfaces:
Descriptor
public class ClusterNodeDescriptor extends Object implements Descriptor
Descriptor of a cluster node.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description String
enabled
String
name
-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description ClusterNodeDescriptor()
Empty constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getEnabled()
Checks if cluster is enabled for this node.String
getId()
The descriptor id, descriptors with same id are merged.String
getName()
Gets the name (id) of the cluster node.ClusterNodeDescriptor
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
-
-
-
-
Method Detail
-
getId
public String 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
public String getName()
Gets the name (id) of the cluster node.
-
getEnabled
public Boolean getEnabled()
Checks if cluster is enabled for this node. May returnnull
if there is no configuration.
-
merge
public ClusterNodeDescriptor merge(Descriptor o)
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
-