openr66.server
Class ChangeBandwidthLimits

java.lang.Object
  extended by openr66.server.ChangeBandwidthLimits
All Implemented Interfaces:
Runnable

public class ChangeBandwidthLimits
extends Object
implements Runnable

This command enables the dynamic change of bandwidth limitation. It does not changed the valuesin the database but only dynamic values while the server is running and until it is shutdown.

Author:
Frederic Bregier

Field Summary
protected  R66Future future
           
protected  NetworkTransaction networkTransaction
           
protected  long readGlobalLimit
           
protected  long readSessionLimit
           
protected static long sreadGlobalLimit
           
protected static long sreadSessionLimit
           
protected static long swriteGlobalLimit
           
protected static long swriteSessionLimit
           
protected  long writeGlobalLimit
           
protected  long writeSessionLimit
           
 
Constructor Summary
ChangeBandwidthLimits(R66Future future, long wgl, long rgl, long wsl, long rsl, NetworkTransaction networkTransaction)
           
 
Method Summary
protected static boolean getParams(String[] args)
           
static void main(String[] args)
           
 void run()
          Prior to call this method, the pipeline and NetworkTransaction must have been initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

future

protected final R66Future future

writeGlobalLimit

protected final long writeGlobalLimit

readGlobalLimit

protected final long readGlobalLimit

writeSessionLimit

protected final long writeSessionLimit

readSessionLimit

protected final long readSessionLimit

networkTransaction

protected final NetworkTransaction networkTransaction

swriteGlobalLimit

protected static long swriteGlobalLimit

sreadGlobalLimit

protected static long sreadGlobalLimit

swriteSessionLimit

protected static long swriteSessionLimit

sreadSessionLimit

protected static long sreadSessionLimit
Constructor Detail

ChangeBandwidthLimits

public ChangeBandwidthLimits(R66Future future,
                             long wgl,
                             long rgl,
                             long wsl,
                             long rsl,
                             NetworkTransaction networkTransaction)
Method Detail

run

public void run()
Prior to call this method, the pipeline and NetworkTransaction must have been initialized. It is the responsibility of the caller to finish all network resources.

Specified by:
run in interface Runnable

getParams

protected static boolean getParams(String[] args)

main

public static void main(String[] args)


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.