Package org.apache.ofbiz.base.start
Class Start
java.lang.Object
org.apache.ofbiz.base.start.Start
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
Modifier and TypeClassDescriptionstatic enum
This enum contains the possible OFBiz server states. -
Method Summary
Modifier and TypeMethodDescriptionReturns the server's main configuration.Returns the server's current state.static Start
Returns theStart
instance.static void
main is the entry point to execute high level OFBiz commands such as starting, stopping or checking the status of the server.void
Updates the server's main configuration.void
stop()
-
Method Details
-
main
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
Returns theStart
instance. -
getConfig
Returns the server's main configuration. -
setConfig
Updates the server's main configuration.- Parameters:
c
- the new configuration
-
getCurrentState
Returns the server's current state. -
stop
public void stop()
-