ibis.satin.impl.loadBalancing
Class VictimTable

java.lang.Object
  extended by ibis.satin.impl.loadBalancing.VictimTable
All Implemented Interfaces:
Config

public final class VictimTable
extends Object
implements Config


Field Summary
 
Fields inherited from interface ibis.satin.impl.Config
abortLogger, ASSERTS, CHECKPOINT_CLUSTER, CHECKPOINT_FILE, CHECKPOINT_FIRST, CHECKPOINT_INTERVAL, CHECKPOINT_MAXFILESIZE, CHECKPOINT_PUSH, CHECKPOINT_QUITTIME, CHECKPOINTING, CLIENT, CLOSE_CONNECTIONS, CLOSED, commLogger, CONNECT_TIMEOUT, CONNECTIONS_ON_DEMAND, connLogger, COORDINATOR_QUIT_DELAY_TIME, DELETE_CLUSTER_TIME, DELETE_TIME, DETAILED_STATS, DUMP, FT_NAIVE, ftLogger, grtLogger, HANDLE_MESSAGES_IN_LATENCY, inletLogger, KEEP_INTRA_CONNECTIONS, KILL_TIME, LABEL_ROUTING_MCAST, mainLogger, MASTER_HOST, MAX_CONNECTIONS, MAX_STEAL_THROTTLE, properties, PROPERTY_PREFIX, QUEUE_STEALS, s_alg, s_asserts, s_client, s_close_connections, s_closed, s_connections_on_demand, s_cpt, s_cpt_cluster, s_cpt_file, s_cpt_first, s_cpt_interval, s_cpt_maxFileSize, s_cpt_push, s_cpt_quit, s_delete_cluster_time, s_delete_time, s_detailed_stats, s_dump, s_ft_connectTimeout, s_ft_naive, s_in_latency, s_keep_intra_connections, s_kill_time, s_masterhost, s_max_connections, s_max_steal_throttle, s_queue_steals, s_so_delay, s_so_lrmc, s_so_size, s_so_wait_time, s_stats, s_steal_wait_timeout, s_throttle_steals, s_unreliable, SO_MAX_INVOCATION_DELAY, SO_MAX_MESSAGE_SIZE, SO_WAIT_FOR_UPDATES_TIME, soBcastLogger, soLogger, spawnLogger, STATS, STEAL_WAIT_TIMEOUT, stealLogger, SUPPLIED_ALG, sysprops, THROTTLE_STEALS, UNRELIABLE
 
Constructor Summary
VictimTable(Satin s)
           
 
Method Summary
 void add(Victim v)
           
 boolean contains(ibis.ipl.IbisIdentifier ident)
           
 ibis.ipl.IbisIdentifier[] getIbises()
           
 Victim getRandomLocalVictim()
          returns null if there are no other nodes in this cluster
 Victim getRandomRemoteVictim()
          Returns null if there are no remote victims i.e., there's only one cluster
 Victim getRandomVictim()
           
 Victim getVictim(ibis.ipl.IbisIdentifier id)
           
 Victim getVictim(int i)
           
 Victim getVictimNonBlocking(ibis.ipl.IbisIdentifier ident)
           
 void print(PrintStream out)
           
 Victim remove(ibis.ipl.IbisIdentifier ident)
           
 Victim remove(int i)
           
 int size()
           
 Victim[] victims()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VictimTable

public VictimTable(Satin s)
Method Detail

add

public void add(Victim v)

remove

public Victim remove(ibis.ipl.IbisIdentifier ident)

remove

public Victim remove(int i)

size

public int size()

getVictim

public Victim getVictim(int i)

getVictimNonBlocking

public Victim getVictimNonBlocking(ibis.ipl.IbisIdentifier ident)

getRandomVictim

public Victim getRandomVictim()

getRandomLocalVictim

public Victim getRandomLocalVictim()
returns null if there are no other nodes in this cluster


getRandomRemoteVictim

public Victim getRandomRemoteVictim()
Returns null if there are no remote victims i.e., there's only one cluster


print

public void print(PrintStream out)

contains

public boolean contains(ibis.ipl.IbisIdentifier ident)

getIbises

public ibis.ipl.IbisIdentifier[] getIbises()

getVictim

public Victim getVictim(ibis.ipl.IbisIdentifier id)

victims

public Victim[] victims()


The Ibis project