railo.runtime.gateway
Class SocketGateway

java.lang.Object
  extended by railo.runtime.gateway.SocketGateway
All Implemented Interfaces:
GatewayPro

public class SocketGateway
extends Object
implements GatewayPro


Field Summary
 
Fields inherited from interface railo.runtime.gateway.GatewayPro
FAILED, RUNNING, STARTING, STOPPED, STOPPING
 
Constructor Summary
SocketGateway()
           
 
Method Summary
 void doRestart()
          restart the gateway
 void doStart()
          starts the gateway
 void doStop()
          stop the gateway
 void error(String msg)
           
 Object getHelper()
          return helper object
 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 info(String msg)
           
 void init(GatewayEnginePro engine, String id, String cfcPath, Map config)
          method to initialize the gateway
 String sendMessage(Map _data)
          sends a message based on given data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketGateway

public SocketGateway()
Method Detail

init

public void init(GatewayEnginePro engine,
                 String id,
                 String cfcPath,
                 Map config)
          throws GatewayException
Description copied from interface: GatewayPro
method to initialize the gateway

Specified by:
init in interface GatewayPro
Parameters:
engine - the gateway engine
id - the id of the gateway
cfcPath - the path to the listener component
config - the configuration as map
Throws:
GatewayException

doStart

public void doStart()
Description copied from interface: GatewayPro
starts the gateway

Specified by:
doStart in interface GatewayPro

doStop

public void doStop()
Description copied from interface: GatewayPro
stop the gateway

Specified by:
doStop in interface GatewayPro

sendMessage

public String sendMessage(Map _data)
Description copied from interface: GatewayPro
sends a message based on given data

Specified by:
sendMessage in interface GatewayPro
Returns:
answer from gateway

doRestart

public void doRestart()
Description copied from interface: GatewayPro
restart the gateway

Specified by:
doRestart in interface GatewayPro

getId

public String getId()
Description copied from interface: GatewayPro
returns the id of the gateway

Specified by:
getId in interface GatewayPro
Returns:
the id of the gateway

getState

public int getState()
Description copied from interface: GatewayPro
returns a string that is used by the event gateway administrator to display status

Specified by:
getState in interface GatewayPro
Returns:
status (STARTING, RSTOPPING, STOPPED, FAILED)

getHelper

public Object getHelper()
Description copied from interface: GatewayPro
return helper object

Specified by:
getHelper in interface GatewayPro
Returns:
helper object

info

public void info(String msg)

error

public void error(String msg)


Copyright © 2012 Railo