openr66.protocol.networkhandler
Class ClientNetworkChannels

java.lang.Object
  extended by openr66.protocol.networkhandler.ClientNetworkChannels

public class ClientNetworkChannels
extends Object

Client NetworkChannel attached to one HostId. This class is used to keep information for one HostID when it connects as client to the current Host. As one Id can be shared or one can use direct send, so having a connection by request, this class is useful when one wants to know who is connected and how many times.

Author:
Frederic Bregier

Constructor Summary
ClientNetworkChannels(String hostId)
           
 
Method Summary
 void add(NetworkChannel networkChannel)
           
 String getHostId()
           
 boolean isEmpty()
           
 void remove(NetworkChannel networkChannel)
           
 boolean shutdownAll()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientNetworkChannels

public ClientNetworkChannels(String hostId)
Method Detail

add

public void add(NetworkChannel networkChannel)

remove

public void remove(NetworkChannel networkChannel)

isEmpty

public boolean isEmpty()

size

public int size()

shutdownAll

public boolean shutdownAll()

getHostId

public String getHostId()


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.