|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.monitoringLocations.LocationDef
public class LocationDef
This element contains the name of the location, the name of the monitoring area (used to aggregate locations, example: Area San Francisco, location name "SFO" which becomes SFO-1 or SFO-BuildingA, etc.) Critical link here is that the polling package name is used to link a polling configuration found in the polling-configuration.xml file.
| Constructor Summary | |
|---|---|
LocationDef()
|
|
| Method Summary | |
|---|---|
String |
getLocationName()
Returns the value of field 'locationName'. |
String |
getMonitoringArea()
Returns the value of field 'monitoringArea'. |
String |
getPollingPackageName()
Returns the value of field 'pollingPackageName'. |
boolean |
isValid()
Method isValid. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
setLocationName(String locationName)
Sets the value of field 'locationName'. |
void |
setMonitoringArea(String monitoringArea)
Sets the value of field 'monitoringArea'. |
void |
setPollingPackageName(String pollingPackageName)
Sets the value of field 'pollingPackageName'. |
static LocationDef |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationDef()
| Method Detail |
|---|
public String getLocationName()
public String getMonitoringArea()
public String getPollingPackageName()
public boolean isValid()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void setLocationName(String locationName)
locationName - the value of field 'locationName'.public void setMonitoringArea(String monitoringArea)
monitoringArea - the value of field 'monitoringArea'.public void setPollingPackageName(String pollingPackageName)
pollingPackageName - the value of field
'pollingPackageName'.
public static LocationDef unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||