edu.jhu.cnds.Frugal
Interface FrugalService

All Known Subinterfaces:
FrugalServiceRemote

public interface FrugalService
extends net.jini.admin.Administrable

General interface for a Frugal Manager or Resource server, responsible for registering the Manager or Resource service with lookup services.

Version:
2.0
Author:
R. Sean Borgstrom

Method Summary
 void checkpoint()
          Saves recent changes to this class' persistent data.
 void dock()
          Kills the service.
 java.lang.Object getAdmin()
          Returns an administrative interface for the relevant Frugal Manager.
 net.jini.lookup.JoinManager getIsabella()
          Returns this class' JoinManager.
 java.io.File getMonument()
          Returns the persistent storage for this server.
 void setMonument(java.io.File monument)
          Sets the persistent storage for this server.
 

Method Detail

getMonument

public java.io.File getMonument()
                         throws java.rmi.RemoteException
Returns the persistent storage for this server.
Returns:
The file where the server stores its ID and other persistent attributes.

setMonument

public void setMonument(java.io.File monument)
                 throws java.rmi.RemoteException
Sets the persistent storage for this server.
Parameters:
monument - The new persistent storage location.

getIsabella

public net.jini.lookup.JoinManager getIsabella()
                                        throws java.rmi.RemoteException
Returns this class' JoinManager.
Returns:
A workhorse class for service registration.

getAdmin

public java.lang.Object getAdmin()
                          throws java.rmi.RemoteException
Returns an administrative interface for the relevant Frugal Manager.
Specified by:
getAdmin in interface net.jini.admin.Administrable
Returns:
An administrative interface for the relevant Frugal Manager.

dock

public void dock()
          throws java.rmi.RemoteException
Kills the service.

checkpoint

public void checkpoint()
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.rmi.RemoteException
Saves recent changes to this class' persistent data.