public interface DiscoveryLocatorManagement
Modifier and Type | Method and Description |
---|---|
void |
addLocators(LookupLocator[] locators)
Adds a set of locators to the managed set of locators.
|
LookupLocator[] |
getLocators()
Returns an array consisting of the elements of the managed set
of locators; that is, instances of
LookupLocator in
which each instance corresponds to a specific lookup service to
discover. |
void |
removeLocators(LookupLocator[] locators)
Deletes a set of locators from the managed set of locators, and discards
any already-discovered lookup service that corresponds to a deleted
locator.
|
void |
setLocators(LookupLocator[] locators)
Replaces all of the locators in the managed set with locators from
a new set, and discards any already-discovered lookup service that
corresponds to a locator that is removed from the managed set
as a result of an invocation of this method.
|
LookupLocator[] getLocators()
LookupLocator
in
which each instance corresponds to a specific lookup service to
discover. The returned set will include both the set of
LookupLocator
s corresponding to lookup services
that have already been discovered as well as the set of those
that have not yet been discovered. If the managed set of locators
is empty, this method will return the empty array. This method
returns a new array upon each invocation.LookupLocator
array consisting of the elements
of the managed set of locatorssetLocators(net.jini.core.discovery.LookupLocator[])
void addLocators(LookupLocator[] locators)
LookupLocator.equals
method) elements already in the managed set will be ignored. If the
empty array is input, the managed set of locators will not change.locators
- LookupLocator
array consisting of the
locators to add to the managed set.NullPointerException
- this exception occurs when
either null
is input to the locators
parameter, or one or more of the elements of the
locators
parameter is null
.removeLocators(net.jini.core.discovery.LookupLocator[])
void setLocators(LookupLocator[] locators)
If the empty array is input, locator discovery will cease until this
method is invoked with an input parameter that is non-null
and non-empty.
locators
- LookupLocator
array consisting of the
locators that will replace the current locators in the
managed set.NullPointerException
- this exception occurs when
null
is input to the locators
parameter.getLocators()
void removeLocators(LookupLocator[] locators)
If the empty array is input, this method takes no action.
locators
- LookupLocator
array consisting of the
locators that will be removed from the managed set.NullPointerException
- this exception occurs when
null
is input to the locators
parameter.addLocators(net.jini.core.discovery.LookupLocator[])
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.