|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.LifecycleManagerImpl
public class LifecycleManagerImpl
Provides an implementation of the LifecycleManager to start and
stop the LimeWire components.
| Constructor Summary | |
|---|---|
LifecycleManagerImpl(ServiceRegistry serviceRegistry)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public LifecycleManagerImpl(ServiceRegistry serviceRegistry)
| Method Detail |
|---|
public boolean isLoaded()
isLoaded in interface LifecycleManagerpublic boolean isStarted()
isStarted in interface LifecycleManagerpublic boolean isShutdown()
isShutdown in interface LifecycleManagerpublic void installListeners()
LifecycleManager
installListeners in interface LifecycleManagerpublic void loadBackgroundTasks()
LifecycleManager
loadBackgroundTasks in interface LifecycleManagerpublic void start()
LifecycleManager
start in interface LifecycleManagerpublic void shutdown()
LifecycleManager
shutdown in interface LifecycleManagerpublic void shutdown(String toExecute)
LifecycleManager
shutdown in interface LifecycleManagerpublic long getStartFinishedTime()
LifecycleManager
getStartFinishedTime in interface LifecycleManagerpublic void addListener(EventListener<LifeCycleEvent> listener)
addListener in interface LifecycleManagerpublic boolean removeListener(EventListener<LifeCycleEvent> listener)
removeListener in interface LifecycleManager
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||