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 Object implements RWSConfig
Abstract RWSConfigManager class.
- Author:
- Antonio Russo, Mathew Brozowski, David Hustace
-
-
Constructor Summary
Constructors Constructor Description RWSConfigManager()Constructor for RWSConfigManager.RWSConfigManager(InputStream stream)Constructor for RWSConfigManager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opennms.rancid.ConnectionPropertiesgetBase()getBaseBaseUrlgetBaseUrl()getBaseUrlRwsConfigurationgetConfiguration()Return the poller configuration object.org.opennms.rancid.ConnectionPropertiesgetNextStandBy()getNextStandByStandbyUrlgetNextStandbyUrl()getNextStandbyUrlLockgetReadLock()org.opennms.rancid.ConnectionProperties[]getStandBy()getStandByList<StandbyUrl>getStandbyUrls()getStanbyUrlsLockgetWriteLock()booleanhasStandbyUrl()hasStandbyUrlprotected voidreloadXML(InputStream stream)reloadXML
-
-
-
Constructor Detail
-
RWSConfigManager
public RWSConfigManager()
Constructor for RWSConfigManager.
-
RWSConfigManager
public RWSConfigManager(InputStream stream) throws IOException
Constructor for RWSConfigManager.
- Parameters:
stream- aInputStreamobject.- Throws:
IOException- if any.
-
-
Method Detail
-
getReadLock
public Lock getReadLock()
- Specified by:
getReadLockin interfaceRWSConfig
-
getWriteLock
public Lock getWriteLock()
- Specified by:
getWriteLockin interfaceRWSConfig
-
getBase
public org.opennms.rancid.ConnectionProperties getBase()
getBase
-
getNextStandBy
public org.opennms.rancid.ConnectionProperties getNextStandBy()
getNextStandBy
- Specified by:
getNextStandByin interfaceRWSConfig- Returns:
- a
ConnectionPropertiesobject.
-
getStandBy
public org.opennms.rancid.ConnectionProperties[] getStandBy()
getStandBy
- Specified by:
getStandByin interfaceRWSConfig- Returns:
- an array of
ConnectionPropertiesobjects.
-
getBaseUrl
public BaseUrl getBaseUrl()
getBaseUrl
- Specified by:
getBaseUrlin interfaceRWSConfig- Returns:
- a
BaseUrlobject.
-
getStandbyUrls
public List<StandbyUrl> getStandbyUrls()
getStanbyUrls
- Specified by:
getStandbyUrlsin interfaceRWSConfig- Returns:
- an array of
StandbyUrlobjects.
-
getNextStandbyUrl
public StandbyUrl getNextStandbyUrl()
getNextStandbyUrl
- Specified by:
getNextStandbyUrlin interfaceRWSConfig- Returns:
- a
StandbyUrlobject.
-
hasStandbyUrl
public boolean hasStandbyUrl()
hasStandbyUrl
- Specified by:
hasStandbyUrlin interfaceRWSConfig- Returns:
- a boolean.
-
reloadXML
protected void reloadXML(InputStream stream) throws IOException
reloadXML
- Parameters:
stream- aInputStreamobject.- Throws:
IOException- if any.
-
getConfiguration
public RwsConfiguration getConfiguration()
Return the poller configuration object.- Returns:
- a
RwsConfigurationobject.
-
-