solar.service.mhost
Interface MobileHostService

All Superinterfaces:
EventHandler, RequestHandler, Service
All Known Implementing Classes:
SolarMobileHostService

public interface MobileHostService
extends Service

An interface for the client that may migrate from one Planet to the other.

Version:
$Id: MobileHostService.java,v 1.2 2003/10/05 18:50:57 glchen Exp $
Author:
Guanling Chen

Method Summary
 void addListener(MobileHostListener listener)
          Add a listener to client mobililty.
 void attach(Address address)
          Have the client explicitly attch to a Planet.
 void detach(Address address)
          Have the client explicitly detach from a Planet.
 java.util.List getAttachedClients()
          Get all the clients currently attached to this Planet.
 Address getAttachedServer()
          Get the Planet address to which this client is attached.
 boolean isAttached()
          Detemine whether this client is attched.
 boolean isAttached(Address client)
          Detemine whether the specified client is attched to this Planet.
 void removeListener(MobileHostListener listener)
          Remove a listener to client mobililty.
 
Methods inherited from interface solar.service.Service
getName, getServiceManager, handleDispatchUnit, hasInited, init, initDependents, setName, setServiceManager, start, stop
 
Methods inherited from interface solar.api.EventHandler
handleEvent
 
Methods inherited from interface solar.api.RequestHandler
handleRequest
 

Method Detail

attach

public void attach(Address address)
            throws MobileHostException
Have the client explicitly attch to a Planet.

MobileHostException

detach

public void detach(Address address)
            throws MobileHostException
Have the client explicitly detach from a Planet.

MobileHostException

isAttached

public boolean isAttached()
Detemine whether this client is attched.


isAttached

public boolean isAttached(Address client)
Detemine whether the specified client is attched to this Planet.


getAttachedServer

public Address getAttachedServer()
Get the Planet address to which this client is attached.


getAttachedClients

public java.util.List getAttachedClients()
Get all the clients currently attached to this Planet.


addListener

public void addListener(MobileHostListener listener)
Add a listener to client mobililty.


removeListener

public void removeListener(MobileHostListener listener)
Remove a listener to client mobililty.