org.gridkit.vicluster.telecontrol.ssh
Class TunnellerJvmReplicator

java.lang.Object
  extended by org.gridkit.vicluster.telecontrol.ssh.TunnellerJvmReplicator
All Implemented Interfaces:
JvmProcessFactory, RemoteJmvReplicator

public class TunnellerJvmReplicator
extends Object
implements RemoteJmvReplicator


Constructor Summary
TunnellerJvmReplicator(StreamCopyService streamCopyService)
           
TunnellerJvmReplicator(StreamCopyService streamCopyService, org.gridkit.zerormi.zlog.ZLogger logger)
           
 
Method Summary
 void configure(Map<String,String> nodeConfig)
           
 ManagedProcess createProcess(String caption, JvmConfig jvmArgs)
           
protected  org.slf4j.Logger createTunnellerOutputLogger()
           
 void dispose()
           
protected  void exec(ExecCommand jvmCmd, org.gridkit.vicluster.telecontrol.ssh.TunnellerJvmReplicator.RemoteControlSession handler)
           
 String getFingerPrint()
           
protected  void handleInbound(String rhost, int rport, InputStream soIn, OutputStream soOut)
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TunnellerJvmReplicator

public TunnellerJvmReplicator(StreamCopyService streamCopyService)

TunnellerJvmReplicator

public TunnellerJvmReplicator(StreamCopyService streamCopyService,
                              org.gridkit.zerormi.zlog.ZLogger logger)
Method Detail

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.