railo.runtime.gateway.proxy
Class GatewayProxy

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

public class GatewayProxy
extends Object
implements GatewayPro


Field Summary
 
Fields inherited from interface railo.runtime.gateway.GatewayPro
FAILED, RUNNING, STARTING, STOPPED, STOPPING
 
Constructor Summary
GatewayProxy(Gateway gateway)
           
GatewayProxy(Object obj)
           
 
Method Summary
 void doRestart()
          restart the gateway
 void doStart()
          starts the gateway
 void doStop()
          stop the gateway
 Gateway getGateway()
           
 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 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

GatewayProxy

public GatewayProxy(Object obj)

GatewayProxy

public GatewayProxy(Gateway gateway)
Method Detail

init

public void init(GatewayEnginePro engine,
                 String id,
                 String cfcPath,
                 Map config)
          throws IOException
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:
IOException

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

sendMessage

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

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

getHelper

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

Specified by:
getHelper in interface GatewayPro
Returns:
helper object

doStart

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

Specified by:
doStart in interface GatewayPro
Throws:
GatewayException
IOException

doStop

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

Specified by:
doStop in interface GatewayPro
Throws:
GatewayException
IOException

doRestart

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

Specified by:
doRestart in interface GatewayPro
Throws:
GatewayException
IOException

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)

getGateway

public Gateway getGateway()


Copyright © 2012 Railo