fr.dyade.aaa.agent

Class SimpleNetwork

Implemented Interfaces:
MessageConsumer, NetworkMBean

public class SimpleNetwork
extends StreamNetwork

SimpleNetwork 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

bootTSFN, domain, idxLS, logmon, name, port, qout, servers, serversFN, sid

Constructor Summary

SimpleNetwork()
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.
String
toString()
Returns a string representation of this consumer, including the daemon's name and status.

Methods inherited from class fr.dyade.aaa.agent.StreamNetwork

init

Methods inherited from class fr.dyade.aaa.agent.Network

delete, deliver, getDomainName, getName, getPort, getQueue, index, init, insert, post, restore, save, setPort, toString, validate

Constructor Details

SimpleNetwork

public SimpleNetwork()
Creates a new network component.

Method Details

isRunning

public boolean isRunning()
Tests if the network component is alive.
Specified by:
isRunning in interface MessageConsumer
isRunning in interface NetworkMBean

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


start

public void start()
            throws IOException
Causes this network component to begin execution.
Specified by:
start in interface MessageConsumer
start in interface NetworkMBean


stop

public void stop()
Forces the network component to stop executing.
Specified by:
stop in interface MessageConsumer
stop in interface NetworkMBean


toString

public String toString()
Returns a string representation of this consumer, including the daemon's name and status.
Overrides:
toString in interface Network

Returns:
A string representation of this consumer.


Copyright B) 2004 Scalagent - All rights reserved