public class Resource
extends Object
Represents a cluster resource with a tuple of (type, name).
-
Field Summary 
Fields
A resource representing the whole cluster.
The name of the CLUSTER resource.
-
Constructor Summary 
Constructors
Create an instance of this class with the provided parameters.
-
Method Summary 
boolean
int
boolean
Return true if this Resource has any UNKNOWN components.
Return the resource name.
Return the resource type.
-
Field Details 
-
CLUSTER_NAME 
public static final String CLUSTER_NAME
The name of the CLUSTER resource.
- See Also:
-
-
CLUSTER 
A resource representing the whole cluster.
-
Constructor Details 
-
Resource 
Create an instance of this class with the provided parameters.
- Parameters:
resourceType
- non-null resource type
name
- non-null resource name
-
Method Details 
-
resourceType 
Return the resource type.
-
name 
Return the resource name.
-
-
isUnknown 
public boolean isUnknown()
Return true if this Resource has any UNKNOWN components.
-
-