|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.rws.RwsConfiguration
public class RwsConfiguration
Top-level element for the rws-configuration.xml configuration file.
| Constructor Summary | |
|---|---|
RwsConfiguration()
|
|
| Method Summary | |
|---|---|
void |
addStandbyUrl(int index,
StandbyUrl vStandbyUrl)
|
void |
addStandbyUrl(StandbyUrl vStandbyUrl)
|
Enumeration<StandbyUrl> |
enumerateStandbyUrl()
Method enumerateStandbyUrl. |
BaseUrl |
getBaseUrl()
Returns the value of field 'baseUrl'. |
StandbyUrl[] |
getStandbyUrl()
Method getStandbyUrl.Returns the contents of the collection in an Array. |
StandbyUrl |
getStandbyUrl(int index)
Method getStandbyUrl. |
List<StandbyUrl> |
getStandbyUrlCollection()
Method getStandbyUrlCollection.Returns a reference to '_standbyUrlList'. |
int |
getStandbyUrlCount()
Method getStandbyUrlCount. |
boolean |
isValid()
Method isValid. |
Iterator<StandbyUrl> |
iterateStandbyUrl()
Method iterateStandbyUrl. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllStandbyUrl()
|
boolean |
removeStandbyUrl(StandbyUrl vStandbyUrl)
Method removeStandbyUrl. |
StandbyUrl |
removeStandbyUrlAt(int index)
Method removeStandbyUrlAt. |
void |
setBaseUrl(BaseUrl baseUrl)
Sets the value of field 'baseUrl'. |
void |
setStandbyUrl(int index,
StandbyUrl vStandbyUrl)
|
void |
setStandbyUrl(List<StandbyUrl> vStandbyUrlList)
Sets the value of '_standbyUrlList' by copying the given Vector. |
void |
setStandbyUrl(StandbyUrl[] vStandbyUrlArray)
|
void |
setStandbyUrlCollection(List<StandbyUrl> standbyUrlList)
Deprecated. |
static RwsConfiguration |
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 RwsConfiguration()
| Method Detail |
|---|
public void addStandbyUrl(StandbyUrl vStandbyUrl)
throws IndexOutOfBoundsException
vStandbyUrl -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addStandbyUrl(int index,
StandbyUrl vStandbyUrl)
throws IndexOutOfBoundsException
index - vStandbyUrl -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<StandbyUrl> enumerateStandbyUrl()
public BaseUrl getBaseUrl()
public StandbyUrl getStandbyUrl(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic StandbyUrl[] getStandbyUrl()
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<StandbyUrl> getStandbyUrlCollection()
public int getStandbyUrlCount()
public boolean isValid()
public Iterator<StandbyUrl> iterateStandbyUrl()
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 removeAllStandbyUrl()
public boolean removeStandbyUrl(StandbyUrl vStandbyUrl)
vStandbyUrl -
public StandbyUrl removeStandbyUrlAt(int index)
index -
public void setBaseUrl(BaseUrl baseUrl)
baseUrl - the value of field 'baseUrl'.
public void setStandbyUrl(int index,
StandbyUrl vStandbyUrl)
throws IndexOutOfBoundsException
index - vStandbyUrl -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setStandbyUrl(StandbyUrl[] vStandbyUrlArray)
vStandbyUrlArray - public void setStandbyUrl(List<StandbyUrl> vStandbyUrlList)
vStandbyUrlList - the Vector to copy.public void setStandbyUrlCollection(List<StandbyUrl> standbyUrlList)
standbyUrlList - the Vector to set.
public static RwsConfiguration 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 | ||||||||