public static final class Resource.Type extends Object implements Comparable<Resource.Type>
Constructor and Description |
---|
Type(String name)
Construct an extended type.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
int |
compareTo(Resource.Type type) |
boolean |
equals(Object o) |
Resource.InternalType |
getInternalType()
Get the internal type enum associated with this type.
|
int |
hashCode() |
boolean |
isInternalType()
Indicate whether this is an internal type.
|
String |
name()
Get the name for this type.
|
int |
ordinal()
Get the ordinal number for this type.
|
String |
toString() |
static Resource.Type |
valueOf(String name)
Get the type associated with the given type name.
|
static Resource.Type[] |
values()
Get all of the known types.
|
public static final Resource.Type Cluster
Resource.InternalType
.public static final Resource.Type Service
public static final Resource.Type Host
public static final Resource.Type Component
public static final Resource.Type HostComponent
public static final Resource.Type Configuration
public static final Resource.Type ConfigGroup
public static final Resource.Type Action
public static final Resource.Type Request
public static final Resource.Type RequestSchedule
public static final Resource.Type Task
public static final Resource.Type User
public static final Resource.Type Stack
public static final Resource.Type StackVersion
public static final Resource.Type OperatingSystem
public static final Resource.Type Repository
public static final Resource.Type StackService
public static final Resource.Type StackConfiguration
public static final Resource.Type StackServiceComponent
public static final Resource.Type DRFeed
public static final Resource.Type DRTargetCluster
public static final Resource.Type DRInstance
public static final Resource.Type Workflow
public static final Resource.Type Job
public static final Resource.Type TaskAttempt
public static final Resource.Type RootService
public static final Resource.Type RootServiceComponent
public static final Resource.Type RootServiceHostComponent
public static final Resource.Type View
public static final Resource.Type ViewInstance
public static final Resource.Type Blueprint
public Type(String name)
name
- the type namepublic final int ordinal()
public String name()
public boolean isInternalType()
public Resource.InternalType getInternalType()
UnsupportedOperationException
- if this type is not an internal typepublic static Resource.Type valueOf(String name)
name
- the type nameIllegalArgumentException
- if the given type name is not associated with any known typepublic static Resource.Type[] values()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int compareTo(Resource.Type type)
compareTo
in interface Comparable<Resource.Type>
Copyright © 2015. All rights reserved.