org.glassfish.gms.bootstrap
Class GMSAdapterService
java.lang.Object
org.glassfish.gms.bootstrap.GMSAdapterService
- All Implemented Interfaces:
- Startup, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.config.ConfigListener
@Service
public class GMSAdapterService
- extends java.lang.Object
- implements Startup, org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.config.ConfigListener
This service is responsible for loading the group management
service. In the DAS, GMS will only be enabled if there is at least
one cluster present with the gms-enabled attribute set to true.
In an instance, GMS will be enabled if the cluster containing this
instance has gms-enabled set to true.
Components can inject this service in order to obtain a reference
to a GMSAdapter object. From this, the appropriate GroupManagementService
object can be retrieved.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GMSAdapterService
public GMSAdapterService()
getLifecycle
public Startup.Lifecycle getLifecycle()
- Returns the lifecyle of the service. This service may not be needed
after startup -- we still need to determine how to load GMS when
a gms-enabled cluster is first created during runtime.
TODO: determine SERVER v START
- Specified by:
getLifecycle in interface Startup
postConstruct
public void postConstruct()
- Starts the application loader service.
- Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getGMSAdapter
public GMSAdapter getGMSAdapter()
isGmsEnabled
public boolean isGmsEnabled()
getGMSAdapterByName
public GMSAdapter getGMSAdapterByName(java.lang.String clusterName)
changed
public org.jvnet.hk2.config.UnprocessedChangeEvents changed(java.beans.PropertyChangeEvent[] events)
- Specified by:
changed in interface org.jvnet.hk2.config.ConfigListener
Copyright © 2012 GlassFish Community. All Rights Reserved.