|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucr.core.ConnectionList
Contains the set of current connections, the node connections can be in different states, not all may be active
Field Summary | |
private java.util.List |
currentConnectionList
|
Constructor Summary | |
(package private) |
ConnectionList()
|
Method Summary | |
(package private) void |
addConnection(NodeConnection connection)
Adds a connection |
(package private) int |
cleanDeadConnections(int type)
Remove any dead connections from the list |
(package private) boolean |
contains(Host host)
Check if a connection exists to a host |
(package private) boolean |
contains(java.lang.String ipAddress)
Check if a connection exists to a host |
(package private) int |
getActiveConnectionCount(int type)
Gets a count of the active (running outgoing connections) |
(package private) java.util.List |
getActiveConnections()
Get active outgoing and incoming connections |
private java.util.List |
getActiveConnections(int type)
Gets the active outgoing connections |
int |
getActiveIncomingConnectionCount()
Get the count of active incoming connections |
(package private) java.util.List |
getActiveIncomingConnections()
Gets the active incoming connections |
int |
getActiveOutgoingConnectionCount()
Gets a count of the active (running outgoing connections) |
(package private) java.util.List |
getActiveOutgoingConnections()
Gets the active outgoing connections |
java.util.LinkedList |
getList()
Gets a list containing the connections |
java.util.LinkedList |
getListOutgoing()
|
(package private) void |
removeConnection(NodeConnection connection)
Removes a connection |
(package private) void |
stopALLConnectionNOW()
Shuts down non-running connections needed |
(package private) void |
stopOutgoingConnectionAttempts()
Shuts down non-running connections needed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List currentConnectionList
Constructor Detail |
ConnectionList()
Method Detail |
public java.util.LinkedList getList()
public java.util.LinkedList getListOutgoing()
void addConnection(NodeConnection connection)
connection
- new connectionvoid removeConnection(NodeConnection connection)
connection
- to removeboolean contains(java.lang.String ipAddress)
ipAddress
- host address
boolean contains(Host host)
host
- which contains ip and port
java.util.List getActiveConnections()
java.util.List getActiveOutgoingConnections()
java.util.List getActiveIncomingConnections()
private java.util.List getActiveConnections(int type)
public int getActiveOutgoingConnectionCount()
public int getActiveIncomingConnectionCount()
int getActiveConnectionCount(int type)
int cleanDeadConnections(int type)
type
- of collection to clean
void stopOutgoingConnectionAttempts()
void stopALLConnectionNOW()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |