All Packages Class Hierarchy This Package Previous Next Index
Class calypso.core.connmanager.MCConnectionDescr
java.lang.Object
|
+----java.rmi.server.RemoteObject
|
+----java.rmi.server.RemoteServer
|
+----java.rmi.server.UnicastRemoteObject
|
+----calypso.core.connmanager.MCConnectionDescr
- public class MCConnectionDescr
- extends UnicastRemoteObject
- implements VCConnectionDescr
Multicast connection descriptor
- Author:
- Jukka Aro / TCM Laboratory / HUT
- See Also:
- VCConnectionDescr, PPConnectionDescr
-
MCConnectionDescr(InetAddress, VPIVCI, int, MCConnection)
- Constructor to create a new MCConnectionDescription instance and
to generate a new ID number
-
MCConnectionDescr(InetAddress, VPIVCI, int, MCConnection, Long)
- Constructor to create a new MCConnectionDescription instance with
pre-defined ID number
-
addClient(InetAddress, InetAddress, VPIVCI)
-
-
addClient(InetAddress, VCPoint)
- Adds a new client to this multicast connection.
-
closeConnection()
- Closes the connection.
-
getAllIP2()
-
-
getAllP2()
-
-
getAllVCC2()
-
-
getConnection()
-
-
getConnID()
-
-
getIP1()
-
-
getIP2()
- Do nothing.
-
getPort1()
-
-
getPort2()
- Do nothing.
-
getVCC1()
-
-
getVCC2()
- Do nothing.
-
removeClient(InetAddress)
- Removes a connection to a client
-
setSignallingContext(SignallingContext)
- Sets the Signalling Context
-
toString()
- Returns textual representation of this MCConnection object.
MCConnectionDescr
protected MCConnectionDescr(InetAddress IP1_,
VPIVCI VCC1_,
int port1_,
MCConnection mcc_,
Long connID_) throws RemoteException
- Constructor to create a new MCConnectionDescription instance with
pre-defined ID number
- Parameters:
- IP1_ - IP address of the server
- VCC1_ - VPI/VCI pair on the server's side of the switch
- port1_ - Port number on the server's side of the switch
- mcc_ - This multicast connection
- connID_ - ID number of this multicast connection
descriptor
MCConnectionDescr
protected MCConnectionDescr(InetAddress IP1_,
VPIVCI VCC1_,
int port1_,
MCConnection mcc_) throws RemoteException
- Constructor to create a new MCConnectionDescription instance and
to generate a new ID number
- Parameters:
- IP1_ - IP address of the server
- VCC1_ - VPI/VCI pair on the server's side of the switch
- port1_ - Port number on the server's side of the switch
- mcc_ - This multicast connection
toString
public String toString()
- Returns textual representation of this MCConnection object.
- Returns:
- Textual representation of this object.
- Overrides:
- toString in class RemoteObject
addClient
public void addClient(InetAddress IP2,
VCPoint p2) throws RemoteException
- Adds a new client to this multicast connection.
- Parameters:
- IP2 - IP address of the client
- p2 - Reference to the incoming point of the new client.
addClient
public void addClient(InetAddress IP2_,
InetAddress prevRouterIP_,
VPIVCI VCC2_) throws RemoteException
removeClient
public void removeClient(InetAddress IP2_)
- Removes a connection to a client
- Parameters:
- IP2 - IP address of the client
closeConnection
public void closeConnection() throws RemoteException
- Closes the connection. The resources reserved
for the connection are released.
setSignallingContext
public void setSignallingContext(SignallingContext sc_) throws RemoteException
- Sets the Signalling Context
- Parameters:
- sc_ - Signalling Context
getIP1
public InetAddress getIP1() throws RemoteException
- Returns:
- IP address of the server
getVCC1
public VPIVCI getVCC1() throws RemoteException
- Returns:
- VPI/VCI pair on the server's side of the switch
getPort1
public int getPort1() throws RemoteException
- Returns:
- port number on the server's side of the switch
getIP2
public InetAddress getIP2() throws RemoteException
- Do nothing. Needed to implement the interface VCConnectionDescr.
getVCC2
public VPIVCI getVCC2() throws RemoteException
- Do nothing. Needed to implement the interface VCConnectionDescr.
getPort2
public int getPort2() throws RemoteException
- Do nothing. Needed to implement the interface VCConnectionDescr.
getAllIP2
public Enumeration getAllIP2()
- Returns:
- an enumeration of IP addresses of the clients
getAllVCC2
public Enumeration getAllVCC2()
- Returns:
- an enumeration of VPI/VCI pairs on the client's side of the switch
getAllP2
public Enumeration getAllP2()
- Returns:
- an enumeration of VCPoints on the client's side of the switch
getConnection
public MCConnection getConnection()
- Returns:
- connection
getConnID
public Long getConnID()
- Returns:
- connection ID
All Packages Class Hierarchy This Package Previous Next Index