|
|||||||||
| 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)
Method addLocationDef |
void |
addLocationDef(LocationDef vLocationDef)
Method addLocationDef |
void |
clearLocationDef()
Method clearLocationDef |
java.util.Enumeration |
enumerateLocationDef()
Method enumerateLocationDef |
LocationDef[] |
getLocationDef()
Method getLocationDef |
LocationDef |
getLocationDef(int index)
Method getLocationDef |
java.util.ArrayList |
getLocationDefCollection()
Method getLocationDefCollection Returns a reference to 'locationDef'. |
int |
getLocationDefCount()
Method getLocationDefCount |
boolean |
isValid()
Method isValid |
void |
marshal(org.xml.sax.ContentHandler handler)
Method marshal |
void |
marshal(java.io.Writer out)
Method marshal |
boolean |
removeLocationDef(LocationDef vLocationDef)
Method removeLocationDef |
void |
setLocationDef(java.util.ArrayList locationDefCollection)
Method setLocationDef Sets the value of 'locationDef' by copying the given ArrayList. |
void |
setLocationDef(int index,
LocationDef vLocationDef)
Method setLocationDef |
void |
setLocationDef(LocationDef[] locationDefArray)
Method setLocationDef |
void |
setLocationDefCollection(java.util.ArrayList locationDefCollection)
Method setLocationDefCollection Sets the value of 'locationDef' by setting it to the given ArrayList. |
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 |
|---|
public Locations()
| Method Detail |
|---|
public void addLocationDef(LocationDef vLocationDef)
throws java.lang.IndexOutOfBoundsException
vLocationDef -
java.lang.IndexOutOfBoundsException
public void addLocationDef(int index,
LocationDef vLocationDef)
throws java.lang.IndexOutOfBoundsException
index - vLocationDef -
java.lang.IndexOutOfBoundsExceptionpublic void clearLocationDef()
public java.util.Enumeration enumerateLocationDef()
public LocationDef getLocationDef(int index)
throws java.lang.IndexOutOfBoundsException
index -
java.lang.IndexOutOfBoundsExceptionpublic LocationDef[] getLocationDef()
public java.util.ArrayList getLocationDefCollection()
public int getLocationDefCount()
public boolean isValid()
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationExceptionpublic boolean removeLocationDef(LocationDef vLocationDef)
vLocationDef -
public void setLocationDef(int index,
LocationDef vLocationDef)
throws java.lang.IndexOutOfBoundsException
index - vLocationDef -
java.lang.IndexOutOfBoundsExceptionpublic void setLocationDef(LocationDef[] locationDefArray)
locationDefArray - public void setLocationDef(java.util.ArrayList locationDefCollection)
locationDefCollection - the Vector to copy.public void setLocationDefCollection(java.util.ArrayList locationDefCollection)
locationDefCollection - the ArrayList to copy.
public static java.lang.Object unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||