|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcf.core.framework.component.DynamicComponent.Abstract
radtools.services.AbstractRADService
radtools.services.linux.LinuxSession
@Revision(value="$Revision: 1.14 $",
date="$Date: 2006/12/15 20:37:51 $",
tag="$Name: $")
public class LinuxSessionTODO: Javadoc
TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString
| Nested Class Summary | |
|---|---|
protected class |
LinuxSession.State
TODO: Javadoc |
protected static class |
LinuxSession.Tunnel
TODO: Javadoc |
| Nested classes/interfaces inherited from class radtools.services.AbstractRADService |
|---|
AbstractRADService.AbstractRADServiceState, AbstractRADService.RefreshTask, AbstractRADService.StateProxy, AbstractRADService.UpdateTask |
| Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicComponent |
|---|
DynamicComponent.Abstract, DynamicComponent.Default |
| Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicBound |
|---|
DynamicBound.GUIType |
| Field Summary | |
|---|---|
private boolean |
cached
TODO: Javadoc |
private static rcf.temp.jsch.ssh.JSch |
jsch
TODO: Javadoc |
protected rcf.temp.jsch.ssh.Session |
ssh
TODO: Javadoc |
| Fields inherited from class radtools.services.AbstractRADService |
|---|
composition, dependency, management, proxy, state, window |
| Fields inherited from class rcf.core.framework.component.DynamicComponent.Abstract |
|---|
component, operations, properties |
| Constructor Summary | |
|---|---|
protected |
LinuxSession(RADService _management,
LinuxSystem _system,
RADService _composition,
boolean _cached)
TODO: Javadoc |
protected |
LinuxSession(RADService _management,
LinuxSystem _system,
RADService _composition,
UsernamePasswordPrincipal _principal,
boolean _cached)
TODO: Javadoc |
| Method Summary | |
|---|---|
void |
close()
TODO: Javadoc |
NetworkTunnel<UsernamePasswordPrincipal> |
forward(HostPort hostport)
TODO: Javadoc |
NetworkTunnel<UsernamePasswordPrincipal> |
forward(RADService _composition,
HostPort hostport)
TODO: Javadoc |
private static void |
getError(InputStream in,
int check)
TODO: Javadoc |
LinuxSystem |
host()
TODO: Javadoc |
boolean |
isConcrete()
Determine if this RADService is a concrete service, or simply an arbitrary abstraction built for management purposes. |
boolean |
isOpen()
TODO: Javadoc |
DynamicProperty<RADService.State> |
radServiceState()
Returns the dynamic property object for the state of this service. |
ImmutablePairInterface<Long,InputStream> |
read(String filename,
File file)
TODO: Javadoc |
rcf.core.util.text.Text |
run(String command,
rcf.core.scientific.units.measures.Measure<?,?,rcf.core.scientific.units.quantities.Duration> timeout)
TODO: Javadoc |
LinuxSystem |
system()
TODO: Javadoc |
String |
toString()
|
boolean |
write(String filename,
File contents)
TODO: Javadoc |
boolean |
write(String filename,
long length,
InputStream contents)
TODO: Javadoc |
boolean |
write(String filename,
String contents)
TODO: Javadoc |
| Methods inherited from class radtools.services.AbstractRADService |
|---|
check, communication, composition, dependency, icon, management, radTools, refresh, update, window |
| Methods inherited from class rcf.core.framework.component.DynamicComponent.Abstract |
|---|
bind, component, gui, interfaces, isInstance, o, operations, popupMenu, properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface radtools.services.RADService |
|---|
communication, composition, dependency, management, refresh, update, window |
| Methods inherited from interface rcf.core.framework.component.DynamicComponent |
|---|
component, operations, properties |
| Methods inherited from interface rcf.core.framework.component.DynamicBound |
|---|
gui |
| Methods inherited from interface rcf.core.util.accessor.GUIAccessible |
|---|
icon, popupMenu |
| Methods inherited from interface rcf.core.framework.component.ReflectedComponent |
|---|
interfaces, isInstance |
| Methods inherited from interface rcf.core.framework.component.ReflectedBindable |
|---|
bind |
| Field Detail |
|---|
private static final rcf.temp.jsch.ssh.JSch jsch
protected final rcf.temp.jsch.ssh.Session ssh
private final boolean cached
| Constructor Detail |
|---|
protected LinuxSession(RADService _management,
LinuxSystem _system,
RADService _composition,
boolean _cached)
_management - _system - _composition - _cached -
protected LinuxSession(RADService _management,
LinuxSystem _system,
RADService _composition,
UsernamePasswordPrincipal _principal,
boolean _cached)
_management - _system - _composition - _principal - _cached - | Method Detail |
|---|
private static void getError(InputStream in,
int check)
throws IOException
in - check -
IOExceptionpublic void close()
SecureSession
close in interface SecureSession<UsernamePasswordPrincipal>public NetworkTunnel<UsernamePasswordPrincipal> forward(HostPort hostport)
SecureSession
forward in interface SecureSession<UsernamePasswordPrincipal>forward in interface NetworkSession<UsernamePasswordPrincipal>
public NetworkTunnel<UsernamePasswordPrincipal> forward(RADService _composition,
HostPort hostport)
_composition - hostport -
public LinuxSystem host()
HostedRADService
host in interface HostedRADServicehost in interface NetworkSession<UsernamePasswordPrincipal>dependency().parent().get()public boolean isConcrete()
RADService
isConcrete in interface RADServicetrue if this object represents a concrete service.
false if this object represents an arbitrary
abstraction, and does not correspond to a real service.public boolean isOpen()
SecureSession
isOpen in interface SecureSession<UsernamePasswordPrincipal>public DynamicProperty<RADService.State> radServiceState()
RADServiceRADService.State.Unknown when
RADService.management().parent().get().radServiceState().get() != RADService.State.Running.
Note that the ImmutableSingletonInterface.get() and
SingletonInterface#set() methods on the dynamic property refer to
the offline state of this service. The
RADService.refresh() and RADService.update(boolean, RADService.State) methods
can be used to synchronize this state with the state of the actual
service. SingletonInterface#set() will
schedule
a call to RADService.update(boolean, RADService.State) so that the service
state will be updated in the future.
radServiceState in interface RADService
public ImmutablePairInterface<Long,InputStream> read(String filename,
File file)
SecureSession
read in interface SecureSession<UsernamePasswordPrincipal>
public rcf.core.util.text.Text run(String command,
rcf.core.scientific.units.measures.Measure<?,?,rcf.core.scientific.units.quantities.Duration> timeout)
SecureSession
run in interface SecureSession<UsernamePasswordPrincipal>public LinuxSystem system()
SecureSession
system in interface SecureSession<UsernamePasswordPrincipal>public String toString()
toString in class Object
public boolean write(String filename,
File contents)
throws FileNotFoundException
SecureSession
write in interface SecureSession<UsernamePasswordPrincipal>FileNotFoundException
public boolean write(String filename,
long length,
InputStream contents)
SecureSession
write in interface SecureSession<UsernamePasswordPrincipal>
public boolean write(String filename,
String contents)
SecureSession
write in interface SecureSession<UsernamePasswordPrincipal>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||