public class ServiceAdminImpl extends Object implements ServiceAdmin
Modifier and Type | Field and Description |
---|---|
protected RemoteException |
joinManagerNullException |
protected ServiceAdminProxy |
m_adminProxy
The ServiceAdminProxy
|
protected Exporter |
m_exporter
The Exporter for the ServiceAdmin
|
protected AbstractService |
m_service
The service instance
|
protected ServiceAdmin |
m_thisRemoteRef
The remote reference to myself
|
protected static long |
MAX_UNEXPORT_DELAY
Maximum delay for unexport attempts
|
Constructor and Description |
---|
ServiceAdminImpl(AbstractService service,
Exporter exporter)
Constructs a
ServiceAdminImpl . |
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.
|
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.
|
ServiceAdmin |
getProxy()
Get the object to communicate with the ServiceAdminImpl
|
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.
|
void |
unexport(boolean force)
Unexport the ServiceAdmin
|
protected void |
validateJoinManager(JoinManager mgr)
Throw the
RemoteException in case of JoinManager is null. |
protected static final long MAX_UNEXPORT_DELAY
protected final RemoteException joinManagerNullException
protected AbstractService m_service
protected Exporter m_exporter
protected ServiceAdmin m_thisRemoteRef
protected ServiceAdminProxy m_adminProxy
public ServiceAdminImpl(AbstractService service, Exporter exporter) throws RemoteException
ServiceAdminImpl
.RemoteException
public ServiceAdmin getProxy()
public void unexport(boolean force)
protected void validateJoinManager(JoinManager mgr) throws RemoteException
RemoteException
in case of JoinManager is null.RemoteException
public void destroy() throws RemoteException
DestroyAdmin
destroy
in interface ServiceAdmin
destroy
in interface DestroyAdmin
RemoteException
public Entry[] getLookupAttributes() throws RemoteException
JoinAdmin
getLookupAttributes
in interface JoinAdmin
RemoteException
public void addLookupAttributes(Entry[] attrSets) throws RemoteException
JoinAdmin
addLookupAttributes
in interface JoinAdmin
attrSets
- the attribute sets to addRemoteException
public void modifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) throws RemoteException
JoinAdmin
modifyLookupAttributes
in interface JoinAdmin
attrSetTemplates
- the templates for matching attribute setsattrSets
- the modifications to make to matching setsRemoteException
ServiceRegistration.modifyAttributes(net.jini.core.entry.Entry[], net.jini.core.entry.Entry[])
public String[] getLookupGroups() throws RemoteException
JoinAdmin
getLookupGroups
in interface JoinAdmin
RemoteException
JoinAdmin.setLookupGroups(java.lang.String[])
public void addLookupGroups(String[] groups) throws RemoteException
JoinAdmin
addLookupGroups
in interface JoinAdmin
groups
- groups to joinRemoteException
JoinAdmin.removeLookupGroups(java.lang.String[])
public void removeLookupGroups(String[] groups) throws RemoteException
JoinAdmin
removeLookupGroups
in interface JoinAdmin
groups
- groups to leaveRemoteException
JoinAdmin.addLookupGroups(java.lang.String[])
public void setLookupGroups(String[] groups) throws RemoteException
JoinAdmin
setLookupGroups
in interface JoinAdmin
groups
- groups to joinRemoteException
JoinAdmin.getLookupGroups()
public LookupLocator[] getLookupLocators() throws RemoteException
JoinAdmin
getLookupLocators
in interface JoinAdmin
RemoteException
JoinAdmin.setLookupLocators(net.jini.core.discovery.LookupLocator[])
public void addLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
addLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to joinRemoteException
JoinAdmin.removeLookupLocators(net.jini.core.discovery.LookupLocator[])
public void removeLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
removeLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to leaveRemoteException
JoinAdmin.addLookupLocators(net.jini.core.discovery.LookupLocator[])
public void setLookupLocators(LookupLocator[] locators) throws RemoteException
JoinAdmin
setLookupLocators
in interface JoinAdmin
locators
- locators of specific lookup services to joinRemoteException
JoinAdmin.getLookupLocators()
Copyright © GigaSpaces.