jp.lang
Class Distributor

java.lang.Object
  extended byjp.lang.Distributor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassDistributor, ObjectDistributor

public abstract class Distributor
extends java.lang.Object
implements java.io.Serializable

Distributor abstract superclass of object and class distributors

Since:
JP0.1
Author:
Matthias Zenger, Bernhard Haumacher
See Also:
ObjectDistributor, ClassDistributor, Serialized Form

Field Summary
static int ALWAYS
          a machine with this priority is always selected
static int DEFAULT
          this is the default priority for each machine
static int NEVER
          a machine with this priority is never targeted
 
Constructor Summary
Distributor()
           
 
Method Summary
abstract  int getPriority(int target)
          get the current priority of a machine
static Distributor loadDistributor(java.lang.String name)
           
abstract  Distributor reset()
          reset all machine priorities to the default value (return this)
abstract  Distributor setPriority(int target, int priority)
          set the priority of a machine (return this)
abstract  int target(int jvmCnt, java.lang.String classname)
          return a target machine for class- or constructor-object of class
 void update()
          callback method that is invoked by the runtime system when runtime data changes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static int DEFAULT
this is the default priority for each machine


NEVER

public static int NEVER
a machine with this priority is never targeted


ALWAYS

public static int ALWAYS
a machine with this priority is always selected

Constructor Detail

Distributor

public Distributor()
Method Detail

update

public void update()
callback method that is invoked by the runtime system when runtime data changes


reset

public abstract Distributor reset()
reset all machine priorities to the default value (return this)


setPriority

public abstract Distributor setPriority(int target,
                                        int priority)
set the priority of a machine (return this)


getPriority

public abstract int getPriority(int target)
get the current priority of a machine


target

public abstract int target(int jvmCnt,
                           java.lang.String classname)
return a target machine for class- or constructor-object of class


loadDistributor

public static Distributor loadDistributor(java.lang.String name)
                                   throws jp.lang.ConfigurationException
Throws:
jp.lang.ConfigurationException