Interface GNSInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
GNS

public interface GNSInterface
extends java.rmi.Remote

This is the interface for Global Name Server(GNS).

Since:
2.0
Version:
2.0 (10/2006)
Author:
Yin Xiong

Method Summary
 int getEOSflag()
          Gets the end of simulation flag.
 RoutingInfo getRoutingInfoByAid(java.lang.String aid)
          Gets the routing information for a message by the application-specified id.
 RoutingInfo getRoutingInfoByLid(int lid)
          Gets the routing information for a message by the system-assigned LP id.
 java.util.Vector<LPConfigInfo> registerPE(java.lang.String pm)
          Registers a new PE and returns the LP configuration information to this new PE.
 void setEOSflag(int f)
          Sets the end of simulation flag.
 

Method Detail

registerPE

java.util.Vector<LPConfigInfo> registerPE(java.lang.String pm)
                                          throws java.rmi.RemoteException
Registers a new PE and returns the LP configuration information to this new PE.

Parameters:
pm - String the name of the machine where the PE is running on.
Throws:
java.rmi.RemoteException

getRoutingInfoByAid

RoutingInfo getRoutingInfoByAid(java.lang.String aid)
                                throws java.rmi.RemoteException
Gets the routing information for a message by the application-specified id.

Parameters:
aid - String the application-specified id of the receiver of the message.
Throws:
java.rmi.RemoteException

getRoutingInfoByLid

RoutingInfo getRoutingInfoByLid(int lid)
                                throws java.rmi.RemoteException
Gets the routing information for a message by the system-assigned LP id.

Parameters:
lid - int the LP id of the receiver of this message.
Throws:
java.rmi.RemoteException

getEOSflag

int getEOSflag()
               throws java.rmi.RemoteException
Gets the end of simulation flag.

Throws:
java.rmi.RemoteException

setEOSflag

void setEOSflag(int f)
                throws java.rmi.RemoteException
Sets the end of simulation flag.

Parameters:
f - int the value of the flag to be set.
Throws:
java.rmi.RemoteException