|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.cmi.internal.CmiServiceImpl
public class CmiServiceImpl
CMI Service interface. It provides a way to use CMI with JOnAS.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
| Constructor Summary | |
|---|---|
CmiServiceImpl(org.osgi.framework.BundleContext context)
Constructor providing the bundle context. |
|
| Method Summary | |
|---|---|
void |
addClusteredObject(String jndiName,
Object clusterConfig,
Class<?> homeClass,
Class<? extends EJBObject> remoteClass,
ClassLoader classLoader,
boolean stateful,
boolean clusterReplicated)
Add a bean to the cluster. |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
org.ow2.util.event.api.IEventListener |
getBeanEventListener()
|
static org.ow2.cmi.controller.common.ClusterViewManager |
getClusterViewManager()
Gets the clusterview manager |
protected JmxService |
getJmxService()
|
void |
removeClusteredObject(String jndiName)
Removes the given clustered object. |
void |
setBeanEventListener(org.ow2.util.event.api.IEventListener beanEventListener)
|
void |
setEventService(org.ow2.util.event.api.IEventService eventService)
|
void |
setJmxService(JmxService jmxService)
|
| Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
|---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
| Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
|---|
initLogger, sendReconfigNotification, sendSaveNotification |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, 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.ow2.jonas.service.Service |
|---|
getName, init, isStarted, setName, start, stop |
| Constructor Detail |
|---|
public CmiServiceImpl(org.osgi.framework.BundleContext context)
context - the bundle context| Method Detail |
|---|
protected void doStart()
throws ServiceException
doStart in class AbsServiceImplServiceException - when cannot configure or start the CMI instance.
protected void doStop()
throws ServiceException
doStop in class AbsServiceImplServiceException - when the CMI server side manager cannot be
stopped.protected JmxService getJmxService()
public void setJmxService(JmxService jmxService)
jmxService - the jmxService to setpublic void setEventService(org.ow2.util.event.api.IEventService eventService)
eventService - the EventService to set
public void addClusteredObject(String jndiName,
Object clusterConfig,
Class<?> homeClass,
Class<? extends EJBObject> remoteClass,
ClassLoader classLoader,
boolean stateful,
boolean clusterReplicated)
throws Exception
addClusteredObject in interface CmiServicejndiName - name of the beanclusterConfigMapping - The cluster configurationhomeClass - class of the home interfaceremoteClass - class of the remote interfaceclassLoader - the classloader used by the container of this beanstateful - true if the bean has a stateclusterReplicated - true if the bean is replicated (ha service is
required)env - a given environment.
Exception - if the provided policy of load-balancing is not valid
public void removeClusteredObject(String jndiName)
throws Exception
removeClusteredObject in interface CmiServicejndiName - Name of the object to remove
Exception - anypublic org.ow2.util.event.api.IEventListener getBeanEventListener()
getBeanEventListener in interface CmiServicepublic void setBeanEventListener(org.ow2.util.event.api.IEventListener beanEventListener)
setBeanEventListener in interface CmiServicebeanEventListener - the beanEventListener to setpublic static org.ow2.cmi.controller.common.ClusterViewManager getClusterViewManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||