|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.poller.scheduler.utils.ServiceInfo
This class is responsible for holding information about a service parsed from the package.xml file.
Field Summary | |
static String |
INTERVAL
|
private PollerModel |
m_model
|
private String |
m_modelName
The name of the model that this service uses for unavailable scheduling |
private HashMap |
m_serviceDetails
The group of parameters build from the tags under the |
private String |
m_serviceName
The name of the service, from the |
Constructor Summary | |
ServiceInfo()
Default constructor, allocates the m_serviceDetails member |
Method Summary | |
void |
addServiceParameter(Parameter parameter)
This method adds a new parameter to the service |
PollerModel |
getModel()
|
String |
getModelName()
This method returns the name of the model for this service. |
String |
getServiceName()
This method returns the name of the service |
String |
getServiceParameter(String parmName)
This method gets the value of a specific parameter from the service |
private StringBuffer |
hashMapPrint(HashMap map)
This method walks through a HashMap and builds a StringBuffer pretty print version. |
void |
setModel(PollerModel aModel)
|
void |
setModelName(String aModelName)
This method sets the name of the model the services uses for unavailable scheduling |
void |
setServiceName(String aName)
This method sets the name of the service |
String |
toString()
This method returns a String representation of the service class |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final String INTERVAL
private String m_serviceName
private String m_modelName
private PollerModel m_model
private HashMap m_serviceDetails
Constructor Detail |
public ServiceInfo()
Method Detail |
public void setModelName(String aModelName)
String
- aModelName, the name of the modelpublic void setModel(PollerModel aModel)
public String getModelName()
public PollerModel getModel()
public void addServiceParameter(Parameter parameter)
Parameter,
- a new parameter parsed from the xmlpublic void setServiceName(String aName)
String
- name, the name of the servicepublic String getServiceName()
public String getServiceParameter(String parmName)
String
- parmName, the name of the parameter being look uppublic String toString()
toString
in class Object
private StringBuffer hashMapPrint(HashMap map)
HashMap
- map, the map to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |