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

Constructor Index

 o MCConnectionDescr(InetAddress, VPIVCI, int, MCConnection)
Constructor to create a new MCConnectionDescription instance and to generate a new ID number
 o MCConnectionDescr(InetAddress, VPIVCI, int, MCConnection, Long)
Constructor to create a new MCConnectionDescription instance with pre-defined ID number

Method Index

 o addClient(InetAddress, InetAddress, VPIVCI)
 o addClient(InetAddress, VCPoint)
Adds a new client to this multicast connection.
 o closeConnection()
Closes the connection.
 o getAllIP2()
 o getAllP2()
 o getAllVCC2()
 o getConnection()
 o getConnID()
 o getIP1()
 o getIP2()
Do nothing.
 o getPort1()
 o getPort2()
Do nothing.
 o getVCC1()
 o getVCC2()
Do nothing.
 o removeClient(InetAddress)
Removes a connection to a client
 o setSignallingContext(SignallingContext)
Sets the Signalling Context
 o toString()
Returns textual representation of this MCConnection object.

Constructors

 o 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
 o 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

Methods

 o toString
 public String toString()
Returns textual representation of this MCConnection object.

Returns:
Textual representation of this object.
Overrides:
toString in class RemoteObject
 o 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.
 o addClient
 public void addClient(InetAddress IP2_,
                       InetAddress prevRouterIP_,
                       VPIVCI VCC2_) throws RemoteException
 o removeClient
 public void removeClient(InetAddress IP2_)
Removes a connection to a client

Parameters:
IP2 - IP address of the client
 o closeConnection
 public void closeConnection() throws RemoteException
Closes the connection. The resources reserved for the connection are released.

 o setSignallingContext
 public void setSignallingContext(SignallingContext sc_) throws RemoteException
Sets the Signalling Context

Parameters:
sc_ - Signalling Context
 o getIP1
 public InetAddress getIP1() throws RemoteException
Returns:
IP address of the server
 o getVCC1
 public VPIVCI getVCC1() throws RemoteException
Returns:
VPI/VCI pair on the server's side of the switch
 o getPort1
 public int getPort1() throws RemoteException
Returns:
port number on the server's side of the switch
 o getIP2
 public InetAddress getIP2() throws RemoteException
Do nothing. Needed to implement the interface VCConnectionDescr.

 o getVCC2
 public VPIVCI getVCC2() throws RemoteException
Do nothing. Needed to implement the interface VCConnectionDescr.

 o getPort2
 public int getPort2() throws RemoteException
Do nothing. Needed to implement the interface VCConnectionDescr.

 o getAllIP2
 public Enumeration getAllIP2()
Returns:
an enumeration of IP addresses of the clients
 o getAllVCC2
 public Enumeration getAllVCC2()
Returns:
an enumeration of VPI/VCI pairs on the client's side of the switch
 o getAllP2
 public Enumeration getAllP2()
Returns:
an enumeration of VCPoints on the client's side of the switch
 o getConnection
 public MCConnection getConnection()
Returns:
connection
 o getConnID
 public Long getConnID()
Returns:
connection ID

All Packages  Class Hierarchy  This Package  Previous  Next  Index