|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.gateway.GatewayEngineImpl
public class GatewayEngineImpl
Field Summary |
---|
Fields inherited from interface org.opencfml.eventgateway.GatewayEngine |
---|
LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_FATAL, LOGLEVEL_INFO, LOGLEVEL_WARN |
Constructor Summary | |
---|---|
GatewayEngineImpl(ConfigWeb config)
|
Method Summary | |
---|---|
void |
addEntries(Config config,
Map<String,GatewayEntry> entries)
|
void |
addEntry(Config config,
GatewayEntry ge)
|
Object |
call(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent,
Object defaultValue)
|
Object |
callEL(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent,
Object defaultValue)
|
boolean |
callOneWay(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent)
|
void |
clear()
|
Object |
getComponent(String cfcPath,
String id)
|
Map<String,GatewayEntry> |
getEntries()
|
Object |
getHelper(String gatewayId)
get helper object |
Component |
getPersistentRemoteCFC(String id)
|
int |
getState(String gatewayId)
get the state of gateway |
boolean |
invokeListener(Gateway gateway,
String method,
Map data)
invoke given method on cfc listener |
void |
log(Gateway gateway,
int level,
String message)
logs message with defined logger for gateways |
void |
remove(GatewayEntry ge)
|
void |
reset()
|
void |
restart(String gatewayId)
restart the gateway |
String |
sendMessage(String gatewayId,
Struct data)
send the message to the gateway |
Component |
setPersistentRemoteCFC(String id,
Component cfc)
|
void |
start(String gatewayId)
start the gateway |
void |
stop(String gatewayId)
stop the gateway |
static int |
toIntState(String state,
int defaultValue)
|
String |
toRequestURI(String cfcPath)
|
static String |
toStringState(int state,
String defaultValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GatewayEngineImpl(ConfigWeb config)
Method Detail |
---|
public void addEntries(Config config, Map<String,GatewayEntry> entries) throws ClassException, PageException, GatewayException
ClassException
PageException
GatewayException
public void addEntry(Config config, GatewayEntry ge) throws ClassException, PageException, GatewayException
ClassException
PageException
GatewayException
public Map<String,GatewayEntry> getEntries()
public void remove(GatewayEntry ge) throws GatewayException
GatewayException
public int getState(String gatewayId) throws PageException
gatewayId
-
PageException
public Object getHelper(String gatewayId) throws PageException
gatewayId
-
PageException
public String sendMessage(String gatewayId, Struct data) throws PageException, GatewayException
gatewayId
- data
-
PageException
GatewayException
public void start(String gatewayId) throws PageException
gatewayId
-
PageException
public void stop(String gatewayId) throws PageException
gatewayId
-
PageException
public void reset() throws PageException
PageException
public void clear() throws GatewayException, PageException
GatewayException
PageException
public void restart(String gatewayId) throws PageException
gatewayId
-
PageException
public static int toIntState(String state, int defaultValue)
public static String toStringState(int state, String defaultValue)
public boolean invokeListener(Gateway gateway, String method, Map data)
GatewayEngine
invokeListener
in interface GatewayEngine
method
- method to invokedata
- arguments
public Object callEL(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent, Object defaultValue)
public boolean callOneWay(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent) throws PageException
PageException
public Object getComponent(String cfcPath, String id) throws PageException
PageException
public Object call(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent, Object defaultValue) throws PageException
PageException
public String toRequestURI(String cfcPath)
org.opencfml.eventgateway.GatewayEngine#toRequestURI(java.lang.String)
public void log(Gateway gateway, int level, String message)
GatewayEngine
log
in interface GatewayEngine
public Component getPersistentRemoteCFC(String id)
public Component setPersistentRemoteCFC(String id, Component cfc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |