bamboo.dht.fssim
Class VirtualTimeAlgorithm

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

public class VirtualTimeAlgorithm
extends Algorithm


Nested Class Summary
 
Nested classes/interfaces inherited from class bamboo.dht.fssim.Algorithm
Algorithm.PutInfo, Algorithm.PutResultCb
 
Field Summary
protected  long accept_responses
           
protected  long again_responses
           
protected  long cap_responses
           
protected  HashMap commitments_granted
           
protected static boolean DEBUG
           
protected static long DISK_PAD
           
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
VirtualTimeAlgorithm(long p, long t)
           
 
Method Summary
protected  void all_puts_expired(int client)
           
 void print_usage()
           
 void process_pending_puts(LinkedList puts)
           
 void simulation_finished()
           
protected  long start_time(int client)
           
 
Methods inherited from class bamboo.dht.fssim.Algorithm
accept_put, enqueue_put, remove_put
 
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

DISK_PAD

protected static final long DISK_PAD
See Also:
Constant Field Values

virtual_time

protected long virtual_time

latest_finish_times

protected HashMap latest_finish_times

commitments_granted

protected HashMap commitments_granted

storage_tree

protected IonTree storage_tree

again_responses

protected long again_responses

cap_responses

protected long cap_responses

accept_responses

protected long accept_responses
Constructor Detail

VirtualTimeAlgorithm

public VirtualTimeAlgorithm(long p,
                            long t)
Method Detail

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)

print_usage

public void print_usage()
Overrides:
print_usage in class Algorithm

process_pending_puts

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

simulation_finished

public void simulation_finished()
Overrides:
simulation_finished in class Algorithm