|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.util.IDConstants
uka.util.IDMap
uka.util.WeakIDMap
uka.patch.PartitionedObjectSpace
| Nested Class Summary | |
class |
PartitionedObjectSpace.Distribution
|
(package private) class |
PartitionedObjectSpace.SubSpace
|
| Nested classes inherited from class uka.util.WeakIDMap |
|
| Field Summary | |
(package private) PartitionedObjectSpace.Distribution |
distribution
Stores the (specified and actual) distribution of all objects that have a local copy in the replica of this object space. |
(package private) DistributionJournal |
distributionJournal
A journal of application specified object distributions. |
(package private) Distributor |
distributor
An application provided distributor object that decides about the distribution of objects newly added to this partitioned object space. |
(package private) int |
localRank
The local rank. |
(package private) IntOpenHashSet |
newIDs
|
(package private) IntOpenHashSet |
newlySharedIDs
|
(package private) IntOpenHashSet |
newlyUnsharedIDs
|
(package private) ReadOnlyJournal |
readOnlyJournal
|
(package private) int |
size
The number of nodes. |
(package private) PartitionedObjectSpace.SubSpace[] |
subSpaces
|
| Fields inherited from class uka.util.WeakIDMap |
|
| Fields inherited from class uka.util.IDMap |
idToObject, INVALID_INDEX, space |
| Fields inherited from class uka.util.IDConstants |
FIRST_NEW_ID, FIRST_VALID_ID, INVALID_ID, UNUSED_ID |
| Constructor Summary | |
PartitionedObjectSpace(java.lang.Object root,
int size,
int localRank,
Distributor distributor)
|
|
| Method Summary | |
void |
appendTo(ToString s)
This method should append the contents of each instance variable of the current
object to the given ToString object. |
void |
checkConsistency(java.util.logging.Logger log)
|
void |
distributeTo(java.lang.Object obj,
boolean[] ranks)
|
void |
distributeTo(java.lang.Object obj,
int[] ranks)
|
IntIterator |
getActiveRanks()
|
int |
getID(java.lang.Object obj)
Returns the identifier for a given object. |
IntIterator |
getSharedIDs()
|
int |
getSize()
|
SharedObjectSpace |
getSubSpace(int rank)
|
void |
includeID(int id)
Make the object that corresponds to the given identifier part of this object space. |
private void |
initTransient(int size)
|
boolean |
isAccepted(int id)
Decides whether an object reference should be blocked during transmission through a MarshalStream/UnmarshalStream pair. |
boolean |
isAccepted(int id,
int rank)
|
boolean |
isAtHome(int id,
int rank)
|
boolean |
isIncluded(int id)
Decides whether the obect that corresponds to the given identifier is part of this object space. |
boolean |
isReadOnly(java.lang.Object obj)
|
boolean |
isShared(int id)
|
void |
readDistributionUpdate(PatchReader reader)
|
private void |
readObject(java.io.ObjectInputStream in)
|
private void |
resetNewIDs()
|
private void |
restoreAfterUnmarshal()
|
void |
setLocalRank(int localRank)
|
void |
setObject(int id,
java.lang.Object obj)
Assigns the given object to an application provided identifier and includes the given object to this object
space. |
void |
setReadOnly(java.lang.Object obj,
boolean value)
|
boolean |
testReadOnly(java.lang.Object obj)
|
java.lang.String |
toString()
|
void |
writeDistributionUpdate(PatchWriter[] writers)
|
| Methods inherited from class uka.util.WeakIDMap |
get, getIDForRef, getIndexForID, getObjects, getObjects, pollID, restoreBeforeReadObject, set, waitForID, waitForID |
| Methods inherited from class uka.util.IDMap |
clear, dump, findID, getHash, getIndexForHash, getObject, getUsedIDs, isUsed, rawFindID, remove, resetObject |
| Methods inherited from class uka.util.IDConstants |
isNew, isValid, normalizeID, toggleNew |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface uka.transport.ObjectSpace |
clear, findID, getObject, getUsedIDs, isUsed, remove, resetObject |
| Field Detail |
int size
transient int localRank
Distributor distributor
PartitionedObjectSpace.Distribution distribution
transient DistributionJournal distributionJournal
distributeTo(Object, int[])transient ReadOnlyJournal readOnlyJournal
PartitionedObjectSpace.SubSpace[] subSpaces
transient IntOpenHashSet newIDs
transient IntOpenHashSet newlySharedIDs
transient IntOpenHashSet newlyUnsharedIDs
| Constructor Detail |
public PartitionedObjectSpace(java.lang.Object root,
int size,
int localRank,
Distributor distributor)
| Method Detail |
private void initTransient(int size)
private void resetNewIDs()
public void setLocalRank(int localRank)
public int getSize()
getSize in class IDMappublic IntIterator getActiveRanks()
public void checkConsistency(java.util.logging.Logger log)
public int getID(java.lang.Object obj)
ObjectSpaceObjectSpace the first time, the #isNew method returns true for the resulting
identifier.
getID in interface ObjectSpacegetID in class IDMappublic boolean isShared(int id)
isShared in interface ObjectSpacePartitionedObjectSpace.Distribution.isShared(int)public final IntIterator getSharedIDs()
public boolean isAccepted(int id)
ObjectSpaceMarshalStream/UnmarshalStream pair. If a call to ObjectSpace.isAccepted(int) on the
ObjectSpace of the sender-side stream returns
false for an object identifier, a reference to the
corresponding object is blocked (replaced with
null).
isAccepted in interface ObjectSpacepublic boolean isIncluded(int id)
ObjectSpace
isIncluded in interface ObjectSpaceObjectSpace.includeID(int)public void includeID(int id)
ObjectSpaceObjectSpace.isIncluded(int) method returns true for the
corresponding identifier. An object can have an assigned
identifier in some object space without being part of that
object space.
includeID in interface ObjectSpace
public boolean isAccepted(int id,
int rank)
public void distributeTo(java.lang.Object obj,
int[] ranks)
public void distributeTo(java.lang.Object obj,
boolean[] ranks)
public void setObject(int id,
java.lang.Object obj)
ObjectSpaceincludes the given object to this object
space.
setObject in interface ObjectSpacesetObject in class IDMappublic boolean testReadOnly(java.lang.Object obj)
public void setReadOnly(java.lang.Object obj,
boolean value)
public boolean isReadOnly(java.lang.Object obj)
public void writeDistributionUpdate(PatchWriter[] writers)
throws java.io.IOException
java.io.IOException
public void readDistributionUpdate(PatchReader reader)
throws java.io.IOException
java.io.IOException
public boolean isAtHome(int id,
int rank)
public SharedObjectSpace getSubSpace(int rank)
private void restoreAfterUnmarshal()
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionpublic java.lang.String toString()
public void appendTo(ToString s)
Printableappend the contents of each instance variable of the current
object to the given ToString object. The appended data
should be labeled with the name of the corresponding instance
variable.
appendTo in interface PrintableappendTo in class IDMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||