guarana.toolkit.adapter.rmi
Class RMIExitAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.rmi.AbstractRMIAdapter
      extended by guarana.toolkit.adapter.rmi.RMIExitAdapter
All Implemented Interfaces:
IExitAdapter

public class RMIExitAdapter
extends AbstractRMIAdapter
implements IExitAdapter

An RMI adapter that can be used in active exit ports to push messages into passive entry ports.

Since:
Guaranį SDK 1.2.0
Author:
Rafael Z. Frantz

Constructor Summary
RMIExitAdapter(String jndiName, String host, int port)
          Constructs a new RMI Adapter for Exit Ports.
 
Method Summary
 void write(Message<?> message)
          Writes the message to the passive resource.
 
Methods inherited from class guarana.toolkit.adapter.rmi.AbstractRMIAdapter
getHost, getJndiName, getPort, setHost, setJndiName, setPort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIExitAdapter

public RMIExitAdapter(String jndiName,
                      String host,
                      int port)
               throws RemoteException
Constructs a new RMI Adapter for Exit Ports. This adapter allows to push messages inside Entry Ports.

Parameters:
jndiName - JNDI name of the communicator of the Entry Port.
host - The host for the remote registry.
port - The port on which the registry accepts requests.
Throws:
RemoteException - if any remote exception is raised during this method execution.
Method Detail

write

public void write(Message<?> message)
           throws AdapterException
Writes the message to the passive resource.

Specified by:
write in interface IExitAdapter
Parameters:
message - The outbound message.
Throws:
AdapterException - to report any problems during the method execution.


Guaranį DSL Home