Constructor and Description |
---|
ServiceContainer() |
Modifier and Type | Method and Description |
---|---|
static void |
deregister(String dispatcherName) |
static Set<String> |
getAllDispatcherNames() |
static LocalDispatcher |
getLocalDispatcher(String dispatcherName,
Delegator delegator) |
String |
getName()
Return the container name.
|
void |
init(List<StartupCommand> ofbizCommands,
String name,
String configFile)
Initialize the container.
|
static LocalDispatcher |
removeFromCache(String dispatcherName) |
boolean |
start()
Start the container process.
|
void |
stop()
Stop the container process.
|
public void init(List<StartupCommand> ofbizCommands, String name, String configFile) throws ContainerException
Container
init
in interface Container
ofbizCommands
- Command-line arguments.name
- Unique name of the container's instance.configFile
- Location of the configuration file used to load this container.ContainerException
- If an error was encountered. Throwing this exception
will halt container loading, so it should be thrown only when other containers
might depend on this one.public boolean start() throws ContainerException
Container
start
in interface Container
true
if the process started.ContainerException
- If an error was encountered.public void stop() throws ContainerException
Container
stop
in interface Container
ContainerException
- If an error was encountered.public String getName()
Container
public static LocalDispatcher getLocalDispatcher(String dispatcherName, Delegator delegator)
public static void deregister(String dispatcherName)
public static LocalDispatcher removeFromCache(String dispatcherName)