站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

HAJCRCMS - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.cms.impl.jcr.ha
Class HAJCRCMS

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.jboss.portal.cms.impl.jcr.JCRCMS
                  extended byorg.jboss.portal.cms.impl.jcr.ha.HAJCRCMS
All Implemented Interfaces:
CMS, HASingletonInvokerMBean.Callback, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class HAJCRCMS
extends JCRCMS
implements HASingletonInvokerMBean.Callback

Extend the JCR CMS and make it run as an ha singleton.


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
HAJCRCMS()
           
 
Method Summary
 java.lang.Object execute(Command cmd)
          Execute the command.
 java.lang.String getDisplayName()
          Provide a simple display name for logging purpose.
 java.lang.Object invoke(java.lang.String methodName, java.lang.Class[] types, java.lang.Object[] args)
          Invocation callback
 void setInvoker(HASingletonInvoker invoker)
          Set the invoker on the client, if the invoker is not null then the invoker is available otherwise if it is null then the invoker is not available.
 void startService()
          CMS Start
 void startSingleton()
          Start the singleton.
 void stopService()
          Shuts down the repo and unregisters it
 void stopSingleton()
          Stop the singleton.
 
Methods inherited from class org.jboss.portal.cms.impl.jcr.JCRCMS
contentExists, createContent, getCmsStack, getCommandFactory, getConfig, getDefaultContentLocation, getDefaultLocale, getDoChecking, getHomeDir, getJCR, getRepository, getRepositoryName, setCmsStack, setConfig, setDefaultContentLocation, setDefaultLocale, setDoChecking, setHomeDir, setRepositoryName, startJCR, stopJCR
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister
 
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, toString, wait, wait, wait
 

Constructor Detail

HAJCRCMS

public HAJCRCMS()
Method Detail

execute

public java.lang.Object execute(Command cmd)
                         throws CMSException
Execute the command.

Specified by:
execute in interface CMS
Overrides:
execute in class JCRCMS
Throws:
CMSException

startService

public void startService()
                  throws java.lang.Exception
Description copied from class: JCRCMS
CMS Start

Overrides:
startService in class JCRCMS
Throws:
java.lang.Exception

stopService

public void stopService()
Description copied from class: JCRCMS
Shuts down the repo and unregisters it

Overrides:
stopService in class JCRCMS

setInvoker

public void setInvoker(HASingletonInvoker invoker)
Description copied from interface: HASingletonInvokerMBean.Callback
Set the invoker on the client, if the invoker is not null then the invoker is available otherwise if it is null then the invoker is not available.

Specified by:
setInvoker in interface HASingletonInvokerMBean.Callback

invoke

public java.lang.Object invoke(java.lang.String methodName,
                               java.lang.Class[] types,
                               java.lang.Object[] args)
                        throws CMSException
Description copied from interface: HASingletonInvokerMBean.Callback
Invocation callback

Specified by:
invoke in interface HASingletonInvokerMBean.Callback
Throws:
CMSException

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: HASingletonInvokerMBean.Callback
Provide a simple display name for logging purpose.

Specified by:
getDisplayName in interface HASingletonInvokerMBean.Callback

startSingleton

public void startSingleton()
Description copied from interface: HASingletonInvokerMBean.Callback
Start the singleton.

Specified by:
startSingleton in interface HASingletonInvokerMBean.Callback

stopSingleton

public void stopSingleton()
Description copied from interface: HASingletonInvokerMBean.Callback
Stop the singleton.

Specified by:
stopSingleton in interface HASingletonInvokerMBean.Callback