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 String PROP_SOCKET_CONNECTOR_HOST
          The Husky socket connector host poperty: 'org.jboss.osgi.husky.runtime.connector.host'
static 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
getBundleContext, process, process
 
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 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 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 Exception
Overrides:
start in class org.jboss.osgi.husky.internal.AbstractConnector
Throws:
Exception

stop

public void stop()
          throws Exception
Overrides:
stop in class org.jboss.osgi.husky.internal.AbstractConnector
Throws:
Exception


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.