org.opennms.netmgt.config.monitoringLocations
Class LocationDef

java.lang.Object
  extended by org.opennms.netmgt.config.monitoringLocations.LocationDef
All Implemented Interfaces:
java.io.Serializable

public class LocationDef
extends java.lang.Object
implements java.io.Serializable

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.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
LocationDef()
           
 
Method Summary
 java.lang.String getLocationName()
          Returns the value of field 'locationName'.
 java.lang.String getMonitoringArea()
          Returns the value of field 'monitoringArea'.
 java.lang.String getPollingPackageName()
          Returns the value of field 'pollingPackageName'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setLocationName(java.lang.String locationName)
          Sets the value of field 'locationName'.
 void setMonitoringArea(java.lang.String monitoringArea)
          Sets the value of field 'monitoringArea'.
 void setPollingPackageName(java.lang.String pollingPackageName)
          Sets the value of field 'pollingPackageName'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationDef

public LocationDef()
Method Detail

getLocationName

public java.lang.String getLocationName()
Returns the value of field 'locationName'.

Returns:
String

getMonitoringArea

public java.lang.String getMonitoringArea()
Returns the value of field 'monitoringArea'.

Returns:
String

getPollingPackageName

public java.lang.String getPollingPackageName()
Returns the value of field 'pollingPackageName'.

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setLocationName

public void setLocationName(java.lang.String locationName)
Sets the value of field 'locationName'.

Parameters:
locationName - the value of field 'locationName'.

setMonitoringArea

public void setMonitoringArea(java.lang.String monitoringArea)
Sets the value of field 'monitoringArea'.

Parameters:
monitoringArea - the value of field 'monitoringArea'.

setPollingPackageName

public void setPollingPackageName(java.lang.String pollingPackageName)
Sets the value of field 'pollingPackageName'.

Parameters:
pollingPackageName - the value of field 'pollingPackageName'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.