|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--edu.jhu.cnds.Frugal.FrugalResourceServer
A server class, designed to register Frugal Resource implementations with lookup services.
| Field Summary | |
protected net.jini.lookup.JoinManager |
isabella
Workhorse server class from Sun. |
protected net.jini.lease.LeaseRenewalManager |
serviceLease
LeaseRenewalManager for this class' leases. |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
FrugalResourceServer(java.lang.String[] argv)
Loads persistent data, creates an implementation of the Frugal Resource service, and registers it. |
|
| 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. |
static void |
main(java.lang.String[] argv)
Starts the server running. |
void |
setMonument(java.io.File monument)
Sets the persistent storage for this server. |
protected void |
update()
Updates the Entries associated with the relevant Frugal Resource every 5 seconds. |
static void |
usageError()
Complains about improper commandline arguments. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected transient net.jini.lease.LeaseRenewalManager serviceLease
protected net.jini.lookup.JoinManager isabella
| Constructor Detail |
public FrugalResourceServer(java.lang.String[] argv)
throws java.io.IOException,
java.lang.ClassNotFoundException
argv - These should be the same arguments as those passed to main.| Method Detail |
public static void main(java.lang.String[] argv)
argv - List of command-line argument strings.public static void usageError()
protected void update()
throws java.io.IOException
public void dock()
public java.io.File getMonument()
public void setMonument(java.io.File monument)
monument - The new persistent storage location.public net.jini.lookup.JoinManager getIsabella()
public java.lang.Object getAdmin()
throws java.rmi.RemoteException
public void checkpoint()
throws java.io.IOException,
java.lang.ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||