|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faban.harness.services.ServiceContext
public class ServiceContext
This class provides the context for every service. Each service has only one context.
| Field Summary | |
|---|---|
ServiceDescription |
desc
The service description describing this context. |
| Method Summary | |
|---|---|
List<NameValuePair<Integer>> |
getHostPorts()
Obtains a list of host:ports as configured in the configuration file to be used by the role this service is associated. |
String |
getHostRole()
Obtains host role. |
String[] |
getHosts()
Obtains the list of hosts as configured in the configuration file for the role this service is associated. |
String |
getName()
Obtains the name (aka id) of the service. |
String |
getProperty(String key)
Obtains the property for a given key. |
String |
getRunDuration()
Obtains the run duration. |
List<NameValuePair<Integer>> |
getUniqueHostPorts()
Obtains a list of hostports non-duplicate hosts:ports. |
String[] |
getUniqueHosts()
Obtains a list of non-duplicate hosts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ServiceDescription desc
| Method Detail |
|---|
public String getName()
public String[] getHosts()
public String[] getUniqueHosts()
public List<NameValuePair<Integer>> getHostPorts()
public List<NameValuePair<Integer>> getUniqueHostPorts()
public String getHostRole()
public String getProperty(String key)
key -
public String getRunDuration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||