|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.AdminFactory
public class AdminFactory
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 credentials that will be used to authenticate when secured services are discovered.
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. |
AdminFactory |
adminFilter(AdminFilter adminFilter)
Sets adminFilter, allows to filter services, machines and etc. |
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 |
credentials(String userName,
String password)
Sets the username and password for discovery of secured services. |
AdminFactory |
credentialsProvider(CredentialsProvider credentialsProvider)
Sets the credentials provider that will be used when discovering secured services. |
AdminFactory |
discoverUnmanagedSpaces()
Enables discovery of unmanaged spaces (spaces that are not started by being deployed within the Service Grid). |
void |
setDiscoveryServices(Class... discoveryServices)
Set the service types that will be monitored |
protected AdminFactory |
singleThreadedEventListeners()
|
AdminFactory |
useDaemonThreads(boolean useDaemonThreads)
For backwards comparability reasons, all Admin worker threads are not daemon threads. |
AdminFactory |
useGsLogging(boolean useGsLogging)
By default the Admin finds in classpath the GS logging config file. |
AdminFactory |
userDetails(String userName,
String password)
Deprecated. Use instead. |
AdminFactory |
userDetails(UserDetails userDetails)
Deprecated. Use instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminFactory()
Method Detail |
---|
public AdminFactory useGsLogging(boolean useGsLogging)
public AdminFactory useDaemonThreads(boolean useDaemonThreads)
public AdminFactory addGroup(String group)
public AdminFactory addGroups(String groups)
public AdminFactory addLocator(String locator)
public AdminFactory addLocators(String locators)
@Deprecated public AdminFactory userDetails(String userName, String password)
instead.
@Deprecated public AdminFactory userDetails(UserDetails userDetails)
instead.
public AdminFactory credentials(String userName, String password)
public AdminFactory credentialsProvider(CredentialsProvider credentialsProvider)
public AdminFactory adminFilter(AdminFilter adminFilter)
adminFilter
- public void setDiscoveryServices(Class... discoveryServices)
discoveryServices
- GridServiceAgent
,
GridServiceManager
,
GridServiceContainer
,
ElasticServiceManager
,
ProcessingUnit
,
Space
IllegalArgumentException
- if other type is providedpublic AdminFactory discoverUnmanagedSpaces()
false
(unmanaged spaces are not discovered).
protected AdminFactory singleThreadedEventListeners()
public Admin create()
public Admin createAdmin()
create()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |