fr.dyade.aaa.agent
Class SingleCnxNetwork

java.lang.Object
  extended byfr.dyade.aaa.agent.Network
      extended byfr.dyade.aaa.agent.StreamNetwork
          extended byfr.dyade.aaa.agent.CausalNetwork
              extended byfr.dyade.aaa.agent.SingleCnxNetwork
All Implemented Interfaces:
MessageConsumer, NetworkMBean

public class SingleCnxNetwork
extends CausalNetwork

SingleCnxNetwork is a simple implementation of StreamNetwork class with a single connection at a time.


Field Summary
 
Fields inherited from class fr.dyade.aaa.agent.Network
clock, domain, logmon, name, network, port, qout, waiting
 
Constructor Summary
SingleCnxNetwork()
          Creates a new network component
 
Method Summary
 boolean isRunning()
          Tests if the network component is alive.
 void start()
          Causes this network component to begin execution
 void stop()
          Forces the network component to stop executing.
 java.lang.String toString()
          Returns a string representation of this consumer, including the daemon's name and status.
 void wakeup()
          Wakes up the watch-dog thread.
 
Methods inherited from class fr.dyade.aaa.agent.CausalNetwork
deliver
 
Methods inherited from class fr.dyade.aaa.agent.Network
addServer, delServer, getDomainName, getName, getPort, getQueue, init, insert, invalidate, post, restore, save, setPort, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleCnxNetwork

public SingleCnxNetwork()
Creates a new network component

Method Detail

start

public void start()
           throws java.io.IOException
Causes this network component to begin execution

Throws:
java.io.IOException
See Also:
stop

wakeup

public void wakeup()
Wakes up the watch-dog thread.

Specified by:
wakeup in class Network

stop

public void stop()
Forces the network component to stop executing.

See Also:
start

isRunning

public boolean isRunning()
Tests if the network component is alive.

Returns:
true if this MessageConsumer is alive; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of this consumer, including the daemon's name and status.

Overrides:
toString in class Network
Returns:
A string representation of this consumer.


Copyright © 2004 Scalagent - All rights reserved