Examples of Throttle


Examples of com.ettrema.httpclient.Throttle

            System.out.println( "Upload::" + f.getName() );
            if( f.getName().startsWith( "." ) || f.getParentFile().getName().startsWith( "." ) ) {
                System.out.println( "not uploading: " + f.getName() );
            } else {
                try {
                    folder.upload( f, this, new Throttle() {

                        public void onRead( int len ) {
                        }
                    } );
                    currentFile++;
View Full Code Here

Examples of com.ibatis.common.util.Throttle

  private Throttle txThrottle;

  public TransactionManager(TransactionConfig transactionConfig) {
    this.transactionConfig = transactionConfig;
    this.txThrottle = new Throttle(transactionConfig.getMaximumConcurrentTransactions());
  }
View Full Code Here

Examples of com.ibatis.common.util.Throttle

  private Throttle txThrottle;

  public TransactionManager(TransactionConfig transactionConfig) {
    this.transactionConfig = transactionConfig;
    this.txThrottle = new Throttle(transactionConfig.getMaximumConcurrentTransactions());
  }
View Full Code Here

Examples of com.ibatis.common.util.Throttle

  private Throttle txThrottle;

  public TransactionManager(TransactionConfig transactionConfig) {
    this.transactionConfig = transactionConfig;
    this.txThrottle = new Throttle(transactionConfig.getMaximumConcurrentTransactions());
  }
View Full Code Here

Examples of com.samskivert.util.Throttle

            String msg = MessageFormat.format(get("m.remain"), remstr);
            _newrlab = createLabel(msg, _ifc.statusText);
            needsRepaint = true;

        } else if (_rlabel != null || _newrlab != null) {
            _rthrottle = new Throttle(1, 1000);
            _ridx = 0;
            _newrlab = _rlabel = null;
            needsRepaint = true;
        }
View Full Code Here

Examples of org.apache.cassandra.utils.Throttle

    public AbstractCompactionIterable(CompactionController controller, OperationType type)
    {
        this.controller = controller;
        this.type = type;
        this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
        {
            /** @return Instantaneous throughput target in bytes per millisecond. */
            public int targetThroughput()
            {
                if (DatabaseDescriptor.getCompactionThroughputMbPerSec() < 1 || StorageService.instance.isBootstrapMode())
View Full Code Here

Examples of org.apache.cassandra.utils.Throttle

    public FileStreamTask(StreamHeader header, InetAddress to)
    {
        this.header = header;
        this.to = to;
        this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
        {
            /** @return Instantaneous throughput target in bytes per millisecond. */
            public int targetThroughput()
            {
                if (DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec() < 1)
View Full Code Here

Examples of org.apache.cassandra.utils.Throttle

    public FileStreamTask(StreamHeader header, InetAddress to)
    {
        this.header = header;
        this.to = to;
        this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
        {
            /** @return Instantaneous throughput target in bytes per millisecond. */
            public int targetThroughput()
            {
                if (DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec() < 1)
View Full Code Here

Examples of org.apache.cassandra.utils.Throttle

        long bytes = 0;
        for (SSTableScanner scanner : scanners)
            bytes += scanner.getFileLength();
        this.totalBytes = bytes;

        this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
        {
            /** @return Instantaneous throughput target in bytes per millisecond. */
            public int targetThroughput()
            {
                if (DatabaseDescriptor.getCompactionThroughputMbPerSec() < 1 || StorageService.instance.isBootstrapMode())
View Full Code Here

Examples of org.apache.cassandra.utils.Throttle

    public FileStreamTask(StreamHeader header, InetAddress to, EncryptionOptions encryptionOptions)
    {
        this.header = header;
        this.to = to;
        this.encryptionOptions = encryptionOptions;
        this.throttle = new Throttle(toString(), new Throttle.ThroughputFunction()
        {
            /** @return Instantaneous throughput target in bytes per millisecond. */
            public int targetThroughput()
            {
                if (DatabaseDescriptor.getStreamThroughputOutboundMegabitsPerSec() < 1)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.