@InterfaceStability.Evolving public class Resource extends Object
Modifier and Type | Field and Description |
---|---|
static Resource |
CLUSTER
A resource representing the whole cluster.
|
static String |
CLUSTER_NAME
The name of the CLUSTER resource.
|
Constructor and Description |
---|
Resource(ResourceType resourceType,
String name)
Create an instance of this class with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isUnknown()
Return true if this Resource has any UNKNOWN components.
|
String |
name()
Return the resource name.
|
ResourceType |
resourceType()
Return the resource type.
|
String |
toString() |
public static final String CLUSTER_NAME
public static final Resource CLUSTER
public Resource(ResourceType resourceType, String name)
resourceType
- non-null resource typename
- non-null resource namepublic ResourceType resourceType()
public String name()
public boolean isUnknown()