public final class EnhancedLinkdConfigFactory extends EnhancedLinkdConfigManager
m_config
Constructor and Description |
---|
EnhancedLinkdConfigFactory() |
EnhancedLinkdConfigFactory(InputStream stream)
Constructor for LinkdConfigFactory.
|
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
|
getConfiguration, getInitialSleepTime, getMaxBft, getReadLock, getRescanInterval, getThreads, getWriteLock, useBridgeDiscovery, useCdpDiscovery, useIsisDiscovery, useLldpDiscovery, useOspfDiscovery
public EnhancedLinkdConfigFactory() throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public EnhancedLinkdConfigFactory(InputStream stream) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
Constructor for LinkdConfigFactory.
currentVersion
- a long.stream
- a InputStream
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.protected void saveXml(String xml) throws IOException
saveXml
saveXml
in class EnhancedLinkdConfigManager
xml
- 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.protected 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 © 2017. All rights reserved.