guarana.toolkit.adapter.rmi
Class RMIEntryAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.rmi.AbstractRMIAdapter
      extended by guarana.toolkit.adapter.rmi.RMIEntryAdapter
All Implemented Interfaces:
IEntryAdapter

public class RMIEntryAdapter
extends AbstractRMIAdapter
implements IEntryAdapter

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

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

Constructor Summary
RMIEntryAdapter(String jndiName, String host, int port)
          Constructs a new RMI Adapter for Entry Ports.
 
Method Summary
 Message<?> read()
          EntryPort (Active)
Reads a message from 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

RMIEntryAdapter

public RMIEntryAdapter(String jndiName,
                       String host,
                       int port)
                throws RemoteException
Constructs a new RMI Adapter for Entry Ports. This adapter allows to fetch messages from an Exit Port.

Parameters:
jndiName - JNDI name of the communicator of the Exit 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

read

public Message<?> read()
                throws AdapterException
EntryPort (Active)
Reads a message from the passive resource.

Specified by:
read in interface IEntryAdapter
Returns:
Message The inbound message; otherwise null if there is no message to poll.
Throws:
AdapterException - to report any problems during the method execution.


Guaranį DSL Home