guarana.toolkit.adapter.rmi
Class AbstractRMIAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.rmi.AbstractRMIAdapter
Direct Known Subclasses:
RMIEntryAdapter, RMIExitAdapter

public abstract class AbstractRMIAdapter
extends Object

An abstract RMI adapter.

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

Constructor Summary
AbstractRMIAdapter(String jndiName, String host, int port)
          Constructs a new RMI Adapter.
 
Method Summary
 String getHost()
          Returns the host for the remote registry.
 String getJndiName()
          Returns the JNDI name of the remote object.
 int getPort()
          Returns the port on which the registry accepts requests.
 void setHost(String host)
          Sets the host for the remote registry.
 void setJndiName(String jndiName)
          Sets the JNDI name of the remote object.
 void setPort(int port)
          Sets the port on which the registry accepts requests.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRMIAdapter

public AbstractRMIAdapter(String jndiName,
                          String host,
                          int port)
                   throws RemoteException
Constructs a new RMI Adapter.

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

setJndiName

public void setJndiName(String jndiName)
Sets the JNDI name of the remote object.

Parameters:
jndiName - The jndiName to set.

getJndiName

public String getJndiName()
Returns the JNDI name of the remote object.

Returns:
the jndiName.

setHost

public void setHost(String host)
Sets the host for the remote registry.

Parameters:
host - The host to set.

getHost

public String getHost()
Returns the host for the remote registry.

Returns:
the host.

setPort

public void setPort(int port)
Sets the port on which the registry accepts requests.

Parameters:
port - The port to set.

getPort

public int getPort()
Returns the port on which the registry accepts requests.

Returns:
the port.


Guaranį DSL Home