service
Interface IIdentification

All Known Implementing Classes:
IdentificationService

public interface IIdentification

Identification service allowing a process to get its identifier, to leave the system and to know the identifiers of the other processes of the system.


Field Summary
static java.lang.String ipGroup
          Multicast IP adress for contacting the identification server
static int port
          Multicast port for contacting the identification server
 
Method Summary
 java.util.Vector<ProcessIdentifier> getAllIdentifiers()
           
 ProcessIdentifier getMyIdentifier()
           
 void leaveSystem()
          Leave the system: the identification server remove the current process from the process list identifiers and inform the other processes of the leaving of the current process.
 

Field Detail

ipGroup

static final java.lang.String ipGroup
Multicast IP adress for contacting the identification server

See Also:
Constant Field Values

port

static final int port
Multicast port for contacting the identification server

See Also:
Constant Field Values
Method Detail

getMyIdentifier

ProcessIdentifier getMyIdentifier()
Returns:
the identifier of the current process

getAllIdentifiers

java.util.Vector<ProcessIdentifier> getAllIdentifiers()
Returns:
the list of identifiers of all processes of the system (excepting the one of the current process)

leaveSystem

void leaveSystem()
Leave the system: the identification server remove the current process from the process list identifiers and inform the other processes of the leaving of the current process.