com.inspirel.yami.beans
Class AgentWrapper

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

public class AgentWrapper
extends java.lang.Object

Bean wrapper for the YAMI agent. The wrapper allows the basic agent management within the container-like environment. The Spring framework is a particular target for this wrapper.


Constructor Summary
AgentWrapper()
          Default constructor.
 
Method Summary
 void close()
          Closes the agent object and cleans its internal resources.
 Agent getAgent()
          Retrieves the delegated agent object.
 void init()
          Initialization - creates and starts the agent.
 void setConnectionRetries(int connectionRetries)
          The property equivalent to the connection_retries option.
 void setConnectionRetryDelaySpread(int connectionRetryDelaySpread)
          The property equivalent to the connection_retry_delay_spread option.
 void setDispatcherThreads(int dispatcherThreads)
          The property equivalent to the dispatcher_threads option.
 void setIncomingHighWaterMark(int incomingHighWaterMark)
          The property equivalent to the incoming_high_water_mark option.
 void setIncomingLowWaterMark(int incomingLowWaterMark)
          The property equivalent to the incoming_low_water_mark option.
 void setListener(java.lang.String listener)
          The property representing the listener address.
 void setObject(IncomingMessageCallback callback)
          Convenience property for defining single service.
 void setObjectName(java.lang.String name)
          Convenience property for defining single service name.
 void setOutgoingHighWaterMark(int outgoingHighWaterMark)
          The property equivalent to the outgoing_high_water_mark option.
 void setOutgoingLowWaterMark(int outgoingLowWaterMark)
          The property equivalent to the outgoing_low_water_mark option.
 void setTcpFrameSize(int frameSize)
          The property equivalent to the tcp_frame_size option.
 void setTcpListenBacklog(int backlog)
          The property equivalent to the tcp_listen_backlog option.
 void setTcpNoDelay(boolean noDelay)
          The property equivalent to the tcp_nodelay option.
 void setTcpReuseAddr(boolean reuseAddr)
          The property equivalent to the tcp_reuseaddr option.
 void setUdpFrameSize(int frameSize)
          The property equivalent to the udp_frame_size option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentWrapper

public AgentWrapper()
Default constructor.

Method Detail

setTcpListenBacklog

public void setTcpListenBacklog(int backlog)
The property equivalent to the tcp_listen_backlog option.


setTcpReuseAddr

public void setTcpReuseAddr(boolean reuseAddr)
The property equivalent to the tcp_reuseaddr option.


setTcpNoDelay

public void setTcpNoDelay(boolean noDelay)
The property equivalent to the tcp_nodelay option.


setTcpFrameSize

public void setTcpFrameSize(int frameSize)
The property equivalent to the tcp_frame_size option.


setUdpFrameSize

public void setUdpFrameSize(int frameSize)
The property equivalent to the udp_frame_size option.


setDispatcherThreads

public void setDispatcherThreads(int dispatcherThreads)
The property equivalent to the dispatcher_threads option.


setConnectionRetries

public void setConnectionRetries(int connectionRetries)
The property equivalent to the connection_retries option.


setConnectionRetryDelaySpread

public void setConnectionRetryDelaySpread(int connectionRetryDelaySpread)
The property equivalent to the connection_retry_delay_spread option.


setOutgoingHighWaterMark

public void setOutgoingHighWaterMark(int outgoingHighWaterMark)
The property equivalent to the outgoing_high_water_mark option.


setOutgoingLowWaterMark

public void setOutgoingLowWaterMark(int outgoingLowWaterMark)
The property equivalent to the outgoing_low_water_mark option.


setIncomingHighWaterMark

public void setIncomingHighWaterMark(int incomingHighWaterMark)
The property equivalent to the incoming_high_water_mark option.


setIncomingLowWaterMark

public void setIncomingLowWaterMark(int incomingLowWaterMark)
The property equivalent to the incoming_low_water_mark option.


setListener

public void setListener(java.lang.String listener)
The property representing the listener address.


setObject

public void setObject(IncomingMessageCallback callback)
Convenience property for defining single service.


setObjectName

public void setObjectName(java.lang.String name)
Convenience property for defining single service name.


init

public void init()
Initialization - creates and starts the agent.


close

public void close()
Closes the agent object and cleans its internal resources.


getAgent

public Agent getAgent()
Retrieves the delegated agent object.