GridGain™ 2.1.0
Java API Specification

org.gridgain.grid.loaders.jboss
Class GridJbossLoader

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.gridgain.grid.loaders.jboss.GridJbossLoader
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, GridJbossLoaderMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

@GridLoader(description="JBoss loader")
public class GridJbossLoader
extends org.jboss.system.ServiceMBeanSupport
implements GridJbossLoaderMBean

This is GridGain loader implemented as JBoss service. See GridJbossLoaderMBean for configuration information (according to JBoss service convention). This loader should be used for tight integration with JBoss. Specifically, it integrates GridGain with JBoss's logger and MBean server. This loader should be used with [GRIDGAIN_HOME/config/jboss/jboss-service.xml file shipped with GridGain. See Configuring and Starting GridGain for more information.

Note: JBoss is not shipped with GridGain. If you don't have JBoss, you need to download it separately. See http://www.jboss.com for more information.

Note: When using JBoss discovery SPI (GridJbossDiscoverySpi) you cannot start multiple GridGain instances in the same VM due to limitations of JBoss. GridGain runtime will detect this situation and prevent GridGain from starting in such case. See GridSpiMultipleInstancesSupport for detail.



See Also:

  Documentation
  Email Support
  Online Forums
  Issue Tracking

Author:   2005-2008 Copyright © GridGain Systems. All Rights Reserved. ver. 2.1.0

 

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
GridJbossLoader()
           
 
Method Summary
 String getConfigurationFile()
          Gets configuration file path set in XML configuration for this service.
 void setConfigurationFile(String cfgFile)
          Sets configuration file path.
protected  void startService()
          
protected  void stopService()
          
 String toString()
          
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

GridJbossLoader

public GridJbossLoader()
Method Detail

startService

protected void startService()
                     throws Exception

Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

stopService

protected void stopService()
                    throws Exception

Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception

getConfigurationFile

public String getConfigurationFile()
Gets configuration file path set in XML configuration for this service.

Specified by:
getConfigurationFile in interface GridJbossLoaderMBean
Returns:
Configuration file path.

setConfigurationFile

public void setConfigurationFile(String cfgFile)
Sets configuration file path.

Specified by:
setConfigurationFile in interface GridJbossLoaderMBean
Parameters:
cfgFile - Configuration file path.

toString

public String toString()

Overrides:
toString in class Object

GridGain™ 2.1.0
Java API Specification

GridGain™ - Grid Computing Made Simple, ver. 2.1.0.19122008
2005-2008 Copyright © GridGain Systems. All Rights Reserved.