org.ow2.jasmine.monitoring.eventswitch.client
Class DispatcherContext

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eventswitch.client.DispatcherContext
All Implemented Interfaces:
org.ow2.jasmine.event.processor.ProcessContext

public class DispatcherContext
extends java.lang.Object
implements org.ow2.jasmine.event.processor.ProcessContext

Context of a JASMINe event dispatcher. It handles a Mule client.

Author:
Loris Bouzonnet

Constructor Summary
DispatcherContext()
           
 
Method Summary
 org.mule.extras.client.MuleClient getClient()
           
 java.lang.String getJasmineURI()
           
 void setJasmineURI(java.lang.String jasmineURI)
          Set an URI of a Mule inbound endpoint.
 void start()
          Create a Mule client.
 void stop()
          Dispose the MuleManager instance if a new instance was created for this client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherContext

public DispatcherContext()
Method Detail

getClient

public final org.mule.extras.client.MuleClient getClient()
Returns:
A Mule client

getJasmineURI

public java.lang.String getJasmineURI()
Returns:
an URI of a Mule inbound endpoint

setJasmineURI

public void setJasmineURI(java.lang.String jasmineURI)
Set an URI of a Mule inbound endpoint.

Parameters:
jasmineURI - an URI of a Mule inbound endpoint

start

public void start()
           throws org.ow2.jasmine.event.processor.ProcessContextException
Create a Mule client.

Specified by:
start in interface org.ow2.jasmine.event.processor.ProcessContext
Throws:
org.ow2.jasmine.event.processor.ProcessContextException - if a Mule client cannot be initialized

stop

public void stop()
Dispose the MuleManager instance if a new instance was created for this client.

Specified by:
stop in interface org.ow2.jasmine.event.processor.ProcessContext


Copyright © 2009 OW2 Consortium. All Rights Reserved.