Package com.sshtools.j2ssh.subsystem
Class SubsystemClient
java.lang.Object
com.sshtools.j2ssh.subsystem.SubsystemClient
- All Implemented Interfaces:
Runnable
- Version:
- $Revision: 1.33 $
- Author:
- $author$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubsystemClient
(String name) Creates a new SubsystemClient object.SubsystemClient
(String name, SubsystemMessageStore messageStore) Creates a new SubsystemClient object. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
boolean
isClosed()
protected abstract boolean
onStart()
void
run()
protected void
void
setSessionChannel
(SessionChannelClient session) boolean
start()
void
stop()
-
Field Details
-
messageStore
-
session
-
-
Constructor Details
-
SubsystemClient
Creates a new SubsystemClient object.- Parameters:
name
-
-
SubsystemClient
Creates a new SubsystemClient object.- Parameters:
name
-messageStore
-
-
-
Method Details
-
isClosed
public boolean isClosed()- Returns:
-
setSessionChannel
- Parameters:
session
-
-
getSessionChannel
- Returns:
-
start
- Returns:
- Throws:
IOException
-
onStart
- Returns:
- Throws:
IOException
-
getName
- Returns:
-
sendMessage
- Parameters:
msg
-- Throws:
InvalidMessageException
IOException
-
run
public void run() -
stop
- Throws:
IOException
-