L - the type of the protocol specific location, typically a subclass of NodeLocationpublic final class Operation<L> extends NodeLocationProvider<L>
NamedObject.getName() is the user-visible name (e.g. a human-readable, descriptive name).
The getInternalName() is the actual operation that is to be executed on the managed resource.
For example, NamedObject.getName() could return "Deploy Your Application" with the actual operation
to be executed on the managed resource, getInternalName(), being "deploy-app".NodeLocationProvider.Builder<This extends NodeLocationProvider.Builder<?,L>,L>| Constructor and Description |
|---|
Operation(ID id,
Name name,
L location,
String internalName,
List<OperationParam> params)
Creates an operation definition based on the given information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInternalName() |
List<OperationParam> |
getParameters() |
getLocationgetNameaddProperty, equals, getID, getProperties, hashCode, isPersisted, removeProperty, setPersisted, toStringpublic Operation(ID id, Name name, L location, String internalName, List<OperationParam> params)
id - an internal ID that identifies this operation definition. This should be considered opaque to
consumers of this object. It's uniqueness may or may not be across all resources.name - the name given to the operation and should be unique among its peers. That is, operation names
associated with a single resource should all be distinct and unique. But obviously operation
names will be the same across resources (especially resources of the same resource type).
This name could also be useful as a default user-visible name (which perhaps could be overridden
for i18n purposes) and can also be useful for logging.location - identifies the location of the resource to whom this operation definition belongsinternalName - the actual name of the operation as it is known to the actual resource being managed.
This is the name that is used when telling the managed resource what operation to invoke.
It may or may not be the same as name.params - Additional params for this operation definition, e.g. coming from operation-dmr. Can be null.public String getInternalName()
NamedObject.getName() for that).public List<OperationParam> getParameters()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.