public class ServiceTarget
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
TYPE_ALL |
static long |
TYPE_HOST_SELECTION_POLICY |
static long |
TYPE_NONE |
static long |
TYPE_SERVICE_NAME |
static long |
TYPE_SERVICE_TYPE |
| Constructor and Description |
|---|
ServiceTarget(long targetType,
java.lang.String targetName)
Constructor for a construction of a complete ServiceTarget.
|
ServiceTarget(java.lang.String serviceProfileName,
java.util.Collection<java.lang.String> serviceTags)
The service target value object constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getServiceTags()
Access method for the serviceTags property.
|
java.lang.String |
getTargetName()
Returns the targetName property of the ServiceTarget.
|
long |
getTargetType()
Returns the targetType of the ServiceTarget.
|
boolean |
isExistInTargetList(java.util.Collection targetList)
Checks if self exists in the passing Target list.
|
void |
setServiceTags(java.util.Collection<java.lang.String> serviceTags)
Sets the value of the serviceTags property.
|
void |
setTargetName(java.lang.String name)
Sets the value of the targetName property of the ServiceTarget.
|
void |
setTargetType(long type)
Sets the value of the targetType property of the ServiceTarget.
|
java.lang.String |
toString()
Method returns a string representation of this object.
|
public static final long TYPE_SERVICE_TYPE
public static final long TYPE_SERVICE_NAME
public static final long TYPE_ALL
public static final long TYPE_HOST_SELECTION_POLICY
public static final long TYPE_NONE
public ServiceTarget(long targetType,
java.lang.String targetName)
targetType - The target type which must be one of the
4 target type constants defined in this class.targetName - Stores the service dn if the target type is TYPE_SERVICE_NAME;
Stores the service profile name if the target type is TYPE_SERVICE_TYPE or
TYPE_HOST_SELECTION_POLICY;
Stores a wildcard character "*" if the target type is TYPE_ALLpublic ServiceTarget(java.lang.String serviceProfileName,
java.util.Collection<java.lang.String> serviceTags)
serviceProfileName - The service profile name.serviceTags - the collection of service tags.public long getTargetType()
public void setTargetType(long type)
type - The new value of the targetType property.public void setTargetName(java.lang.String name)
name - The new value of the targetName property.public java.lang.String getTargetName()
public void setServiceTags(java.util.Collection<java.lang.String> serviceTags)
serviceTags - the new value of the serviceTags property.public java.util.Collection<java.lang.String> getServiceTags()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isExistInTargetList(java.util.Collection targetList)
targetList - a collection of ServiceTarget objects