R
- the RuntimeInfo that corresponds to this configuration. Each non-abstract subclass
needs to supply this when it extends this class.@Experimental public abstract class AbstractConfiguration<R extends RuntimeInfo> extends Object implements Identifiable<String>, JsonSerializable
As a configuration of a managed entity it can be used to either create, update, or delete it, or to describe it in the result of list or get.
As a filter as input to list or get it can be used to specify what entities to return.
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER
The reserved group name that represents the predefined "cluster" group.
|
Constructor and Description |
---|
AbstractConfiguration() |
Modifier and Type | Method and Description |
---|---|
CommandType |
getCreationCommandType() |
String |
getGroup() |
static String |
getGroupName(String group) |
abstract String |
getId()
Returns the attribute of the configuration that uniquely identifies it
|
abstract Links |
getLinks() |
static boolean |
isCluster(String groupName)
Returns true if the given "groupName" represents the predefined "cluster" group.
|
boolean |
isGlobalRuntime()
Returns true if the RuntimeInfo will be the same on all members;
false if each member can have different RuntimeInfo.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exists, find, remove
public static final String CLUSTER
public static boolean isCluster(String groupName)
CLUSTER
,
is null
, or is an empty string.groupName
- the group name to be checkedCLUSTER
, is
null
, or is an empty stringpublic String getGroup()
public abstract String getId()
getId
in interface Identifiable<String>
public abstract Links getLinks()
public boolean isGlobalRuntime()
public CommandType getCreationCommandType()