org.jboss.osgi.husky.runtime.osgi
Class SocketConnector

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

public class SocketConnector
extends org.jboss.osgi.husky.internal.AbstractConnector

The socket connector is a Connector that process Husky requests via an socket invocations. Both, the test runner process as well as the remote target process must configure the properties PROP_SOCKET_CONNECTOR_HOST and PROP_SOCKET_CONNECTOR_PORT.

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

Field Summary
static java.lang.String PROP_SOCKET_CONNECTOR_HOST
          The Husky socket connector host poperty: 'org.jboss.osgi.husky.runtime.connector.host'
static java.lang.String PROP_SOCKET_CONNECTOR_PORT
          The Husky socket connector port poperty: 'org.jboss.osgi.husky.runtime.connector.port'
 
Constructor Summary
SocketConnector(BundleContext context)
           
 
Method Summary
static boolean isRemoteConnection(BundleContext context)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.osgi.husky.internal.AbstractConnector
addPackageListener, getPackageListeners, process, process, removePackageListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SOCKET_CONNECTOR_HOST

public static final java.lang.String PROP_SOCKET_CONNECTOR_HOST
The Husky socket connector host poperty: 'org.jboss.osgi.husky.runtime.connector.host'


PROP_SOCKET_CONNECTOR_PORT

public static final java.lang.String PROP_SOCKET_CONNECTOR_PORT
The Husky socket connector port poperty: 'org.jboss.osgi.husky.runtime.connector.port'

Constructor Detail

SocketConnector

public SocketConnector(BundleContext context)
Method Detail

isRemoteConnection

public static boolean isRemoteConnection(BundleContext context)

start

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

stop

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


Copyright © 2009. All Rights Reserved.