public static final class ScadaCheckConnect.TestChannelList
extends java.lang.Object
Constructor and Description |
---|
TestChannelList()
Create a new, empty
TestChannelList
object. |
Modifier and Type | Method and Description |
---|---|
void |
add(Channel chn)
Add the given channel to the list.
|
java.util.List<Channel> |
getPending()
Returns the list of channels which never connected,
that is, they are still pending.
|
void |
remove(Channel chn)
Removes the given channel from the the channel
list.
|
int |
sizeConnected()
Returns the number of the channels that passed the connection
test.
|
int |
sizePending()
Returns the size of the list, i.e., the number
of unconnected channels in the list.
|
boolean |
testChannelConnects(double dblTmOut)
Sends a "connection request" to Channel
Access for all the channels within the list.
|
public TestChannelList()
TestChannelList
object.public int sizePending()
public int sizeConnected()
public java.util.List<Channel> getPending()
public void add(Channel chn)
chn
- new list channelpublic void remove(Channel chn)
chn
- channel to be removedpublic boolean testChannelConnects(double dblTmOut)
remove(Channel)
will
issue an interrupt waking up the current thread.dblTmOut
- time (in seconds) to wait before connection attempt is abortedtrue
if all connections were made in the alloted time,
false if otherwise