|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.internal.api.Target
@Service public class Target
| Constructor Summary | |
|---|---|
Target()
|
|
| Method Summary | |
|---|---|
java.util.List<Server> |
getAllInstances()
Gets all instances present in the domain |
Cluster |
getCluster(java.lang.String targetName)
Returns the Cluster element for a given cluster name |
Config |
getClusterConfig(java.lang.String targetName)
Returns the config element that represents a given cluster |
Cluster |
getClusterForInstance(java.lang.String targetName)
Given an instance that is part of a cluster, returns the Cluster element of the cluster to which the given instance belongs |
Config |
getConfig(java.lang.String targetName)
Given a name (of instance or cluster or config), returns the appropriate Config object |
java.util.List<Server> |
getInstances(java.util.List<java.lang.String> names)
Given a list instance names, get List |
java.util.List<Server> |
getInstances(java.lang.String targetName)
Given the name of a target, returns a list of Server objects. |
Node |
getNode(java.lang.String targetName)
|
Config |
getServerConfig(java.lang.String targetName)
Returns config element that represents a given server |
boolean |
isCluster(java.lang.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(java.lang.String targetName)
Given name of a target verifies if it is valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Target()
| Method Detail |
|---|
public boolean isThisDAS()
public boolean isThisInstance()
public boolean isCluster(java.lang.String targetName)
targetName - the name of the target
public Cluster getCluster(java.lang.String targetName)
targetName - the name of the target
public Config getClusterConfig(java.lang.String targetName)
targetName - the name of the target
public Config getServerConfig(java.lang.String targetName)
targetName - the name of the target
public Config getConfig(java.lang.String targetName)
targetName - name of target
public Cluster getClusterForInstance(java.lang.String targetName)
targetName - name of target
public java.util.List<Server> getInstances(java.util.List<java.lang.String> names)
public Node getNode(java.lang.String targetName)
public java.util.List<Server> getInstances(java.lang.String targetName)
targetName - the name of the target
public java.util.List<Server> getAllInstances()
public boolean isValid(java.lang.String targetName)
targetName - name of the target
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||