com.aelitis.azureus.core.cnetwork.impl
Class ContentNetworkManagerImpl
java.lang.Object
com.aelitis.azureus.core.cnetwork.impl.ContentNetworkManagerImpl
- All Implemented Interfaces:
- ContentNetworkManager, AEDiagnosticsEvidenceGenerator
public class ContentNetworkManagerImpl
- extends java.lang.Object
- implements ContentNetworkManager, AEDiagnosticsEvidenceGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentNetworkManagerImpl
protected ContentNetworkManagerImpl()
preInitialise
public static void preInitialise()
getSingleton
public static ContentNetworkManager getSingleton()
checkForUpdates
protected void checkForUpdates()
importNetwork
protected ContentNetworkImpl importNetwork(java.util.Map content)
throws java.io.IOException
- Throws:
java.io.IOException
addContentNetwork
public void addContentNetwork(long id)
throws ContentNetworkException
- Description copied from interface:
ContentNetworkManager
ContentNetworkListener.networkAdded(ContentNetwork)
will be called
once the network is added
- Specified by:
addContentNetwork
in interface ContentNetworkManager
- Throws:
ContentNetworkException
getContentNetworkForURL
public ContentNetwork getContentNetworkForURL(java.lang.String url)
- Description copied from interface:
ContentNetworkManager
- Checks networks for those that have this URL as their site
- Specified by:
getContentNetworkForURL
in interface ContentNetworkManager
- Returns:
- matching network, null if none
getStartupContentNetwork
public ContentNetwork getStartupContentNetwork()
- Specified by:
getStartupContentNetwork
in interface ContentNetworkManager
getContentNetworks
public ContentNetwork[] getContentNetworks()
- Specified by:
getContentNetworks
in interface ContentNetworkManager
getContentNetwork
public ContentNetworkImpl getContentNetwork(long id)
- Specified by:
getContentNetwork
in interface ContentNetworkManager
addNetwork
protected ContentNetworkImpl addNetwork(ContentNetworkImpl network)
removeNetwork
protected void removeNetwork(ContentNetworkImpl network)
loadConfig
protected void loadConfig()
saveConfig
protected void saveConfig()
addListener
public void addListener(ContentNetworkListener listener)
- Specified by:
addListener
in interface ContentNetworkManager
removeListener
public void removeListener(ContentNetworkListener listener)
- Specified by:
removeListener
in interface ContentNetworkManager
generate
public void generate(IndentWriter writer)
- Specified by:
generate
in interface AEDiagnosticsEvidenceGenerator
log
public static void log(java.lang.String s,
java.lang.Throwable e)
log
public static void log(java.lang.String s)