Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      org.jboss.mx.util.JBossNotificationBroadcasterSupport
          org.jboss.system.ServiceMBeanSupport
              org.jboss.portal.jems.as.system.AbstractJBossService
                  org.jboss.portal.cms.impl.jcr.JCRCMS
                      org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS

All Implemented Interfaces:
  javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, CMS, HASingletonInvokerMBean.Callback, 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.

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

Field Summary

Fields inherited from class org.jboss.portal.cms.impl.jcr.JCRCMS
`applyUISecurityFilter, turnOffWorkflow, userInfo`

Fields inherited from class org.jboss.system.ServiceMBeanSupport
`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, disableUISecurityFilter, enableUISecurityFilter, getApprovePublishWorkflow, getAuthorizationManager, getCommandFactory, getConfig, getDefaultContentLocation, getDefaultLocale, getDoChecking, getHomeDir, getJCR, getJNDIName, getRepository, getRepositoryName, getStackFactory, getUserInfo, isUISecurityFilterActive, isWorkflowActivated, setApprovePublishWorkflow, setAuthorizationManager, setConfig, setDefaultContentLocation, setDefaultLocale, setDoChecking, setHomeDir, 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 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD