public class SocketListenConnectorProcess
extends java.lang.Object
SocketListenConnector| Constructor and Description |
|---|
SocketListenConnectorProcess(ILaunch launch,
java.lang.String port,
int connectionLimit)
Creates this process.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTerminate() |
protected boolean |
continueListening()
Return true if this connector should continue listening for further connections.
|
protected void |
fireReadyToAcceptEvent()
Fires a custom model specific event when this connector is ready to accept incoming
connections from a remote VM.
|
protected void |
fireTerminateEvent()
Fires a terminate event.
|
<T> T |
getAdapter(java.lang.Class<T> adapter) |
java.lang.String |
getAttribute(java.lang.String key) |
int |
getExitValue() |
java.lang.String |
getLabel() |
ILaunch |
getLaunch() |
protected static IStatus |
getStatus(java.lang.String message,
java.lang.Throwable exception,
int code)
Returns an error status using the passed parameters.
|
IStreamsProxy |
getStreamsProxy() |
boolean |
isTerminated() |
void |
setAttribute(java.lang.String key,
java.lang.String value) |
void |
terminate() |
void |
waitForConnection(ListeningConnector connector,
java.util.Map<java.lang.String,Connector.Argument> arguments)
Starts a job that will accept a VM remotely connecting to the
given connector.
|
public SocketListenConnectorProcess(ILaunch launch,
java.lang.String port,
int connectionLimit)
launch - the launch this process belongs toport - the port the connector will wait onconnectionLimit - the number of incoming connections to accept (0 = unlimited)public void waitForConnection(ListeningConnector connector,
java.util.Map<java.lang.String,Connector.Argument> arguments)
throws CoreException
connector - the connector that will accept incoming connectionsarguments - map of arguments that are used by the connectorCoreException - if a problem occurs trying to accept a connectionSocketListenConnectorprotected boolean continueListening()
protected static IStatus getStatus(java.lang.String message,
java.lang.Throwable exception,
int code)
message - the status messageexception - lower level exception associated with the
error, or null if nonecode - error codeIStatuspublic int getExitValue()
throws DebugException
DebugExceptionpublic java.lang.String getLabel()
public ILaunch getLaunch()
public boolean canTerminate()
public boolean isTerminated()
public void terminate()
throws DebugException
DebugExceptionprotected void fireTerminateEvent()
protected void fireReadyToAcceptEvent()
public IStreamsProxy getStreamsProxy()
public java.lang.String getAttribute(java.lang.String key)
public void setAttribute(java.lang.String key,
java.lang.String value)
public <T> T getAdapter(java.lang.Class<T> adapter)