public class SimpleNetwork extends StreamNetwork
SimpleNetwork
is a simple implementation of
StreamNetwork
class with a single connection at
a time.Modifier and Type | Class and Description |
---|---|
(package private) class |
SimpleNetwork.NetServerIn |
(package private) class |
SimpleNetwork.NetServerOut |
(package private) class |
SimpleNetwork.NetworkInputStream |
(package private) class |
SimpleNetwork.NetworkOutputStream |
Network.NetworkAverageLoadTask
Modifier and Type | Field and Description |
---|---|
(package private) SimpleNetwork.NetServerIn |
netServerIn
Input component
|
(package private) SimpleNetwork.NetServerOut |
netServerOut
Output component
|
(package private) MessageSoftList |
sendList
FIFO list of all messages to be sent by the watch-dog thread.
|
backlog, CnxRetry, ConnectTimeout, inLocalAddr, outLocalAddr, outLocalPort, serverSocketFactory, socketFactory, SoLinger, SoTimeout, TcpNoDelay
ALREADY_DELIVERED, averageLoadTask, bootTSFN, DELIVER, domain, idxLS, logmon, name, nbMessageIn, nbMessageOut, port, qout, servers, serversFN, sid, WDActivationPeriod, WDNbRetryLevel1, WDNbRetryLevel2, WDRetryPeriod1, WDRetryPeriod2, WDRetryPeriod3
Constructor and Description |
---|
SimpleNetwork()
Creates a new network component.
|
Modifier and Type | Method and Description |
---|---|
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.
|
createServerSocket, createServerSocket, createSocket, createSocket, createSocket, init, setProperties, setSocketOption
addServer, channelPostAndValidate, checkActive, delete, deleteMessage, deliver, delServer, getAverageLoad1, getAverageLoad15, getAverageLoad5, getBootTS, getDomainName, getMessageDest, getMessageSource, getName, getNbMessageReceived, getNbMessageSent, getNbWaitingMessages, getPort, getQueue, getStamp, getWDActivationPeriod, getWDNbRetryLevel1, getWDNbRetryLevel2, getWDRetryPeriod1, getWDRetryPeriod2, getWDRetryPeriod3, index, insert, post, postAndValidate, postMessage, prepareMessage, prepareMessageWithoutStamp, resetServer, restore, save, saveChannel, setMessageSource, setPort, setStamp, setWDActivationPeriod, setWDNbRetryLevel1, setWDNbRetryLevel2, setWDRetryPeriod1, setWDRetryPeriod2, setWDRetryPeriod3, testBootTS, testRecvUpdate, validate, validateChannel
MessageSoftList sendList
SimpleNetwork.NetServerIn netServerIn
SimpleNetwork.NetServerOut netServerOut
public void start() throws IOException
IOException
stop
public void stop()
start
public boolean isRunning()
MessageConsumer
is alive; false
otherwise.public String toString()
toString
in interface NetworkMBean
toString
in class Network
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.