Package org.apache.ofbiz.base.start
Class Start
- java.lang.Object
-
- org.apache.ofbiz.base.start.Start
-
public final class Start extends java.lang.Object
OFBiz startup class.This class implements a thread-safe state machine. The design is critical for reliable starting and stopping of the server.
The machine's current state and state changes must be encapsulated in this class. Client code may query the current state, but it may not change it.
This class uses a singleton pattern to guarantee that only one server instance is running in the VM. Client code retrieves the instance by using the
getInstance()
static method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Start.ServerState
This enum contains the possible OFBiz server states.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Config
getConfig()
Returns the server's main configuration.Start.ServerState
getCurrentState()
Returns the server's current state.static Start
getInstance()
Returns theStart
instance.static void
main(java.lang.String[] args)
main is the entry point to execute high level OFBiz commands such as starting, stopping or checking the status of the server.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
main is the entry point to execute high level OFBiz commands such as starting, stopping or checking the status of the server.- Parameters:
args
- The commands for OFBiz
-
getInstance
public static Start getInstance()
Returns theStart
instance.
-
getConfig
public Config getConfig()
Returns the server's main configuration.
-
getCurrentState
public Start.ServerState getCurrentState()
Returns the server's current state.
-
-