|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjp.lang.Distributor
jp.lang.ObjectDistributor
ObjectDistributor implements the default object distribution strategy; it selects machines using this strategy: - if a machine's priority is NEVER, it is never chosen, - if a machine was the last machine, that was declared to be the prefered machine (ALWAYS), it is selected always - if a new machine's priority is set to ALWAYS, the former prefered machine's priority is reset to DEFAULT - if there is no prefered machine, then a random machine (with DEFAULT priority) is chosen
Distributor,
Serialized Form| Field Summary |
| Fields inherited from class jp.lang.Distributor |
ALWAYS, DEFAULT, NEVER |
| Constructor Summary | |
ObjectDistributor()
|
|
| Method Summary | |
int |
getPriority(int target)
get the current priority of a machine |
Distributor |
reset()
reset all machine priorities to the default value (return this) |
Distributor |
setPriority(int target,
int priority)
set the priority of a machine (return this) |
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 jp.lang.Distributor |
loadDistributor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectDistributor()
| Method Detail |
public void update()
Distributor
update in class Distributorpublic Distributor reset()
Distributor
reset in class Distributor
public Distributor setPriority(int target,
int priority)
Distributor
setPriority in class Distributorpublic int getPriority(int target)
Distributor
getPriority in class Distributor
public int target(int jvmCnt,
java.lang.String classname)
Distributor
target in class Distributor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||