All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.core.signalling.SignallingPeerImpl

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject
                           |
                           +----calypso.core.signalling.SignallingPeerImpl

public class SignallingPeerImpl
extends UnicastRemoteObject
implements SignallingPeer, RouteChangeListener
An implementation of the Signalling Peer entity for a Calypso SwC.

Version:
$Revision: 1.2 $
Author:
Juhana Räsänen

Method Index

 o connectionSetup(Long, int, VPIVCI, InetAddress, SignallingContext)
Creates a new signalling context.
 o connectionSetup(Long, VPIVCI, InetAddress, SignallingContext, InetAddress, InetAddress)
Creates a new signalling context.
 o getPeer(int)
Returns reference to the peer in given port.
 o getPeerPort(int)
Returns the neighbour port.
 o instance()
Returns the only instance of the SingallingPeerImpl according to Singleton Pattern.
 o ping()
A method for the adjacency protocol.
 o routeAdded(Route)
 o routeDeleted(Route)
 o setPeer(SignallingPeer, int)
Stores the reference to the SignallingPeer in given port.
 o setPeerPort(int, int)
Sets the neighbour port.
 o tell(InetAddress, SignallingPeer)
A method to set up the connection between adjacent signalling peers.

Methods

 o instance
 public static SignallingPeerImpl instance()
Returns the only instance of the SingallingPeerImpl according to Singleton Pattern. The instance is created if necessary.

Returns:
The only instance.
 o setPeer
 public void setPeer(SignallingPeer peer_,
                     int port_)
Stores the reference to the SignallingPeer in given port.

Parameters:
peer_ - The reference to the peer
port_ - The (switch) port where the peer lives
 o getPeer
 SignallingPeer getPeer(int port_)
Returns reference to the peer in given port.

Parameters:
port_ - The number of the (switch) port
Returns:
Reference to the SignallingPeer
 o setPeerPort
 void setPeerPort(int remotePort_,
                  int localPort_)
Sets the neighbour port.

Parameters:
localPort_ - The local port number
remotePort_ - The adjacent port number of the neighbour switch
 o getPeerPort
 int getPeerPort(int localPort_)
Returns the neighbour port.

Parameters:
localPort_ - The local port number
Returns:
The adjacent port number of the neighbour switch
 o connectionSetup
 public SignallingContext connectionSetup(Long connID_,
                                          int fromPort_,
                                          VPIVCI fromVCC_,
                                          InetAddress dest_,
                                          SignallingContext oSide_) throws RemoteException
Creates a new signalling context. Called from the neighbouring node during a connection setup phase.

Throws: RemoteException
If remote method call fails
 o connectionSetup
 public SignallingContext connectionSetup(Long connID_,
                                          VPIVCI fromVCC_,
                                          InetAddress dest_,
                                          SignallingContext oSide_,
                                          InetAddress clientIP_,
                                          InetAddress prevRouterIP_) throws RemoteException
Creates a new signalling context. Called from the neighbouring node during a connection setup phase.

Throws: RemoteException
If remote method call fails
 o ping
 public void ping() throws RemoteException
A method for the adjacency protocol. Called by neighbouring signalling peers to ensure that the link is up.

Throws: RemoteException
If remote method call fails
 o tell
 public int tell(InetAddress IP_,
                 SignallingPeer peer_) throws RemoteException
A method to set up the connection between adjacent signalling peers. Called by each of the neighbours when they want to inform of themselves.

Returns:
The port number where the caller resides
Throws: RemoteException
If remote method call fails
 o routeAdded
 public void routeAdded(Route r_)
 o routeDeleted
 public void routeDeleted(Route r_)

All Packages  Class Hierarchy  This Package  Previous  Next  Index