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

java.lang.Object
  extended by ServiceMBeanSupport
      extended by org.jboss.portal.jems.as.system.AbstractJBossService
          extended by org.jboss.portal.cms.impl.jcr.JCRCMS
              extended by org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS
All Implemented Interfaces:
CMS, HASingletonInvokerMBean.Callback

public class HAJCRCMS
extends JCRCMS
implements HASingletonInvokerMBean.Callback

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

Version:
$Revision: 7163 $
Author:
Julien Viet, Thomas Heute

Field Summary
 
Fields inherited from class org.jboss.portal.cms.impl.jcr.JCRCMS
turnOffWorkflow, userInfo
 
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, getApprovePublishWorkflow, getCommandFactory, getConfig, getDefaultContentLocation, getDefaultLocale, getDoChecking, getHomeDir, getIdentityServiceController, getIdentitySessionFactory, getJCR, getJNDIName, getRepository, getRepositoryName, getStackFactory, getUserInfo, getUserModule, isWorkflowActivated, setApprovePublishWorkflow, setConfig, setDefaultContentLocation, setDefaultLocale, setDoChecking, setHomeDir, setIdentityServiceController, setIdentitySessionFactory, setJNDIName, setRepositoryName, setStackFactory, startJCR, stopJCR, turnOffWorkflow, turnOnWorkflow
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
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