public class RequestOperationLevel extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OPERATION_CLUSTER_ID |
static String |
OPERATION_HOST_NAME |
static String |
OPERATION_HOSTCOMPONENT_ID |
static String |
OPERATION_LEVEL_ID |
static String |
OPERATION_SERVICE_ID |
Constructor and Description |
---|
RequestOperationLevel(Map<String,String> requestInfoProperties)
Constructs a new entity from
|
RequestOperationLevel(Resource.Type level,
String clusterName,
String serviceName,
String hostComponentName,
String hostName) |
Modifier and Type | Method and Description |
---|---|
String |
getClusterName() |
static String |
getExternalLevelName(String internal)
Converts internal operation level name to an external alias
|
String |
getHostComponentName() |
String |
getHostName() |
static String |
getInternalLevelName(String external)
Converts external operation level alias to an internal name
|
Resource.Type |
getLevel() |
String |
getServiceName() |
static Map<String,String> |
propertiesFor(Resource.Type type,
String clusterName)
Create a map of required properties to be added to a request info map which is
then used to create a
RequestOperationLevel object. |
String |
toString() |
public static final String OPERATION_LEVEL_ID
public static final String OPERATION_CLUSTER_ID
public static final String OPERATION_SERVICE_ID
public static final String OPERATION_HOSTCOMPONENT_ID
public static final String OPERATION_HOST_NAME
public RequestOperationLevel(Resource.Type level, String clusterName, String serviceName, String hostComponentName, String hostName)
public RequestOperationLevel(Map<String,String> requestInfoProperties) throws IllegalArgumentException
requestInfoProperties
- IllegalArgumentException
public static String getInternalLevelName(String external) throws IllegalArgumentException
IllegalArgumentException
public static String getExternalLevelName(String internal)
public Resource.Type getLevel()
public String getClusterName()
public String getServiceName()
public String getHostComponentName()
public String getHostName()
public static Map<String,String> propertiesFor(Resource.Type type, String clusterName)
RequestOperationLevel
object.
Other properties (service name, host name, host component name) can be set on
the request info map itself as needed.type
- resource type for which to calculate the operation levelclusterName
- cluster nameIllegalArgumentException
- if the given resource type
is not mapped to any operation levelCopyright © 2022 Apache Software Foundation. All rights reserved.