LimeWire Consolidated API

com.limegroup.gnutella
Interface LifecycleManager

All Known Implementing Classes:
LifecycleManagerImpl

public interface LifecycleManager

Defines the interface for the start up and shutdown of a LimeWire instance.


Method Summary
 void addListener(EventListener<LifeCycleEvent> listener)
           
 long getStartFinishedTime()
          Gets the time this finished starting.
 void installListeners()
          Phase 1 of the startup process -- wires listeners together.
 boolean isLoaded()
           
 boolean isShutdown()
           
 boolean isStarted()
           
 void loadBackgroundTasks()
          Phase 2 of the startup process -- loads any tasks that can be run in the background.
 boolean removeListener(EventListener<LifeCycleEvent> listener)
           
 void shutdown()
          Shuts down anything that requires shutdown.
 void shutdown(String toExecute)
          Shuts down & executes something after shutdown completes.
 void start()
          The core of the startup process, initializes all classes.
 

Method Detail

isLoaded

boolean isLoaded()

isStarted

boolean isStarted()

isShutdown

boolean isShutdown()

installListeners

void installListeners()
Phase 1 of the startup process -- wires listeners together.


loadBackgroundTasks

void loadBackgroundTasks()
Phase 2 of the startup process -- loads any tasks that can be run in the background.


start

void start()
The core of the startup process, initializes all classes.


shutdown

void shutdown()
Shuts down anything that requires shutdown.


shutdown

void shutdown(String toExecute)
Shuts down & executes something after shutdown completes.


getStartFinishedTime

long getStartFinishedTime()
Gets the time this finished starting.


addListener

void addListener(EventListener<LifeCycleEvent> listener)

removeListener

boolean removeListener(EventListener<LifeCycleEvent> listener)

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.