|
||||||||||
| 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.) Additionally, a geolocation can be provided (an address or other identifying location that can be looked up with a geolocation API), as well as coordinates (latitude,longitude). Finally, a priority can be assigned to the location, for purposes of sorting (1 = highest, 100 = lowest). The polling package name is used to associate with a polling configuration found in the polling-configuration.xml file.
| Constructor Summary | |
|---|---|
LocationDef()
|
|
| Method Summary | |
|---|---|
void |
deletePriority()
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
String |
getCoordinates()
Returns the value of field 'coordinates'. |
String |
getGeolocation()
Returns the value of field 'geolocation'. |
String |
getLocationName()
Returns the value of field 'locationName'. |
String |
getMonitoringArea()
Returns the value of field 'monitoringArea'. |
String |
getPollingPackageName()
Returns the value of field 'pollingPackageName'. |
long |
getPriority()
Returns the value of field 'priority'. |
Tags |
getTags()
Returns the value of field 'tags'. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
hasPriority()
Method hasPriority. |
boolean |
isValid()
Method isValid. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
setCoordinates(String coordinates)
Sets the value of field 'coordinates'. |
void |
setGeolocation(String geolocation)
Sets the value of field 'geolocation'. |
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'. |
void |
setPriority(long priority)
Sets the value of field 'priority'. |
void |
setTags(Tags tags)
Sets the value of field 'tags'. |
static LocationDef |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationDef()
| Method Detail |
|---|
public void deletePriority()
public boolean equals(Object obj)
equals in class Objectobj -
public String getCoordinates()
public String getGeolocation()
public String getLocationName()
public String getMonitoringArea()
public String getPollingPackageName()
public long getPriority()
public Tags getTags()
public boolean hasPriority()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic 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 setCoordinates(String coordinates)
coordinates - the value of field 'coordinates'.public void setGeolocation(String geolocation)
geolocation - the value of field 'geolocation'.public 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 void setPriority(long priority)
priority - the value of field 'priority'.public void setTags(Tags tags)
tags - the value of field 'tags'.
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 | |||||||||