public abstract class RWSConfigManager extends Object implements RWSConfig
Abstract RWSConfigManager class.
Constructor and Description |
---|
RWSConfigManager()
Constructor for RWSConfigManager.
|
RWSConfigManager(InputStream stream)
Constructor for RWSConfigManager.
|
Modifier and Type | Method and Description |
---|---|
org.opennms.rancid.ConnectionProperties |
getBase()
getBase
|
BaseUrl |
getBaseUrl()
getBaseUrl
|
RwsConfiguration |
getConfiguration()
Return the poller configuration object.
|
org.opennms.rancid.ConnectionProperties |
getNextStandBy()
getNextStandBy
|
StandbyUrl |
getNextStandbyUrl()
getNextStandbyUrl
|
Lock |
getReadLock() |
org.opennms.rancid.ConnectionProperties[] |
getStandBy()
getStandBy
|
List<StandbyUrl> |
getStandbyUrls()
getStanbyUrls
|
Lock |
getWriteLock() |
boolean |
hasStandbyUrl()
hasStandbyUrl
|
protected void |
reloadXML(InputStream stream)
reloadXML
|
public RWSConfigManager()
Constructor for RWSConfigManager.
public RWSConfigManager(InputStream stream) throws IOException
Constructor for RWSConfigManager.
stream
- a InputStream
object.IOException
- if any.public Lock getReadLock()
getReadLock
in interface RWSConfig
public Lock getWriteLock()
getWriteLock
in interface RWSConfig
public org.opennms.rancid.ConnectionProperties getBase()
getBase
public org.opennms.rancid.ConnectionProperties getNextStandBy()
getNextStandBy
getNextStandBy
in interface RWSConfig
ConnectionProperties
object.public org.opennms.rancid.ConnectionProperties[] getStandBy()
getStandBy
getStandBy
in interface RWSConfig
ConnectionProperties
objects.public BaseUrl getBaseUrl()
getBaseUrl
getBaseUrl
in interface RWSConfig
BaseUrl
object.public List<StandbyUrl> getStandbyUrls()
getStanbyUrls
getStandbyUrls
in interface RWSConfig
StandbyUrl
objects.public StandbyUrl getNextStandbyUrl()
getNextStandbyUrl
getNextStandbyUrl
in interface RWSConfig
StandbyUrl
object.public boolean hasStandbyUrl()
hasStandbyUrl
hasStandbyUrl
in interface RWSConfig
protected void reloadXML(InputStream stream) throws IOException
reloadXML
stream
- a InputStream
object.IOException
- if any.public RwsConfiguration getConfiguration()
RwsConfiguration
object.Copyright © 2021. All rights reserved.