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
-
connectionSetup(Long, int, VPIVCI, InetAddress, SignallingContext)
- Creates a new signalling context.
-
connectionSetup(Long, VPIVCI, InetAddress, SignallingContext, InetAddress, InetAddress)
- Creates a new signalling context.
-
getPeer(int)
- Returns reference to the peer in given port.
-
getPeerPort(int)
- Returns the neighbour port.
-
instance()
- Returns the only instance of the SingallingPeerImpl according to
Singleton Pattern.
-
ping()
- A method for the adjacency protocol.
-
routeAdded(Route)
-
-
routeDeleted(Route)
-
-
setPeer(SignallingPeer, int)
- Stores the reference to the SignallingPeer in given port.
-
setPeerPort(int, int)
- Sets the neighbour port.
-
tell(InetAddress, SignallingPeer)
- A method to set up the connection between adjacent signalling
peers.
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.
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
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
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
getPeerPort
int getPeerPort(int localPort_)
- Returns the neighbour port.
- Parameters:
- localPort_ - The local port number
- Returns:
- The adjacent port number of the neighbour switch
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
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
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
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
routeAdded
public void routeAdded(Route r_)
routeDeleted
public void routeDeleted(Route r_)
All Packages Class Hierarchy This Package Previous Next Index