|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.resources.servicecore.ServiceAdminProxy
public class ServiceAdminProxy
A ServiceAdminProxy is a proxy for the ServiceAdmin server. This is
the object passed to clients of the ServiceAdmin.
| Field Summary | |
|---|---|
protected ServiceAdmin |
serviceAdmin
The backend |
protected Uuid |
uuid
The unique identifier for this proxy |
| Constructor Summary | |
|---|---|
protected |
ServiceAdminProxy(ServiceAdmin serviceAdmin,
Uuid uuid)
|
| Method Summary | |
|---|---|
void |
addLookupAttributes(Entry[] attrSets)
|
void |
addLookupGroups(String[] groups)
|
void |
addLookupLocators(LookupLocator[] locators)
|
void |
advertise()
The advertise method informs a ServiceBean to advertise itself on the network providing access to all clients. |
void |
destroy()
|
boolean |
equals(Object o)
Proxies for servers with the same uuid are considered
equal. |
ServiceRegistrar[] |
getJoinSet()
Returns an array of instances of ServiceRegistrar, each corresponding to a lookup service with which the service is currently registered (joined) |
Entry[] |
getLookupAttributes()
|
String[] |
getLookupGroups()
|
LookupLocator[] |
getLookupLocators()
|
Uuid |
getReferentUuid()
|
Uuid |
getServiceBeanInstantiatorUuid()
Get the Uuid of the ServiceBeanInstantiator the ServiceBean is being hosted by |
ServiceElement |
getServiceElement()
Get the ServiceElement for the ServiceBean |
long |
getUpTime()
How long the service has been running |
int |
hashCode()
Proxies for servers with the same uuid have the same hash code. |
void |
modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
|
void |
removeLookupGroups(String[] groups)
|
void |
removeLookupLocators(LookupLocator[] locators)
|
void |
setLookupGroups(String[] groups)
|
void |
setLookupLocators(LookupLocator[] locators)
|
void |
setServiceElement(ServiceElement sElem)
Set the ServiceElement for the ServiceBean |
Object |
start()
The start method provides informs a ServiceBean to make itself ready to accept inbound communications, returning an Object which can be used to communicate with the ServiceBean. |
void |
stop(boolean force)
The stop method informs the ServiceBean to unexport itself from any underlying distributed Object communication mechanisms making it incapable of accepting inbound communications. |
void |
unadvertise()
The unadvertise method informs the ServiceBean to cancel all advertisements (registrations, etc...) it has made on the network. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ServiceAdmin serviceAdmin
protected final Uuid uuid
| Constructor Detail |
|---|
protected ServiceAdminProxy(ServiceAdmin serviceAdmin,
Uuid uuid)
| Method Detail |
|---|
public ServiceRegistrar[] getJoinSet()
throws RemoteException
ServiceAdmin
getJoinSet in interface ServiceAdminRemoteException - If communication errors occurServiceAdmin.getJoinSet()
public ServiceElement getServiceElement()
throws RemoteException
ServiceBeanAdmin
getServiceElement in interface ServiceBeanAdminRemoteException - If communication errors occurServiceBeanAdmin.getServiceElement()
public void setServiceElement(ServiceElement sElem)
throws RemoteException
ServiceBeanAdmin
setServiceElement in interface ServiceBeanAdminsElem - The ServiceElement
RemoteException - If communication errors occurServiceBeanAdmin.setServiceElement(org.rioproject.core.ServiceElement)
public long getUpTime()
throws RemoteException
ServiceBeanAdmin
getUpTime in interface ServiceBeanAdminRemoteException - If communication errors occurServiceBeanAdmin.getUpTime()
public Uuid getServiceBeanInstantiatorUuid()
throws RemoteException
ServiceBeanAdmin
getServiceBeanInstantiatorUuid in interface ServiceBeanAdminRemoteException - If communication errors occur
public Object start()
throws JSBControlException,
RemoteException
ServiceBeanControl
start in interface ServiceBeanControlJSBControlException - If any errors occur
RemoteException - If any communications errors occurServiceBeanControl.start()
public void stop(boolean force)
throws JSBControlException,
RemoteException
ServiceBeanControl
stop in interface ServiceBeanControlforce - If true, unexports the ServiceBean even if there are
pending or in-progress calls; if false, only unexports the ServiceBean if
there are no pending or in-progress calls
JSBControlException - If any errors occur
RemoteException - If any communications errors occurServiceBeanControl.stop(boolean)
public void advertise()
throws JSBControlException,
RemoteException
ServiceBeanControl
advertise in interface ServiceBeanControlJSBControlException - If any errors occur
RemoteException - If any communications errors occurServiceBeanControl.advertise()
public void unadvertise()
throws JSBControlException,
RemoteException
ServiceBeanControl
unadvertise in interface ServiceBeanControlJSBControlException - If any errors occur
RemoteException - If any communications errors occurServiceBeanControl.unadvertise()
public Entry[] getLookupAttributes()
throws RemoteException
getLookupAttributes in interface JoinAdminRemoteExceptionJoinAdmin.getLookupAttributes()
public void addLookupAttributes(Entry[] attrSets)
throws RemoteException
addLookupAttributes in interface JoinAdminRemoteExceptionJoinAdmin.addLookupAttributes(net.jini.core.entry.Entry[])
public void modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
throws RemoteException
modifyLookupAttributes in interface JoinAdminRemoteExceptionJoinAdmin.modifyLookupAttributes(net.jini.core.entry.Entry[], net.jini.core.entry.Entry[])
public String[] getLookupGroups()
throws RemoteException
getLookupGroups in interface JoinAdminRemoteExceptionJoinAdmin.getLookupGroups()
public void addLookupGroups(String[] groups)
throws RemoteException
addLookupGroups in interface JoinAdminRemoteExceptionJoinAdmin.addLookupGroups(java.lang.String[])
public void removeLookupGroups(String[] groups)
throws RemoteException
removeLookupGroups in interface JoinAdminRemoteExceptionJoinAdmin.removeLookupGroups(java.lang.String[])
public void setLookupGroups(String[] groups)
throws RemoteException
setLookupGroups in interface JoinAdminRemoteExceptionJoinAdmin.setLookupGroups(java.lang.String[])
public LookupLocator[] getLookupLocators()
throws RemoteException
getLookupLocators in interface JoinAdminRemoteExceptionJoinAdmin.getLookupLocators()
public void addLookupLocators(LookupLocator[] locators)
throws RemoteException
addLookupLocators in interface JoinAdminRemoteExceptionJoinAdmin.addLookupLocators(net.jini.core.discovery.LookupLocator[])
public void removeLookupLocators(LookupLocator[] locators)
throws RemoteException
removeLookupLocators in interface JoinAdminRemoteExceptionJoinAdmin.removeLookupLocators(net.jini.core.discovery.LookupLocator[])
public void setLookupLocators(LookupLocator[] locators)
throws RemoteException
setLookupLocators in interface JoinAdminRemoteExceptionJoinAdmin.setLookupLocators(net.jini.core.discovery.LookupLocator[])
public void destroy()
throws RemoteException
destroy in interface DestroyAdminRemoteExceptionDestroyAdmin.destroy()public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
uuid are considered
equal.
equals in class Objectpublic Uuid getReferentUuid()
getReferentUuid in interface ReferentUuidReferentUuid.getReferentUuid()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||