GigaSpaces XAP 9.0 API

org.openspaces.admin
Class AdminFactory

java.lang.Object
  extended by org.openspaces.admin.AdminFactory

public class AdminFactory
extends Object

A factory allowing to create Admin instance.

Allows to set the Lookup Service Groups and Locators. The Admin listens for events from the lookup service of components added and removed. It will monitor all components that work within the specified group and locator.

Allows to set the username and password that will be used to authenticate when secured services are discovered.

Author:
kimchy

Constructor Summary
AdminFactory()
           
 
Method Summary
 AdminFactory addGroup(String group)
          Adds a lookup group that will be used to find Lookup Services (using multicast) that will be used to listen for events.
 AdminFactory addGroups(String groups)
          Adds a comma delimited string of groups that will be used to find the Lookup Services (using multicast).
 AdminFactory addLocator(String locator)
          Adds a lookup locator (ip and port) of the lookup service that will be used to listen for events.
 AdminFactory addLocators(String locators)
          Adds a comma delimited lookup locators (ip and port) of the lookup service that will be used to listen for events.
 Admin create()
          Creates the admin and begins its listening for events from the lookup service.
 Admin createAdmin()
          Creates the admin and begins its listening for events from the lookup service.
 AdminFactory discoverUnmanagedSpaces()
          Enables discovery of unmanaged spaces (spaces that are not started by being deployed within the Service Grid).
protected  Admin getAdmin()
           
 AdminFactory useDaemonThreads(boolean useDaemonThreads)
           
 AdminFactory useGsLogging(boolean useGsLogging)
           
 AdminFactory userDetails(String userName, String password)
          Sets the username and password for discovery of secured services.
 AdminFactory userDetails(UserDetails userDetails)
          Sets the user details that will be used when discovering secured services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminFactory

public AdminFactory()
Method Detail

useGsLogging

public AdminFactory useGsLogging(boolean useGsLogging)

useDaemonThreads

public AdminFactory useDaemonThreads(boolean useDaemonThreads)

addGroup

public AdminFactory addGroup(String group)
Adds a lookup group that will be used to find Lookup Services (using multicast) that will be used to listen for events.


addGroups

public AdminFactory addGroups(String groups)
Adds a comma delimited string of groups that will be used to find the Lookup Services (using multicast).


addLocator

public AdminFactory addLocator(String locator)
Adds a lookup locator (ip and port) of the lookup service that will be used to listen for events.


addLocators

public AdminFactory addLocators(String locators)
Adds a comma delimited lookup locators (ip and port) of the lookup service that will be used to listen for events.


userDetails

public AdminFactory userDetails(String userName,
                                String password)
Sets the username and password for discovery of secured services.


userDetails

public AdminFactory userDetails(UserDetails userDetails)
Sets the user details that will be used when discovering secured services.


discoverUnmanagedSpaces

public AdminFactory discoverUnmanagedSpaces()
Enables discovery of unmanaged spaces (spaces that are not started by being deployed within the Service Grid). Defaults to false (unmanaged spaces are not discovered).


create

public Admin create()
Creates the admin and begins its listening for events from the lookup service.


createAdmin

public Admin createAdmin()
Creates the admin and begins its listening for events from the lookup service.

See Also:
create()

getAdmin

protected Admin getAdmin()

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.