@Service public class Target extends Object
| Constructor and Description |
|---|
Target() |
| Modifier and Type | Method and Description |
|---|---|
List<com.sun.enterprise.config.serverbeans.Server> |
getAllInstances()
Gets all instances present in the domain
|
com.sun.enterprise.config.serverbeans.Cluster |
getCluster(String targetName)
Returns the Cluster element for a given cluster name
|
com.sun.enterprise.config.serverbeans.Config |
getClusterConfig(String targetName)
Returns the config element that represents a given cluster
|
com.sun.enterprise.config.serverbeans.Cluster |
getClusterForInstance(String targetName)
Given an instance that is part of a cluster, returns the Cluster element of the cluster to which the
given instance belongs
|
com.sun.enterprise.config.serverbeans.Config |
getConfig(String targetName)
Given a name (of instance or cluster or config), returns the appropriate Config object
|
List<com.sun.enterprise.config.serverbeans.Server> |
getInstances(List<String> names)
Given a list instance names, get List
|
List<com.sun.enterprise.config.serverbeans.Server> |
getInstances(String targetName)
Given the name of a target, returns a list of Server objects.
|
com.sun.enterprise.config.serverbeans.Node |
getNode(String targetName) |
com.sun.enterprise.config.serverbeans.Config |
getServerConfig(String targetName)
Returns config element that represents a given server
|
boolean |
isCluster(String targetName)
Checks if a given target is cluster or nor
|
boolean |
isThisDAS()
Lets caller to know if the caller is in DAS
|
boolean |
isThisInstance()
Lets caller to know if the caller is in an instance
|
boolean |
isValid(String targetName)
Given name of a target verifies if it is valid
|
public boolean isThisDAS()
public boolean isThisInstance()
public boolean isCluster(String targetName)
targetName - the name of the targetpublic com.sun.enterprise.config.serverbeans.Cluster getCluster(String targetName)
targetName - the name of the targetpublic com.sun.enterprise.config.serverbeans.Config getClusterConfig(String targetName)
targetName - the name of the targetpublic com.sun.enterprise.config.serverbeans.Config getServerConfig(String targetName)
targetName - the name of the targetpublic com.sun.enterprise.config.serverbeans.Config getConfig(String targetName)
targetName - name of targetpublic com.sun.enterprise.config.serverbeans.Cluster getClusterForInstance(String targetName)
targetName - name of targetpublic List<com.sun.enterprise.config.serverbeans.Server> getInstances(List<String> names)
public com.sun.enterprise.config.serverbeans.Node getNode(String targetName)
public List<com.sun.enterprise.config.serverbeans.Server> getInstances(String targetName)
targetName - the name of the targetpublic List<com.sun.enterprise.config.serverbeans.Server> getAllInstances()
public boolean isValid(String targetName)
targetName - name of the targetCopyright © 2018 Eclipse Foundation. All rights reserved.