com.aelitis.azureus.core.cnetwork.impl
Class ContentNetworkManagerImpl

java.lang.Object
  extended by com.aelitis.azureus.core.cnetwork.impl.ContentNetworkManagerImpl
All Implemented Interfaces:
ContentNetworkManager, AEDiagnosticsEvidenceGenerator

public class ContentNetworkManagerImpl
extends Object
implements ContentNetworkManager, AEDiagnosticsEvidenceGenerator


Constructor Summary
protected ContentNetworkManagerImpl()
           
 
Method Summary
 void addContentNetwork(long id)
          ContentNetworkListener.networkAdded(ContentNetwork) will be called once the network is added
 void addListener(ContentNetworkListener listener)
           
protected  ContentNetworkImpl addNetwork(ContentNetworkImpl network)
           
protected  void checkForUpdates()
           
 void generate(IndentWriter writer)
           
 ContentNetworkImpl getContentNetwork(long id)
           
 ContentNetwork getContentNetworkForURL(String url)
          Checks networks for those that have this URL as their site
 ContentNetwork[] getContentNetworks()
           
static ContentNetworkManager getSingleton()
           
 ContentNetwork getStartupContentNetwork()
           
protected  ContentNetworkImpl importNetwork(Map content)
           
protected  void loadConfig()
           
static void log(String s)
           
static void log(String s, Throwable e)
           
static void preInitialise()
           
 void removeListener(ContentNetworkListener listener)
           
protected  void removeNetwork(ContentNetworkImpl network)
           
protected  void saveConfig()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentNetworkManagerImpl

protected ContentNetworkManagerImpl()
Method Detail

preInitialise

public static void preInitialise()

getSingleton

public static ContentNetworkManager getSingleton()

checkForUpdates

protected void checkForUpdates()

importNetwork

protected ContentNetworkImpl importNetwork(Map content)
                                    throws IOException
Throws:
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(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(String s,
                       Throwable e)

log

public static void log(String s)