public class MoMaLauncher
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JVMServiceListener> |
listeners |
| Constructor and Description |
|---|
MoMaLauncher(java.lang.String[] param)
The Constructor for MoMaLauncher parses the paramters passed as string array
for "-inifile" and reads the rest of the configuration from this file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addJVMServiceListener(JVMServiceListener l)
Add a service state listener.
|
void |
fireServiceEvent(int state)
Fire a service event.
|
void |
fireServiceEvent(int state,
java.lang.String message)
Fire a service event.
|
void |
fireServiceEvent(JVMServiceEvent ev)
Fire a service event.
|
static void |
main(java.lang.String[] args) |
void |
run() |
void |
stop()
Set the stop flag for the thread.
|
protected java.util.List<JVMServiceListener> listeners
public MoMaLauncher(java.lang.String[] param)
param - public void fireServiceEvent(int state,
java.lang.String message)
state - The service statemessage - A message to printpublic void fireServiceEvent(int state)
- public void fireServiceEvent(JVMServiceEvent ev)
- public void run()
run in interface java.lang.Runnablepublic void addJVMServiceListener(JVMServiceListener l)
l - the service state listener to be added.public static void main(java.lang.String[] args)
public void stop()
throws java.lang.InterruptedException
java.lang.InterruptedException