public class OSServiceManagerPlugin
extends java.lang.Object
implements org.processmining.framework.util.socket.ServiceEnvironment
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
OSServiceManagerPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
A service uses this method to signal that it has been canceled (i.e., the
socket is closed).
|
boolean |
isCancelled()
Provides the information about the state of the environment.
|
void |
log(java.lang.String message)
A service uses this method to log messages in the environment.
|
void |
log(java.lang.String message,
org.processmining.framework.plugin.events.Logger.MessageLevel level)
A service uses this method to log messages in the environment.
|
void |
log(java.lang.Throwable t)
A service uses this method to log occurrence of an exception in the
environment.
|
void |
manage(org.processmining.framework.plugin.PluginContext context,
OSService service) |
void |
manageUI(org.processmining.contexts.uitopia.UIPluginContext context,
OSService service) |
void |
stillAlive()
While listening on its socket, a service will regularly invoke this
method.
|
public static final java.lang.String NAME
public void manageUI(org.processmining.contexts.uitopia.UIPluginContext context, OSService service) throws java.io.IOException
java.io.IOException
public void manage(org.processmining.framework.plugin.PluginContext context, OSService service) throws java.io.IOException
java.io.IOException
public boolean isCancelled()
org.processmining.framework.util.socket.ServiceEnvironment
isCancelled
in interface org.processmining.framework.util.socket.ServiceEnvironment
public void log(java.lang.String message, org.processmining.framework.plugin.events.Logger.MessageLevel level)
org.processmining.framework.util.socket.ServiceEnvironment
log
in interface org.processmining.framework.util.socket.ServiceEnvironment
message
- is the message that should be loggedlevel
- is the type of messagepublic void log(java.lang.String message)
org.processmining.framework.util.socket.ServiceEnvironment
log
in interface org.processmining.framework.util.socket.ServiceEnvironment
message
- is the message that should be loggedpublic void log(java.lang.Throwable t)
org.processmining.framework.util.socket.ServiceEnvironment
log
in interface org.processmining.framework.util.socket.ServiceEnvironment
t
- is the exception that occurred and should be loggedpublic void cancel()
org.processmining.framework.util.socket.ServiceEnvironment
cancel
in interface org.processmining.framework.util.socket.ServiceEnvironment
public void stillAlive()
org.processmining.framework.util.socket.ServiceEnvironment
stillAlive
in interface org.processmining.framework.util.socket.ServiceEnvironment