|
|||||||||
| 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.Administrator
A class for handling common administrative chores.
Derived from the BasicUnicastAdmin class by W Keith Edwards.
| Field Summary | |
protected FrugalServiceRemote |
Ministry
The Frugal Service (either a Frugal resource or a Frugal manager) associated with this object. |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
protected |
Administrator(FrugalServiceRemote Ministry)
Constructs a new instance of the Administrator class linked to a particular Frugal Service. |
| Method Summary | |
void |
addLookupAttributes(net.jini.core.entry.Entry[] duties)
Adds new lookup attributes to the relevant Frugal Service. |
void |
addLookupGroups(java.lang.String[] holdings)
Adds lookup groups to the list associated with the relevant Frugal Service's JoinManager. |
void |
addLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
Informs the relevant Frugal Service of new lookup locators, representing lookup services it should try to connect to. |
void |
destroy()
Kills the Frugal Service associated with this administrative object. |
net.jini.core.entry.Entry[] |
getLookupAttributes()
Returns the lookup attributes for the relevant Frugal Service. |
java.lang.String[] |
getLookupGroups()
Returns the list of lookup groups for the relevant Frugal Service. |
net.jini.core.discovery.LookupLocator[] |
getLookupLocators()
Returns the locators for the list of lookup services the relevant Frugal Service connects to. |
java.lang.String |
getStorageLocation()
Returns the storage location for the persistent data associated with the relevant Frugal Service. |
void |
modifyLookupAttributes(net.jini.core.entry.Entry[] manifesto,
net.jini.core.entry.Entry[] duties)
Changes the lookup attributes for the relevant Frugal Service, as per ServiceRegistration.modifyAttributes(). |
void |
removeLookupGroups(java.lang.String[] holdings)
Removes lookup groups from the list associated with the relevant Frugal Service. |
void |
removeLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
Tells the relevant Frugal Service to cease connecting to the lookup services corresponding to the locators provided. |
void |
setLookupGroups(java.lang.String[] holdings)
Sets the list of lookup groups associated with the relevant Frugal Service. |
void |
setLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
Changes the list of lookup services the relevant Frugal Service tries to connect to. |
void |
setStorageLocation(java.lang.String office)
Sets the storage location for the persistent data associated with the relevant Frugal Service. |
| 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 FrugalServiceRemote Ministry
| Constructor Detail |
protected Administrator(FrugalServiceRemote Ministry)
throws java.rmi.RemoteException
| Method Detail |
public void destroy()
public void setStorageLocation(java.lang.String office)
throws java.rmi.RemoteException
office - The new storage location.public java.lang.String getStorageLocation()
public net.jini.core.entry.Entry[] getLookupAttributes()
public void addLookupAttributes(net.jini.core.entry.Entry[] duties)
throws java.rmi.RemoteException
duties - New information about the Frugal Service's responsibilities.
public void modifyLookupAttributes(net.jini.core.entry.Entry[] manifesto,
net.jini.core.entry.Entry[] duties)
throws java.rmi.RemoteException
manifesto - The templates for new duties.duties - New information about the Frugal Service's responsibilities.public java.lang.String[] getLookupGroups()
public void addLookupGroups(java.lang.String[] holdings)
throws java.rmi.RemoteException
holdings - A list of new lookup groups, conceptually "managed" by
this Service if it is a Frugal Manager and "served" if it is a resource.
public void removeLookupGroups(java.lang.String[] holdings)
throws java.rmi.RemoteException
holdings - A list of lookup groups no longer conceptually
"managed" by this Service if it is a Frugal Manager or "served" if
it is a resource.
public void setLookupGroups(java.lang.String[] holdings)
throws java.rmi.RemoteException
holdings - A list of the lookup groups conceptually "managed" by
this Service if it is a Frugal Manager and "served" if it is a resource.
public net.jini.core.discovery.LookupLocator[] getLookupLocators()
throws java.rmi.RemoteException
public void addLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
throws java.rmi.RemoteException
infOffices - The new lookup locators.
public void removeLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
throws java.rmi.RemoteException
infOffices - Locators for the lookup services it should no
longer connect to.
public void setLookupLocators(net.jini.core.discovery.LookupLocator[] infOffices)
throws java.rmi.RemoteException
infOffices - Locators for the lookup services it should
now try exclusively to connect to.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||