Package org.opennms.netmgt.config
Class RWSConfigManager
- java.lang.Object
-
- org.opennms.netmgt.config.RWSConfigManager
-
- All Implemented Interfaces:
RWSConfig
- Direct Known Subclasses:
RWSConfigFactory
public abstract class RWSConfigManager extends java.lang.Object implements RWSConfig
Abstract RWSConfigManager class.
- Author:
- Antonio Russo, Mathew Brozowski, David Hustace
-
-
Constructor Summary
Constructors Constructor Description RWSConfigManager()
Constructor for RWSConfigManager.RWSConfigManager(java.io.InputStream stream)
Constructor for RWSConfigManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opennms.rancid.ConnectionProperties
getBase()
getBaseBaseUrl
getBaseUrl()
getBaseUrlRwsConfiguration
getConfiguration()
Return the poller configuration object.org.opennms.rancid.ConnectionProperties
getNextStandBy()
getNextStandByStandbyUrl
getNextStandbyUrl()
getNextStandbyUrljava.util.concurrent.locks.Lock
getReadLock()
org.opennms.rancid.ConnectionProperties[]
getStandBy()
getStandByjava.util.List<StandbyUrl>
getStandbyUrls()
getStanbyUrlsjava.util.concurrent.locks.Lock
getWriteLock()
boolean
hasStandbyUrl()
hasStandbyUrlprotected void
reloadXML(java.io.InputStream stream)
reloadXML
-
-
-
Constructor Detail
-
RWSConfigManager
public RWSConfigManager()
Constructor for RWSConfigManager.
-
RWSConfigManager
public RWSConfigManager(java.io.InputStream stream) throws java.io.IOException
Constructor for RWSConfigManager.
- Parameters:
stream
- aInputStream
object.- Throws:
java.io.IOException
- if any.
-
-
Method Detail
-
getReadLock
public java.util.concurrent.locks.Lock getReadLock()
- Specified by:
getReadLock
in interfaceRWSConfig
-
getWriteLock
public java.util.concurrent.locks.Lock getWriteLock()
- Specified by:
getWriteLock
in interfaceRWSConfig
-
getBase
public org.opennms.rancid.ConnectionProperties getBase()
getBase
-
getNextStandBy
public org.opennms.rancid.ConnectionProperties getNextStandBy()
getNextStandBy
- Specified by:
getNextStandBy
in interfaceRWSConfig
- Returns:
- a
ConnectionProperties
object.
-
getStandBy
public org.opennms.rancid.ConnectionProperties[] getStandBy()
getStandBy
- Specified by:
getStandBy
in interfaceRWSConfig
- Returns:
- an array of
ConnectionProperties
objects.
-
getBaseUrl
public BaseUrl getBaseUrl()
getBaseUrl
- Specified by:
getBaseUrl
in interfaceRWSConfig
- Returns:
- a
BaseUrl
object.
-
getStandbyUrls
public java.util.List<StandbyUrl> getStandbyUrls()
getStanbyUrls
- Specified by:
getStandbyUrls
in interfaceRWSConfig
- Returns:
- an array of
StandbyUrl
objects.
-
getNextStandbyUrl
public StandbyUrl getNextStandbyUrl()
getNextStandbyUrl
- Specified by:
getNextStandbyUrl
in interfaceRWSConfig
- Returns:
- a
StandbyUrl
object.
-
hasStandbyUrl
public boolean hasStandbyUrl()
hasStandbyUrl
- Specified by:
hasStandbyUrl
in interfaceRWSConfig
- Returns:
- a boolean.
-
reloadXML
protected void reloadXML(java.io.InputStream stream) throws java.io.IOException
reloadXML
- Parameters:
stream
- aInputStream
object.- Throws:
java.io.IOException
- if any.
-
getConfiguration
public RwsConfiguration getConfiguration()
Return the poller configuration object.- Returns:
- a
RwsConfiguration
object.
-
-