|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.policy.ServiceTarget
public class ServiceTarget
This class represents a target service, which could be either a specific service instance, an instance specified by a service selection policy, all services of the specified profile, or all services of any profile.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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.Method Detail |
---|
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.Object
public boolean isExistInTargetList(java.util.Collection targetList)
targetList
- a collection of ServiceTarget objects
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |