public class ServiceAdminProxy extends Object implements ServiceAdmin, Serializable, ReferentUuid
| Modifier and Type | Field and Description |
|---|---|
protected ServiceAdmin |
adminImpl |
protected Uuid |
uuid |
| Constructor and Description |
|---|
ServiceAdminProxy(ServiceAdmin adminImpl,
Uuid uuid)
Constructor for use by getInstance(), ConstrainableAdminProxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLookupAttributes(Entry[] attrSets)
Add attribute sets for the service.
|
void |
addLookupGroups(String[] groups)
Add new groups to the set to join.
|
void |
addLookupLocators(LookupLocator[] locators)
Add locators for specific new lookup services to join.
|
void |
destroy()
Destroy the service, if possible, including its persistent storage.
|
boolean |
equals(Object obj)
Proxies for servers with the same service ID are considered equal.
|
static ServiceAdminProxy |
getInstance(ServiceAdmin adminImpl,
Uuid uuid)
Returns AdminProxy or ConstrainableAdminProxy instance, depending on whether given server
implements RemoteMethodControl.
|
Entry[] |
getLookupAttributes()
Get the current attribute sets for the service.
|
String[] |
getLookupGroups()
Get the list of groups to join.
|
LookupLocator[] |
getLookupLocators()
Get the list of locators of specific lookup services to join.
|
Uuid |
getReferentUuid()
Return the
Uuid that has been assigned to the resource this proxy represents. |
int |
hashCode()
Returns service ID hash code.
|
void |
modifyLookupAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modify the current attribute sets, using the same semantics as ServiceRegistration.modifyAttributes.
|
void |
removeLookupGroups(String[] groups)
Remove groups from the set to join.
|
void |
removeLookupLocators(LookupLocator[] locators)
Remove locators for specific lookup services from the set to join.
|
void |
setLookupGroups(String[] groups)
Replace the list of groups to join with a new list.
|
void |
setLookupLocators(LookupLocator[] locators)
Replace the list of locators of specific lookup services to join with a new list.
|
protected ServiceAdmin adminImpl
protected Uuid uuid
public ServiceAdminProxy(ServiceAdmin adminImpl, Uuid uuid)
public static ServiceAdminProxy getInstance(ServiceAdmin adminImpl, Uuid uuid)
public boolean equals(Object obj)
public void destroy()
throws RemoteException
DestroyAdmindestroy in interface ServiceAdmindestroy in interface DestroyAdminRemoteExceptionpublic Entry[] getLookupAttributes() throws RemoteException
JoinAdmingetLookupAttributes in interface JoinAdminRemoteExceptionpublic void addLookupAttributes(Entry[] attrSets) throws RemoteException
JoinAdminaddLookupAttributes in interface JoinAdminattrSets - the attribute sets to addRemoteExceptionpublic void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) throws RemoteException
JoinAdminmodifyLookupAttributes in interface JoinAdminattrSetTemplates - the templates for matching attribute setsattrSets - the modifications to make to matching setsRemoteExceptionServiceRegistration.modifyAttributes(net.jini.core.entry.Entry[], net.jini.core.entry.Entry[])public String[] getLookupGroups() throws RemoteException
JoinAdmingetLookupGroups in interface JoinAdminRemoteExceptionJoinAdmin.setLookupGroups(java.lang.String[])public void addLookupGroups(String[] groups) throws RemoteException
JoinAdminaddLookupGroups in interface JoinAdmingroups - groups to joinRemoteExceptionJoinAdmin.removeLookupGroups(java.lang.String[])public void removeLookupGroups(String[] groups) throws RemoteException
JoinAdminremoveLookupGroups in interface JoinAdmingroups - groups to leaveRemoteExceptionJoinAdmin.addLookupGroups(java.lang.String[])public void setLookupGroups(String[] groups) throws RemoteException
JoinAdminsetLookupGroups in interface JoinAdmingroups - groups to joinRemoteExceptionJoinAdmin.getLookupGroups()public LookupLocator[] getLookupLocators() throws RemoteException
JoinAdmingetLookupLocators in interface JoinAdminRemoteExceptionJoinAdmin.setLookupLocators(net.jini.core.discovery.LookupLocator[])public void addLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdminaddLookupLocators in interface JoinAdminlocators - locators of specific lookup services to joinRemoteExceptionJoinAdmin.removeLookupLocators(net.jini.core.discovery.LookupLocator[])public void removeLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdminremoveLookupLocators in interface JoinAdminlocators - locators of specific lookup services to leaveRemoteExceptionJoinAdmin.addLookupLocators(net.jini.core.discovery.LookupLocator[])public void setLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdminsetLookupLocators in interface JoinAdminlocators - locators of specific lookup services to joinRemoteExceptionJoinAdmin.getLookupLocators()public Uuid getReferentUuid()
ReferentUuidUuid that has been assigned to the resource this proxy represents.getReferentUuid in interface ReferentUuidUuid associated with the resource this proxy represents. Will not
return null.Copyright © GigaSpaces.