public interface Gateway
Modifier and Type | Field and Description |
---|---|
static int |
FAILED |
static int |
RUNNING |
static int |
STARTING |
static int |
STOPPED |
static int |
STOPPING |
Modifier and Type | Method and Description |
---|---|
void |
doRestart()
restart the gateway
|
void |
doStart()
starts the gateway
|
void |
doStop()
stop the gateway
|
java.lang.Object |
getHelper()
return helper object
|
java.lang.String |
getId()
returns the id of the gateway
|
int |
getState()
returns a string that is used by the event gateway administrator to display status
|
void |
init(GatewayEngine engine,
java.lang.String id,
java.lang.String cfcPath,
java.util.Map config)
method to initialize the gateway
|
java.lang.String |
sendMessage(java.util.Map data)
sends a message based on given data
|
static final int STARTING
static final int RUNNING
static final int STOPPING
static final int STOPPED
static final int FAILED
void init(GatewayEngine engine, java.lang.String id, java.lang.String cfcPath, java.util.Map config) throws java.io.IOException
engine
- the gateway engineid
- the id of the gatewaycfcPath
- the path to the listener componentconfig
- the configuration as mapjava.io.IOException
java.lang.String getId()
java.lang.String sendMessage(java.util.Map data) throws java.io.IOException
data
- java.io.IOException
java.lang.Object getHelper()
void doStart() throws java.io.IOException
GatewayException
java.io.IOException
void doStop() throws java.io.IOException
GatewayException
java.io.IOException
void doRestart() throws java.io.IOException
GatewayException
java.io.IOException
int getState()