|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.gui.MultipleConnectionAndTopologyHandler<CH>
public class MultipleConnectionAndTopologyHandler<CH extends ConnectionHandler>
This class tracks the connection(s) to the backend(s) and their associated topology(ies). It may be helpful when populating more than one topology or receiving topology information from multiple connections.
| Constructor Summary | |
|---|---|
MultipleConnectionAndTopologyHandler()
Initialize the multiple connection and topology manager with the initial connection. |
|
MultipleConnectionAndTopologyHandler(CH ch)
Initialize the multiple connection and topology manager with the initial connection. |
|
| Method Summary | |
|---|---|
void |
addConnectionManager(CH conn)
Add a connection manager. |
CH |
getConnectionManager(int index)
Returns the requested connection to the backend. |
int |
getNumConnectionManagers()
Returns the number of connections being maintained |
int |
getNumTopologies()
Returns the number of topologies being maintained |
Topology |
getTopology(int index)
Returns the requested connection to the backend. |
void |
pzClosing(PZManager manager)
Shuts down all connections in response to the GUI being shutdown. |
void |
removeConnection(int index)
Removes and shuts down the specified connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipleConnectionAndTopologyHandler()
public MultipleConnectionAndTopologyHandler(CH ch)
ch - the initial connection manager (if null then it starts with no
connections)| Method Detail |
|---|
public void addConnectionManager(CH conn)
public CH getConnectionManager(int index)
index - the index of the connection to getpublic int getNumConnectionManagers()
public void removeConnection(int index)
index - the index of the connection to removepublic void pzClosing(PZManager manager)
public Topology getTopology(int index)
index - the index of the connection to getpublic int getNumTopologies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||