|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.event.AbstractEventBus
org.olat.commons.coordinate.cluster.jms.ClusterEventBus
public class ClusterEventBus
This class realizes a clustered (multiple java vm) system event bus. it uses JMS (per default, apache activeMQ 4.1.4 is configured using spring) as an implementation.
| Method Summary | |
|---|---|
void |
event(Event event)
|
void |
fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
fires an event to all listeners interested in events concerning this OLATResourceable ores. |
javax.management.openmbean.CompositeDataSupport |
getForeignClusterNodeStatistics()
[used by jmx] cluster:::: to be improved: this is just a quick solution to output all data from all nodes |
long |
getLatestSentMsgId()
[used by spring to auto export mbean data] |
int |
getListeningIdentityCntFor(OLATResourceable ores)
this implementation must sum up all counts from all cluster nodes to return the correct number. |
SimpleProbe |
getMrtgProbeJMSDeliveryTime()
|
SimpleProbe |
getMrtgProbeJMSEnqueueTime()
|
SimpleProbe |
getMrtgProbeJMSLoad()
|
SimpleProbe |
getMrtgProbeJMSProcessingTime()
|
long |
getNumOfSentMessages()
[used by spring to auto export mbean data] |
void |
onMessage(javax.jms.Message message)
called by springs org.springframework.jms.listener.DefaultMessageListenerContainer, see coredefaultconfig.xml we receive a message here on the topic reserved for olat system bus messages. |
void |
setClusterConfig(ClusterConfig clusterConfig)
[used by spring] |
void |
setConnectionFactory(javax.jms.ConnectionFactory conFac)
[used by spring] |
void |
setDestination(javax.jms.Topic destination)
|
void |
setJmsMsgDelayLimit(long jmsMsgDelayLimit)
[used by spring] |
void |
setSendInterval(long sendInterval)
[used by spring] |
void |
springInit()
|
void |
stop()
[used by spring] |
| Methods inherited from class org.olat.core.util.event.AbstractEventBus |
|---|
deregisterFor, getListeningIdentityNamesFor, getUnmodifiableInfoCenter, registerFor, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void springInit()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic SimpleProbe getMrtgProbeJMSDeliveryTime()
public SimpleProbe getMrtgProbeJMSProcessingTime()
public SimpleProbe getMrtgProbeJMSLoad()
public SimpleProbe getMrtgProbeJMSEnqueueTime()
public void event(Event event)
event in interface GenericEventListenerpublic int getListeningIdentityCntFor(OLATResourceable ores)
getListeningIdentityCntFor in interface EventBusgetListeningIdentityCntFor in class AbstractEventBusores - the resourceable
public void fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
EventBus
fireEventToListenersOf in interface EventBusfireEventToListenersOf in class AbstractEventBusevent - the OLATResourceableEvent (must be serializable!, for multiple
server olat installations)ores - the OLATResourceableorg.olat.core.util.event.AbstractOLATSystemBus#fireEventToListenersOf(org.olat.core.util.event.MultiUserEvent,
org.olat.core.id.OLATResourceable)public void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenerpublic void setClusterConfig(ClusterConfig clusterConfig)
public long getNumOfSentMessages()
public long getLatestSentMsgId()
public javax.management.openmbean.CompositeDataSupport getForeignClusterNodeStatistics()
public void stop()
public void setSendInterval(long sendInterval)
public void setJmsMsgDelayLimit(long jmsMsgDelayLimit)
public void setConnectionFactory(javax.jms.ConnectionFactory conFac)
public void setDestination(javax.jms.Topic destination)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||