com.aelitis.azureus.core
Interface AzureusCore

All Known Implementing Classes:
AzureusCoreImpl

public interface AzureusCore


Field Summary
static java.lang.String CA_HIBERNATE
           
static java.lang.String CA_QUIT_VUZE
           
static java.lang.String CA_SHUTDOWN
           
static java.lang.String CA_SLEEP
           
 
Method Summary
 void addLifecycleListener(AzureusCoreLifecycleListener l)
           
 void addOperationListener(AzureusCoreOperationListener l)
           
 void addPowerManagementListener(PowerManagementListener listener)
           
 boolean canStart()
           
 void checkRestartSupported()
          checks if restart operation is supported - if not an alert will be raised and an exception thrown
 void createOperation(int type, AzureusCoreOperationTask task)
           
 void executeCloseAction(java.lang.String action, java.lang.String reason)
           
 long getCreateTime()
           
 CryptoManager getCryptoManager()
           
 GlobalManager getGlobalManager()
           
 AZInstanceManager getInstanceManager()
           
 IpFilterManager getIpFilterManager()
           
 LocaleUtil getLocaleUtil()
           
 java.io.File getLockFile()
           
 NATTraverser getNATTraverser()
           
 PluginManager getPluginManager()
           
 PluginManagerDefaults getPluginManagerDefaults()
           
 SpeedManager getSpeedManager()
           
 TRHost getTrackerHost()
           
 boolean isInitThread()
           
 boolean isRestarting()
           
 boolean isStarted()
           
 void removeLifecycleListener(AzureusCoreLifecycleListener l)
           
 void removeOperationListener(AzureusCoreOperationListener l)
           
 void removePowerManagementListener(PowerManagementListener listener)
           
 void requestRestart()
          request a restart of the system - currently only available for swt based systems
 void requestStop()
          ask lifecycle listeners to perform a stop.
 void restart()
          restart the system
 void saveState()
           
 void start()
           
 void stop()
          stop the core and inform lifecycle listeners of stopping
 void triggerLifeCycleComponentCreated(AzureusCoreComponent component)
           
 

Field Detail

CA_QUIT_VUZE

static final java.lang.String CA_QUIT_VUZE
See Also:
Constant Field Values

CA_SLEEP

static final java.lang.String CA_SLEEP
See Also:
Constant Field Values

CA_HIBERNATE

static final java.lang.String CA_HIBERNATE
See Also:
Constant Field Values

CA_SHUTDOWN

static final java.lang.String CA_SHUTDOWN
See Also:
Constant Field Values
Method Detail

getCreateTime

long getCreateTime()

canStart

boolean canStart()

start

void start()
           throws AzureusCoreException
Throws:
AzureusCoreException

isStarted

boolean isStarted()

isInitThread

boolean isInitThread()

stop

void stop()
          throws AzureusCoreException
stop the core and inform lifecycle listeners of stopping

Throws:
AzureusCoreException

requestStop

void requestStop()
                 throws AzureusCoreException
ask lifecycle listeners to perform a stop. they may veto this by throwing an exception, or do nothing if nothing is done then it will be stopped as per "stop" above

Throws:
AzureusCoreException

checkRestartSupported

void checkRestartSupported()
                           throws AzureusCoreException
checks if restart operation is supported - if not an alert will be raised and an exception thrown

Throws:
AzureusCoreException

restart

void restart()
restart the system


requestRestart

void requestRestart()
                    throws AzureusCoreException
request a restart of the system - currently only available for swt based systems

Throws:
AzureusCoreException

isRestarting

boolean isRestarting()
Returns:
Since:
3053

executeCloseAction

void executeCloseAction(java.lang.String action,
                        java.lang.String reason)

saveState

void saveState()

getLocaleUtil

LocaleUtil getLocaleUtil()

getGlobalManager

GlobalManager getGlobalManager()
                               throws AzureusCoreException
Throws:
AzureusCoreException

getPluginManagerDefaults

PluginManagerDefaults getPluginManagerDefaults()
                                               throws AzureusCoreException
Throws:
AzureusCoreException

getPluginManager

PluginManager getPluginManager()
                               throws AzureusCoreException
Throws:
AzureusCoreException

getTrackerHost

TRHost getTrackerHost()
                      throws AzureusCoreException
Throws:
AzureusCoreException

getIpFilterManager

IpFilterManager getIpFilterManager()
                                   throws AzureusCoreException
Throws:
AzureusCoreException

getInstanceManager

AZInstanceManager getInstanceManager()

getSpeedManager

SpeedManager getSpeedManager()

getCryptoManager

CryptoManager getCryptoManager()

getNATTraverser

NATTraverser getNATTraverser()

getLockFile

java.io.File getLockFile()

createOperation

void createOperation(int type,
                     AzureusCoreOperationTask task)

addLifecycleListener

void addLifecycleListener(AzureusCoreLifecycleListener l)

removeLifecycleListener

void removeLifecycleListener(AzureusCoreLifecycleListener l)

addOperationListener

void addOperationListener(AzureusCoreOperationListener l)

removeOperationListener

void removeOperationListener(AzureusCoreOperationListener l)

triggerLifeCycleComponentCreated

void triggerLifeCycleComponentCreated(AzureusCoreComponent component)
Parameters:
component -

addPowerManagementListener

void addPowerManagementListener(PowerManagementListener listener)

removePowerManagementListener

void removePowerManagementListener(PowerManagementListener listener)