| 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscoveryAdmin
Methods for controlling which groups a lookup service is a member of, and for controlling which TCP port a lookup service uses for its lookup locator. Lookup services that implement the Administrable interface should return an admin object that implements this interface.
| Method Summary | |
|---|---|
 void | 
addMemberGroups(String[] groups)
Adds the given set of names to the set whose elements are the names of the groups in which the lookup service is currently a member.  | 
 String[] | 
getMemberGroups()
Returns an array consisting of the names of the groups in which the lookup service is a member.  | 
 int | 
getUnicastPort()
Returns the port number on which the lookup service listens for unicast discovery queries.  | 
 void | 
removeMemberGroups(String[] groups)
Deletes the elements of the given set of names from the set whose elements are the names of the groups in which the lookup service is currently a member.  | 
 void | 
setMemberGroups(String[] groups)
Replaces the set whose elements are the names of the groups in which the lookup service is currently a member with the given set of group names.  | 
 void | 
setUnicastPort(int port)
Changes the number of the port on which the lookup service is currently listening for unicast discovery queries to the given port number.  | 
| Method Detail | 
|---|
String[] getMemberGroups()
                         throws RemoteException
String array consisting of the names of the groups
         in which the lookup service is a member
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
void addMemberGroups(String[] groups)
                     throws RemoteException
NO_GROUPS) is input, this method takes no action.
groups - String array consisting of the names of
               the new, additional groups in which the lookup service
               is to be a member.
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
NullPointerException - this exception occurs when
         either null is input to the groups
         parameter, or one or more of the elements of the
         groups parameter is null.
void removeMemberGroups(String[] groups)
                        throws RemoteException
NO_GROUPS) is input, this
 method takes no action.
groups - String array consisting of the names to 
               remove from the set whose elements are the names of the
               groups in which the lookup service is currently a member.
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
NullPointerException - this exception occurs when
         either null is input to the groups
         parameter, or one or more of the elements of the
         groups parameter is null.
void setMemberGroups(String[] groups)
                     throws RemoteException
NO_GROUPS)
 is input, then the lookup service will be a member of no groups.
groups - String array consisting of the names of
               the new groups in which the lookup service is to be a
               member.
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
NullPointerException - this exception occurs when
         either null is input to the groups
         parameter, or one or more of the elements of the
         groups parameter is null.
int getUnicastPort()
                   throws RemoteException
int representing the port number on which the
         lookup service listens for unicast discovery queries.
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
void setUnicastPort(int port)
                    throws IOException,
                           RemoteException
port - int representing the new port number on which
             the lookup service should listen for unicast discovery
             queries.
IOException - because an invocation of this method will
         result in the re-initiation of the unicast discovery process,
         which can throw an IOException when socket
         allocation occurs.
RemoteException - typically, this exception occurs when
         there is a communication failure between the client and the
         server.
  | 
GigaSpaces XAP 9.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||