bamboo.dht.fssim
Class NoQueuingAlgorithm

java.lang.Object
  extended by bamboo.dht.fssim.Algorithm
      extended by bamboo.dht.fssim.NoQueuingAlgorithm

public class NoQueuingAlgorithm
extends Algorithm


Nested Class Summary
 
Nested classes/interfaces inherited from class bamboo.dht.fssim.Algorithm
Algorithm.PutInfo, Algorithm.PutResultCb
 
Field Summary
protected  LinkedList accept_virtual_times
           
protected static boolean DEBUG
           
protected static long DISK_SIZE
           
protected  HashMap latest_finish_times
           
protected static long MAX_PUT
           
protected static int MAX_SIZE
           
protected static long MAX_TTL
           
protected static long RATE
           
protected  IonTree storage_tree
           
protected  long virtual_time
           
 
Fields inherited from class bamboo.dht.fssim.Algorithm
client_count, instance, pending_puts, period, sim, stop_time, storage_by_client, total_puts
 
Constructor Summary
NoQueuingAlgorithm(long p, long t)
           
 
Method Summary
protected  void all_puts_expired(int client)
           
 void enqueue_put(int client, int size, int ttl_sec, Algorithm.PutResultCb cb, Object user_data)
           
 void process_pending_puts(LinkedList puts)
           
protected  long start_time(int client)
           
 
Methods inherited from class bamboo.dht.fssim.Algorithm
accept_put, print_usage, remove_put, simulation_finished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static final boolean DEBUG
See Also:
Constant Field Values

MAX_TTL

protected static final long MAX_TTL
See Also:
Constant Field Values

MAX_SIZE

protected static final int MAX_SIZE
See Also:
Constant Field Values

MAX_PUT

protected static final long MAX_PUT
See Also:
Constant Field Values

RATE

protected static final long RATE
See Also:
Constant Field Values

DISK_SIZE

protected static final long DISK_SIZE
See Also:
Constant Field Values

virtual_time

protected long virtual_time

latest_finish_times

protected HashMap latest_finish_times

storage_tree

protected IonTree storage_tree

accept_virtual_times

protected LinkedList accept_virtual_times
Constructor Detail

NoQueuingAlgorithm

public NoQueuingAlgorithm(long p,
                          long t)
Method Detail

enqueue_put

public void enqueue_put(int client,
                        int size,
                        int ttl_sec,
                        Algorithm.PutResultCb cb,
                        Object user_data)
Overrides:
enqueue_put in class Algorithm

all_puts_expired

protected void all_puts_expired(int client)
Overrides:
all_puts_expired in class Algorithm

start_time

protected long start_time(int client)

process_pending_puts

public void process_pending_puts(LinkedList puts)
Specified by:
process_pending_puts in class Algorithm