com.inspirel.yami.beans
Class ObjectProxy

java.lang.Object
  extended by com.inspirel.yami.beans.ObjectProxy

public class ObjectProxy
extends java.lang.Object

Bean utility for remote object access.


Constructor Summary
ObjectProxy()
          Default constructor.
 
Method Summary
 void closeConnection()
          Closes the given connection with default (lowest) priority.
 void closeConnection(int priority)
          Closes the given connection.
 OutgoingMessage send(java.lang.String messageName, Parameters content)
          Sends the new outgoing message to the given destination.
 OutgoingMessage send(java.lang.String messageName, Parameters content, int priority)
          Sends the new outgoing message to the given destination.
 void sendOneWay(java.lang.String messageName, Parameters content)
          Sends the new outgoing message to the given destination, without the possibility to track its progress.
 void sendOneWay(java.lang.String messageName, Parameters content, int priority)
          Sends the new outgoing message to the given destination, without the possibility to track its progress.
 void setAgent(AgentWrapper agentWrapper)
          Property for defining (referencing) the agent wrapper.
 void setObjectName(java.lang.String name)
          Property for defining the service name, as seen by clients.
 void setTarget(java.lang.String target)
          Property for defining the remote target name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectProxy

public ObjectProxy()
Default constructor.

Method Detail

setAgent

public void setAgent(AgentWrapper agentWrapper)
Property for defining (referencing) the agent wrapper.


setTarget

public void setTarget(java.lang.String target)
Property for defining the remote target name.


setObjectName

public void setObjectName(java.lang.String name)
Property for defining the service name, as seen by clients.


send

public OutgoingMessage send(java.lang.String messageName,
                            Parameters content)
                     throws YAMIIOException
Sends the new outgoing message to the given destination.

See the documentation for the send method in the Agent class for details.

Throws:
YAMIIOException

send

public OutgoingMessage send(java.lang.String messageName,
                            Parameters content,
                            int priority)
                     throws YAMIIOException
Sends the new outgoing message to the given destination.

See the documentation for the send method in the Agent class for details.

Throws:
YAMIIOException

sendOneWay

public void sendOneWay(java.lang.String messageName,
                       Parameters content)
                throws YAMIIOException
Sends the new outgoing message to the given destination, without the possibility to track its progress.

See the documentation for the sendOneWay method in the Agent class for details.

Throws:
YAMIIOException

sendOneWay

public void sendOneWay(java.lang.String messageName,
                       Parameters content,
                       int priority)
                throws YAMIIOException
Sends the new outgoing message to the given destination, without the possibility to track its progress.

See the documentation for the sendOneWay method in the Agent class for details.

Throws:
YAMIIOException

closeConnection

public void closeConnection()
Closes the given connection with default (lowest) priority.

See the documentation for the closeConnection method in the Agent class for details.


closeConnection

public void closeConnection(int priority)
Closes the given connection.

See the documentation for the closeConnection method in the Agent class for details.