|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.monitoringLocations.Locations
public class Locations
The name and polling configuration for each monitoring location. Note: multiple monitors can use the same monitoring location, they will get assigned and ID with the name of the location prepended (example: location name "SFO" instance could be "SFO-1" or "SFO-Building A" as the instance is defined by the user during registration of the distributed monitor).
| Constructor Summary | |
|---|---|
Locations()
|
|
| Method Summary | |
|---|---|
void |
addLocationDef(int index,
LocationDef vLocationDef)
|
void |
addLocationDef(LocationDef vLocationDef)
|
Enumeration<LocationDef> |
enumerateLocationDef()
Method enumerateLocationDef. |
LocationDef[] |
getLocationDef()
Method getLocationDef.Returns the contents of the collection in an Array. |
LocationDef |
getLocationDef(int index)
Method getLocationDef. |
List<LocationDef> |
getLocationDefCollection()
Method getLocationDefCollection.Returns a reference to '_locationDefList'. |
int |
getLocationDefCount()
Method getLocationDefCount. |
boolean |
isValid()
Method isValid. |
Iterator<LocationDef> |
iterateLocationDef()
Method iterateLocationDef. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllLocationDef()
|
boolean |
removeLocationDef(LocationDef vLocationDef)
Method removeLocationDef. |
LocationDef |
removeLocationDefAt(int index)
Method removeLocationDefAt. |
void |
setLocationDef(int index,
LocationDef vLocationDef)
|
void |
setLocationDef(List<LocationDef> vLocationDefList)
Sets the value of '_locationDefList' by copying the given Vector. |
void |
setLocationDef(LocationDef[] vLocationDefArray)
|
void |
setLocationDefCollection(List<LocationDef> locationDefList)
Deprecated. |
static Locations |
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 Locations()
| Method Detail |
|---|
public void addLocationDef(LocationDef vLocationDef)
throws IndexOutOfBoundsException
vLocationDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addLocationDef(int index,
LocationDef vLocationDef)
throws IndexOutOfBoundsException
index - vLocationDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<LocationDef> enumerateLocationDef()
public LocationDef getLocationDef(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic LocationDef[] getLocationDef()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<LocationDef> getLocationDefCollection()
public int getLocationDefCount()
public boolean isValid()
public Iterator<LocationDef> iterateLocationDef()
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 removeAllLocationDef()
public boolean removeLocationDef(LocationDef vLocationDef)
vLocationDef -
public LocationDef removeLocationDefAt(int index)
index -
public void setLocationDef(int index,
LocationDef vLocationDef)
throws IndexOutOfBoundsException
index - vLocationDef -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setLocationDef(LocationDef[] vLocationDefArray)
vLocationDefArray - public void setLocationDef(List<LocationDef> vLocationDefList)
vLocationDefList - the Vector to copy.public void setLocationDefCollection(List<LocationDef> locationDefList)
locationDefList - the Vector to set.
public static Locations 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 | ||||||||