public abstract class MapsAdapterConfigManager extends Object implements MapsAdapterConfig
Abstract MapsAdapterConfigManager class.
Constructor and Description |
---|
MapsAdapterConfigManager()
Constructor for MapsAdapterConfigManager.
|
MapsAdapterConfigManager(InputStream reader,
String serverName,
boolean verifyServer)
Constructor for MapsAdapterConfigManager.
|
Modifier and Type | Method and Description |
---|---|
List<Cmap> |
getAllMaps()
getAllMaps
|
List<String> |
getAllPackageMatches(String ipaddr)
Returns a list of package names that the ip belongs to, null if none.
|
Map<String,List<Celement>> |
getCelements()
getCelements
|
MapsAdapterConfiguration |
getConfiguration()
Return the poller configuration object.
|
Map<String,Csubmap> |
getContainerMaps(String submapName)
getContainerMaps
|
Map<String,Celement> |
getElementByAddress(String ipaddr)
getElementByAddress
|
int |
getMapElementDimension()
getMapElementDimension
|
Lock |
getReadLock() |
Map<String,List<Csubmap>> |
getsubMaps()
getsubMaps
|
List<Csubmap> |
getSubMaps(String mapName)
getSubMaps
|
Lock |
getWriteLock() |
Iterable<String> |
includeURLs(Package pkg)
includeURLs
|
Iterable<Package> |
packages()
packages
|
void |
rebuildPackageIpListMap()
This method is used to rebuild the package against IP list mapping when
needed.
|
protected void |
reloadXML(InputStream reader)
reloadXML
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
public MapsAdapterConfigManager(InputStream reader, String serverName, boolean verifyServer) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
Constructor for MapsAdapterConfigManager.
reader
- a InputStream
object.verifyServer
- a boolean.serverName
- a String
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.public MapsAdapterConfigManager()
Constructor for MapsAdapterConfigManager.
public Lock getReadLock()
getReadLock
in interface MapsAdapterConfig
public Lock getWriteLock()
getWriteLock
in interface MapsAdapterConfig
protected void reloadXML(InputStream reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
reloadXML
reader
- a InputStream
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.public List<String> getAllPackageMatches(String ipaddr)
ipaddr
- the interface to checkpublic MapsAdapterConfiguration getConfiguration()
MapsAdapterConfiguration
object.public List<Cmap> getAllMaps()
getAllMaps
getAllMaps
in interface MapsAdapterConfig
List
object.public Map<String,Celement> getElementByAddress(String ipaddr)
getElementByAddress
getElementByAddress
in interface MapsAdapterConfig
ipaddr
- a String
object.Map
object.public List<Csubmap> getSubMaps(String mapName)
getSubMaps
getSubMaps
in interface MapsAdapterConfig
mapName
- a String
object.List
object.public int getMapElementDimension()
getMapElementDimension
getMapElementDimension
in interface MapsAdapterConfig
public Map<String,Csubmap> getContainerMaps(String submapName)
getContainerMaps
getContainerMaps
in interface MapsAdapterConfig
submapName
- a String
object.Map
object.public Map<String,List<Csubmap>> getsubMaps()
getsubMaps
getsubMaps
in interface MapsAdapterConfig
Map
object.public Map<String,List<Celement>> getCelements()
getCelements
getCelements
in interface MapsAdapterConfig
Map
object.public void rebuildPackageIpListMap()
rebuildPackageIpListMap
in interface MapsAdapterConfig
Copyright © 2015. All rights reserved.