org.glassfish.gms.bootstrap
Class GMSAdapterService

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.api.Startup
Startup.Lifecycle
 
Constructor Summary
GMSAdapterService()
           
 
Method Summary
 org.jvnet.hk2.config.UnprocessedChangeEvents changed(java.beans.PropertyChangeEvent[] events)
           
 GMSAdapter getGMSAdapter()
           
 GMSAdapter getGMSAdapterByName(java.lang.String clusterName)
           
 Startup.Lifecycle getLifecycle()
          Returns the lifecyle of the service.
 boolean isGmsEnabled()
           
 void postConstruct()
          Starts the application loader service.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GMSAdapterService

public GMSAdapterService()
Method Detail

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.