guarana.toolkit.adapter.rmi
Class RMIEntryAdapter
java.lang.Object
guarana.toolkit.adapter.rmi.AbstractRMIAdapter
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
Method Summary |
Message<?> |
read()
EntryPort (Active)
Reads a message from the passive resource. |
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.
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