SOMA.mobilePlace
Class MobilePlaceNameService

java.lang.Object
  extended bySOMA.naming.place.PlaceNameService
      extended bySOMA.mobilePlace.MobilePlaceNameService
All Implemented Interfaces:
java.io.Serializable

public class MobilePlaceNameService
extends PlaceNameService

Servizio di nomi di place mobile, PNS.

Author:
Livio Profiri
See Also:
PlaceNameService, DomainNameService, Serialized Form

Field Summary
 
Fields inherited from class SOMA.naming.place.PlaceNameService
env, places
 
Constructor Summary
MobilePlaceNameService(Environment env)
          Costruttore.
 
Method Summary
 void clear()
          Elimina tutti i place tranne il place mobile.
 boolean register(java.net.InetAddress host, int port)
          Registrazione presso il PNS del default place del dominio.
 java.lang.String toString()
           
 
Methods inherited from class SOMA.naming.place.PlaceNameService
getPlace, getPlacesArray, listPlaces, putPlace, refresh, refresh, removePlace, sendToAllPlaces, sendToAllPlaces, setEnv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobilePlaceNameService

public MobilePlaceNameService(Environment env)
Costruttore.

Parameters:
env - L'environment del place.
Method Detail

register

public boolean register(java.net.InetAddress host,
                        int port)
Registrazione presso il PNS del default place del dominio.

Viene inviato un PlaceRegisterCommand al default place, individuato dalla coppia host:port.

Overrides:
register in class PlaceNameService

clear

public void clear()
Elimina tutti i place tranne il place mobile.


toString

public java.lang.String toString()
Overrides:
toString in class PlaceNameService


Copyright © 2004 Luca Foschini