org.ow2.jasmine.monitoring.mbeancmd
Class JasmineConnector

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.JasmineConnector

public class JasmineConnector
extends java.lang.Object

Static methods for connecting to a JASMINe Event Switch.


Constructor Summary
protected JasmineConnector()
          Dummy constructor to avoid the class from being used in any other way than calling the JasmineConnector.connect method.
 
Method Summary
static Outer connect(Outer src, java.lang.String jasmineURI)
          Connects an Outer to the JASMINe Event Switch.
static Outer connect(java.io.PipedOutputStream src, java.lang.String jasmineURI)
          Connects a PipedOutputStream to the JASMINe Event Switch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasmineConnector

protected JasmineConnector()
Dummy constructor to avoid the class from being used in any other way than calling the JasmineConnector.connect method.

Method Detail

connect

public static Outer connect(Outer src,
                            java.lang.String jasmineURI)
                     throws java.io.IOException
Connects an Outer to the JASMINe Event Switch.

Parameters:
src - Source Outer.
jasmineURI - URI at which the JASMINe Event Switch is present. For more details, see "Mule Endpoint URIs".
Returns:
A new Outer object, that will be set as the sink for src and will have the JASMINe Event Switch at jasmineURI as output.
Throws:
java.io.IOException - If connection fails.

connect

public static Outer connect(java.io.PipedOutputStream src,
                            java.lang.String jasmineURI)
                     throws java.io.IOException
Connects a PipedOutputStream to the JASMINe Event Switch.

Parameters:
src - Source PipedOutputStream.
jasmineURI - URI at which the JASMINe Event Switch is present. For more details, see "Mule Endpoint URIs".
Returns:
A new Outer object, that will use src as input and the JASMINe Event Switch at jasmineURI as output.
Throws:
java.io.IOException - If connection fails.