Package net.i2p.desktopgui
Class Main
java.lang.Object
net.i2p.desktopgui.Main
public class Main extends Object implements RouterApp
The main class of the application.
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_ENABLE -
Constructor Summary
Constructors Constructor Description Main()Main(RouterContext ctx, ClientAppManager mgr, String[] args) -
Method Summary
Modifier and Type Method Description StringgetDisplayName()The display name of the ClientApp, used in user interfaces.StringgetName()The generic name of the ClientApp, used for registration, e.g.ClientAppStategetState()The current state of the ClientApp.static voidmain(String[] args)voidshutdown(String[] args)Do not take a long time.voidstartup()Do not take a long time.
-
Field Details
-
PROP_ENABLE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
main
-
startup
public void startup()Description copied from interface:ClientAppDo not take a long time. Do not block. Start threads here if necessary. Client must call ClientAppManager.notify() at least once within this method to change the state from INITIALIZED to something else. Will not be called multiple times on the same object. -
shutdown
Description copied from interface:ClientAppDo not take a long time. Do not block. Use a thread if necessary. If previously running, client must call ClientAppManager.notify() at least once within this method to change the state to STOPPING or STOPPED. May be called multiple times on the same object, in any state. -
getState
Description copied from interface:ClientAppThe current state of the ClientApp. -
getName
Description copied from interface:ClientAppThe generic name of the ClientApp, used for registration, e.g. "console". Do not translate. -
getDisplayName
Description copied from interface:ClientAppThe display name of the ClientApp, used in user interfaces. The app must translate.- Specified by:
getDisplayNamein interfaceClientApp- Returns:
- non-null
- Since:
- 0.9.26
-