com.aelitis.azureus.core
Interface AzureusCoreLifecycleListener

All Known Implementing Classes:
AzureusCoreLifecycleAdapter

public interface AzureusCoreLifecycleListener

Author:
parg

Method Summary
 void componentCreated(AzureusCore core, AzureusCoreComponent component)
           
 boolean requiresPluginInitCompleteBeforeStartedEvent()
          hack - original semantics of the "started" event was that all plugins init complete However, some can take a long time (and even block if attempting to acquire, say, public IP address and version server is down...) so added this flag to allow listeners to indicate that they're happy to be "started" before plugin init complete
 boolean restartRequested(AzureusCore core)
           
 void started(AzureusCore core)
           
 void stopped(AzureusCore core)
           
 void stopping(AzureusCore core)
           
 boolean stopRequested(AzureusCore core)
          return true if the request has been accepted (and hence the listener will arrange for a stop to occur
 boolean syncInvokeRequired()
          Some listeners must be invoked on the same thread that initiates a core closedown.
 

Method Detail

componentCreated

void componentCreated(AzureusCore core,
                      AzureusCoreComponent component)

started

void started(AzureusCore core)

stopping

void stopping(AzureusCore core)

stopped

void stopped(AzureusCore core)

stopRequested

boolean stopRequested(AzureusCore core)
                      throws AzureusCoreException
return true if the request has been accepted (and hence the listener will arrange for a stop to occur

Parameters:
core -
Returns:
Throws:
AzureusCoreException

restartRequested

boolean restartRequested(AzureusCore core)
                         throws AzureusCoreException
Throws:
AzureusCoreException

syncInvokeRequired

boolean syncInvokeRequired()
Some listeners must be invoked on the same thread that initiates a core closedown. In particular the show-alerts-raised-during-closedown logic requires that it is invoked on the swt thread that initiated the closedown.

Returns:

requiresPluginInitCompleteBeforeStartedEvent

boolean requiresPluginInitCompleteBeforeStartedEvent()
hack - original semantics of the "started" event was that all plugins init complete However, some can take a long time (and even block if attempting to acquire, say, public IP address and version server is down...) so added this flag to allow listeners to indicate that they're happy to be "started" before plugin init complete

Returns: