Package aQute.remote.plugin
Class RunSessionImpl
java.lang.Object
aQute.remote.plugin.RunSessionImpl
- All Implemented Interfaces:
aQute.bnd.build.RunSession
A session is a connection to a remote framework. It is possible to have many
sessions at the same time. This object maintains the state of the connection
and provides means to cancel the connection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRunSessionImpl(RemoteProjectLauncherPlugin launcher, RunRemoteDTO dto, Map<String, String> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidclose()intgetAgent()intgetHost()intgetJdb()getLabel()getName()longintlaunch()voidstderr(Appendable app) voidvoidstdout(Appendable app) booleanvoidwaitTillStarted(long ms)
-
Field Details
-
started
-
jdb
public static int jdb
-
-
Constructor Details
-
RunSessionImpl
public RunSessionImpl(RemoteProjectLauncherPlugin launcher, RunRemoteDTO dto, Map<String, String> properties) throws Exception- Throws:
Exception
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceaQute.bnd.build.RunSession
-
getLabel
- Specified by:
getLabelin interfaceaQute.bnd.build.RunSession
-
getJdb
public int getJdb()- Specified by:
getJdbin interfaceaQute.bnd.build.RunSession
-
stderr
- Specified by:
stderrin interfaceaQute.bnd.build.RunSession- Throws:
Exception
-
stdout
- Specified by:
stdoutin interfaceaQute.bnd.build.RunSession- Throws:
Exception
-
stdin
- Specified by:
stdinin interfaceaQute.bnd.build.RunSession- Throws:
Exception
-
launch
- Specified by:
launchin interfaceaQute.bnd.build.RunSession- Throws:
Exception
-
cancel
- Specified by:
cancelin interfaceaQute.bnd.build.RunSession- Throws:
Exception
-
getProperties
- Specified by:
getPropertiesin interfaceaQute.bnd.build.RunSession
-
close
- Throws:
IOException
-
getExitCode
public int getExitCode()- Specified by:
getExitCodein interfaceaQute.bnd.build.RunSession
-
waitTillStarted
- Specified by:
waitTillStartedin interfaceaQute.bnd.build.RunSession- Throws:
InterruptedException
-
getHost
- Specified by:
getHostin interfaceaQute.bnd.build.RunSession
-
getTimeout
public long getTimeout()- Specified by:
getTimeoutin interfaceaQute.bnd.build.RunSession
-
getAgent
public int getAgent()- Specified by:
getAgentin interfaceaQute.bnd.build.RunSession
-
validate
- Specified by:
validatein interfaceaQute.bnd.build.RunSession- Throws:
Exception
-