Package net.jini.admin
Interface JoinAdmin
- All Known Subinterfaces:
Registrar,ServiceAdmin,TxnManager
- All Known Implementing Classes:
GigaRegistrar,JSpaceAdminImpl,JSpaceAdminProxy,ServiceAdminImpl,ServiceAdminProxy,TransientMahaloImpl,TxnManagerImpl
public interface JoinAdmin
The methods in this interface are used to control a service's participation in the join protocol.
The object returned by the Administrable.getAdmin method should implement this interface, in
addition to any other service-specific administration interfaces.
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLookupAttributes(Entry[] attrSets) Add attribute sets for the service.voidaddLookupGroups(String[] groups) Add new groups to the set to join.voidaddLookupLocators(LookupLocator[] locators) Add locators for specific new lookup services to join.Entry[]Get the current attribute sets for the service.String[]Get the list of groups to join.Get the list of locators of specific lookup services to join.voidmodifyLookupAttributes(Entry[] attrSetTemplates, Entry[] attrSets) Modify the current attribute sets, using the same semantics as ServiceRegistration.modifyAttributes.voidremoveLookupGroups(String[] groups) Remove groups from the set to join.voidremoveLookupLocators(LookupLocator[] locators) Remove locators for specific lookup services from the set to join.voidsetLookupGroups(String[] groups) Replace the list of groups to join with a new list.voidsetLookupLocators(LookupLocator[] locators) Replace the list of locators of specific lookup services to join with a new list.
-
Method Details
-
getLookupAttributes
Get the current attribute sets for the service.- Returns:
- the current attribute sets for the service
- Throws:
RemoteException
-
addLookupAttributes
Add attribute sets for the service. The resulting set will be used for all future joins. The attribute sets are also added to all currently-joined lookup services.- Parameters:
attrSets- the attribute sets to add- Throws:
RemoteException
-
modifyLookupAttributes
Modify the current attribute sets, using the same semantics as ServiceRegistration.modifyAttributes. The resulting set will be used for all future joins. The same modifications are also made to all currently-joined lookup services.- Parameters:
attrSetTemplates- the templates for matching attribute setsattrSets- the modifications to make to matching sets- Throws:
RemoteException- See Also:
-
getLookupGroups
Get the list of groups to join. An empty array means the service joins no groups (as opposed to "all" groups).- Returns:
- an array of groups to join. An empty array means the service joins no groups (as opposed to "all" groups).
- Throws:
RemoteException- See Also:
-
addLookupGroups
Add new groups to the set to join. Lookup services in the new groups will be discovered and joined.- Parameters:
groups- groups to join- Throws:
RemoteException- See Also:
-
removeLookupGroups
Remove groups from the set to join. Leases are cancelled at lookup services that are not members of any of the remaining groups.- Parameters:
groups- groups to leave- Throws:
RemoteException- See Also:
-
setLookupGroups
Replace the list of groups to join with a new list. Leases are cancelled at lookup services that are not members of any of the new groups. Lookup services in the new groups will be discovered and joined.- Parameters:
groups- groups to join- Throws:
RemoteException- See Also:
-
getLookupLocators
Get the list of locators of specific lookup services to join.- Returns:
- the list of locators of specific lookup services to join
- Throws:
RemoteException- See Also:
-
addLookupLocators
Add locators for specific new lookup services to join. The new lookup services will be discovered and joined.- Parameters:
locators- locators of specific lookup services to join- Throws:
RemoteException- See Also:
-
removeLookupLocators
Remove locators for specific lookup services from the set to join. Any leases held at the lookup services are cancelled.- Parameters:
locators- locators of specific lookup services to leave- Throws:
RemoteException- See Also:
-
setLookupLocators
Replace the list of locators of specific lookup services to join with a new list. Leases are cancelled at lookup services that were in the old list but are not in the new list. Any new lookup services will be discovered and joined.- Parameters:
locators- locators of specific lookup services to join- Throws:
RemoteException- See Also:
-