public final class LinkdConfigFactory extends LinkdConfigManager
DEFAULT_IP_ROUTE_CLASS_NAME, m_config| Constructor and Description |
|---|
LinkdConfigFactory()
Constructor for LinkdConfigFactory.
|
LinkdConfigFactory(InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
reload()
reload
|
protected void |
reloadXML(InputStream stream)
reloadXML
|
void |
save()
Saves the current in-memory configuration to disk
|
protected void |
saveXml(String xml)
saveXml
|
void |
update()
update
|
enumeratePackage, forceIpRouteDiscoveryOnEthernet, getAllPackageMatches, getConfiguration, getDefaultIpRouteClassName, getDiscoveryLinkInterval, getFirstPackageMatch, getInitialSleepTime, getIpList, getIpRouteClassName, getPackage, getReadLock, getSnmpPollInterval, getThreads, getVlanClassName, getWriteLock, hasClassName, hasIpRouteClassName, isAutoDiscoveryEnabled, isInterfaceInPackage, isInterfaceInPackageRange, isVlanDiscoveryEnabled, saveRouteTable, saveStpInterfaceTable, saveStpNodeTable, updateIpRouteClassNames, updatePackageIpListMap, updateUrlIpMap, updateVlanClassNames, useBridgeDiscovery, useCdpDiscovery, useIpRouteDiscovery, useIsIsDiscovery, useLldpDiscovery, useOspfDiscovery, useWifiDiscoverypublic LinkdConfigFactory()
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
Constructor for LinkdConfigFactory. Loads the config from the default config file.
currentVersion - a long.stream - a InputStream object.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public LinkdConfigFactory(InputStream stream) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionprotected void saveXml(String xml) throws IOException
saveXml
saveXml in class LinkdConfigManagerxml - a String object.IOException - if any.public void reload()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reload
IOException - if any.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.public void update()
update
update in interface LinkdConfigupdate in class LinkdConfigManagerprotected void reloadXML(InputStream stream) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
reloadXML
stream - a InputStream object.org.exolab.castor.xml.MarshalException - if any.org.exolab.castor.xml.ValidationException - if any.IOException - if any.public void save()
throws org.exolab.castor.xml.MarshalException,
IOException,
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException - if any.IOException - if any.org.exolab.castor.xml.ValidationException - if any.Copyright © 2015. All rights reserved.