java.lang.Objectjava.lang.Thread
com.sshtools.j2ssh.SshThread
All Implemented Interfaces:
Runnable
Enables the J2SSH application framework to execute threads in the context of a given session.
Lee - David Painter$ - Revision: 1.25 $0.2.0 - | Field Summary | ||
|---|---|---|
| protected byte[] | sessionId | The raw session id generating during the first key exchange. |
| protected String | sessionIdString | A string representation of the session id. |
| protected String | username | The thread owner |
| Fields inherited from java.lang.Thread: |
|---|
| MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY |
| Constructor: |
|---|
|
Constructs an SshThread.
|
| Method from com.sshtools.j2ssh.SshThread Summary: |
|---|
| cloneThread, containsProperty, getCurrentSessionId, getCurrentThread, getCurrentThreadUser, getProperty, getSessionIdString, getUsername, hasUserContext, setProperty, setSessionId, setUsername |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.sshtools.j2ssh.SshThread Detail: |
|---|
Create's a cloned copy of this thread with the given target and name. |
Determine if this thread contains the given property. |
Returns the session id of the current thread context.
This should be called when the caller is certain that the current thread
is running in an |
Returns the current
This should be called when the caller is certain that the current thread
is running in an |
Call to determine the username of the current thread context.
This should be called when the caller is certain that the current thread
is running in an |
Gets a property from this thread. |
Returns the session id string for this thread. |
Gets the username for this thread. |
|
Sets a property in the thread. |
Sets the session id for this thread. |
Set the username for this thread. |