public abstract class RancidAdapterConfigManager extends Object implements RancidAdapterConfig
Abstract RancidAdapterConfigManager class.
| Constructor and Description | 
|---|
RancidAdapterConfigManager()
Constructor for RancidAdapterConfigManager. 
 | 
RancidAdapterConfigManager(InputStream reader)
Constructor for RancidAdapterConfigManager. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
RancidConfiguration | 
getConfiguration()
Return the Rancid Adapter configuration object. 
 | 
long | 
getDelay(String ipaddr)
return the delay time for the specified address
 the delay time is the time in msec that represents
 a delay in the execution of a RancidAdapter
 execution 
 | 
Lock | 
getReadLock()  | 
int | 
getRetries(String ipaddr)
return the number of retries in case of failure
 for the specified address 
 | 
List<Schedule> | 
getSchedules(String ipaddress)
getSchedules 
 | 
String | 
getType(String sysoid,
       String sysdescr)
return the Rancid Type String 
 | 
Lock | 
getWriteLock()  | 
boolean | 
hasSchedule(String ipaddress)
hasSchedule 
 | 
Iterable<String> | 
includeURLs(Package pkg)
includeURLs 
 | 
boolean | 
isCurTimeInSchedule(String ipaddr)
Return if current time is ready to be scheduled. 
 | 
Iterable<Mapping> | 
mappings()
mappings 
 | 
Iterable<Package> | 
packages()
packages 
 | 
Iterable<PolicyManage> | 
policies()
policies 
 | 
void | 
rebuildPackageIpListMap()
This method is used to rebuild the package against iplist mapping when
 needed. 
 | 
protected void | 
reloadXML(InputStream is)
reloadXML 
 | 
boolean | 
useCategories(String ipaddr)
return if is to be used the opennms categories to get
 rancid device type 
 | 
public RancidAdapterConfigManager(InputStream reader) throws IOException
Constructor for RancidAdapterConfigManager.
reader - a InputStream object.IOException - if any.public RancidAdapterConfigManager()
Constructor for RancidAdapterConfigManager.
public Lock getReadLock()
public Lock getWriteLock()
protected void reloadXML(InputStream is) throws IOException
reloadXML
is - a InputStream object.IOException - if any.public long getDelay(String ipaddr)
getDelay in interface RancidAdapterConfigipaddr - the ipaddress of the nodepublic int getRetries(String ipaddr)
getRetries in interface RancidAdapterConfigipaddr - the ipaddress of the nodepublic boolean useCategories(String ipaddr)
useCategories in interface RancidAdapterConfigipaddr - the ipaddress of the nodepublic String getType(String sysoid, String sysdescr)
getType in interface RancidAdapterConfigsysoid - the system OID identifier of the nodepublic boolean isCurTimeInSchedule(String ipaddr)
isCurTimeInSchedule in interface RancidAdapterConfigipaddr - the ipaddress of the nodepublic boolean hasSchedule(String ipaddress)
hasSchedule
ipaddress - a String object.public Iterable<PolicyManage> policies()
policies
Iterable object.public RancidConfiguration getConfiguration()
RancidConfiguration object.public void rebuildPackageIpListMap()
Copyright © 2021. All rights reserved.