org.gridkit.vicluster.telecontrol.ssh
Class TunnellerJvmReplicator
java.lang.Object
org.gridkit.vicluster.telecontrol.ssh.TunnellerJvmReplicator
- All Implemented Interfaces:
- JvmProcessFactory, RemoteJmvReplicator
public class TunnellerJvmReplicator
- extends Object
- implements RemoteJmvReplicator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TunnellerJvmReplicator
public TunnellerJvmReplicator(StreamCopyService streamCopyService)
TunnellerJvmReplicator
public TunnellerJvmReplicator(StreamCopyService streamCopyService,
org.gridkit.zerormi.zlog.ZLogger logger)
configure
public void configure(Map<String,String> nodeConfig)
- Specified by:
configure in interface RemoteJmvReplicator
getFingerPrint
public String getFingerPrint()
- Specified by:
getFingerPrint in interface RemoteJmvReplicator
- Returns:
- configuration finger prints, which could be used to pool and reuse replicators
init
public void init()
throws Exception
- Specified by:
init in interface RemoteJmvReplicator
- Throws:
Exception
createTunnellerOutputLogger
protected org.slf4j.Logger createTunnellerOutputLogger()
handleInbound
protected void handleInbound(String rhost,
int rport,
InputStream soIn,
OutputStream soOut)
createProcess
public ManagedProcess createProcess(String caption,
JvmConfig jvmArgs)
throws IOException
- Specified by:
createProcess in interface JvmProcessFactory
- Throws:
IOException
exec
protected void exec(ExecCommand jvmCmd,
org.gridkit.vicluster.telecontrol.ssh.TunnellerJvmReplicator.RemoteControlSession handler)
throws IOException
- Throws:
IOException
dispose
public void dispose()
- Specified by:
dispose in interface RemoteJmvReplicator
Copyright © 2017. All Rights Reserved.