org.jboss.osgi.husky.runtime.osgi
Class JMXConnector

java.lang.Object
  extended by org.jboss.osgi.husky.internal.AbstractConnector
      extended by org.jboss.osgi.husky.runtime.osgi.JMXConnector
All Implemented Interfaces:
Connector, JMXConnectorMBean

public class JMXConnector
extends org.jboss.osgi.husky.internal.AbstractConnector
implements JMXConnectorMBean

The JMX connector is a Connector that process Husky requests via an JMX invocation.

Since:
17-May-2009
Author:
Thomas.Diesler@jboss.com

Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
Constructor Summary
JMXConnector(org.osgi.framework.BundleContext context)
           
 
Method Summary
 java.io.InputStream process(java.io.InputStream reqStream)
          Consumes the serialized version of an Request and return the the Response from the test run
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.osgi.husky.internal.AbstractConnector
addPackageListener, getPackageListeners, process, removePackageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_NAME

public static javax.management.ObjectName OBJECT_NAME
Constructor Detail

JMXConnector

public JMXConnector(org.osgi.framework.BundleContext context)
Method Detail

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

process

public java.io.InputStream process(java.io.InputStream reqStream)
Description copied from interface: JMXConnectorMBean
Consumes the serialized version of an Request and return the the Response from the test run

Specified by:
process in interface JMXConnectorMBean
Overrides:
process in class org.jboss.osgi.husky.internal.AbstractConnector
Parameters:
reqStream - the input stream to read the Request from
Returns:
the input stream to read the Response from


Copyright © 2009. All Rights Reserved.