Re: [JSch-users] bandwidth
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2009-08-03 09:53:05
|
Hi, +-From: Ricardo Cabrera <ryc...@gm...> -- |_Date: Sat, 1 Aug 2009 12:24:08 +0200 _________ | |Im search for bandwidth limit function to an sftp transfer |it's possible? |Im search a lot in the home site and wiki with no success |tank There are not APIs for restricting bandwith limit, but com.jcraft.jsch.SftpProgressMonitor intermace may work for you, public interface SftpProgressMonitor{ public static final int PUT=0; public static final int GET=1; void init(int op, String src, String dest, long max); boolean count(long count); void end(); } How about adding delays to control the bandwith limit in your own its implementation? Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Skype callto://jcraft/ |