public class RancidAdapterConfigFactory extends RancidAdapterConfigManager
RancidAdapterConfigFactory class.
| Constructor and Description | 
|---|
RancidAdapterConfigFactory(long currentVersion,
                          InputStream reader)
constructor constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static RancidAdapterConfigFactory | 
getInstance()
Return the singleton instance of this factory. 
 | 
static void | 
init()
Load the config from the default config file and create the singleton
 instance of this factory. 
 | 
static void | 
reload()
Reload the config from the default config file 
 | 
protected void | 
saveXml(String xml)
saveXml 
 | 
void | 
update()
update 
 | 
getConfiguration, getDelay, getReadLock, getRetries, getSchedules, getType, getWriteLock, hasSchedule, includeURLs, isCurTimeInSchedule, mappings, packages, policies, rebuildPackageIpListMap, reloadXML, useCategoriespublic RancidAdapterConfigFactory(long currentVersion,
                                  InputStream reader)
                           throws IOException
currentVersion - a long.reader - a InputStream object.IOException - Thrown if the specified config file cannot be readIOException - if any.public static void init()
                 throws IOException
IOException - Thrown if the specified config file cannot be readIOException - if any.public static void reload()
                   throws IOException
IOException - Thrown if the specified config file cannot be read/loadedIOException - if any.public static RancidAdapterConfigFactory getInstance()
IllegalStateException - Thrown if the factory has not yet been initialized.protected void saveXml(String xml) throws IOException
saveXml
xml - a String object.IOException - if any.public void update()
            throws IOException
update
IOException - if any.Copyright © 2021. All rights reserved.