|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.m2mi.ExportMap
edu.rit.m2mi.EoidExportMap
public class EoidExportMap
Class EoidExportMap provides a mapping from an exported object identifier (EOID) to a set of objects that have been exported with that EOID. This is used to determine the target objects for a multihandle or unihandle invocation for a certain EOID.
Note: Class EoidExportMap is not multiple thread safe.
Constructor Summary | |
---|---|
EoidExportMap(M2MIMessagePrefix theMessagePrefixBag)
Construct a new, empty EOID export map. |
Method Summary | |
---|---|
void |
export(Eoid eoid,
Object obj)
Export the given object with the given EOID in this export map. |
protected boolean |
isExported(Eoid eoid)
Determine if any object(s) are exported with the given EOID in this export map. |
boolean |
isExported(Eoid eoid,
Object obj)
Determine if the given object is exported with the given EOID in this export map. |
Iterator |
iterator(Eoid eoid)
Obtain an iterator for visiting the objects exported with the given EOID in this export map. |
void |
unexport(Eoid eoid,
Object obj)
Unexport the given object from the given EOID in this export map. |
void |
unexportEoid(Eoid eoid)
Unexport all objects from the given EOID in this export map. |
Methods inherited from class edu.rit.m2mi.ExportMap |
---|
export, isExported, isExported, iterator, unexport, unexport, unexportKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EoidExportMap(M2MIMessagePrefix theMessagePrefixBag)
theMessagePrefixBag
- M2MI message prefix bag.
NullPointerException
- (unchecked exception) Thrown if theMessagePrefixBag is null.Method Detail |
---|
public void export(Eoid eoid, Object obj)
eoid
- EOID.obj
- Object to export.
NullPointerException
- (unchecked exception) Thrown if eoid is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem exporting the
object.public void unexport(Eoid eoid, Object obj)
eoid
- EOID.obj
- Object to unexport.
NullPointerException
- (unchecked exception) Thrown if eoid is null or obj
is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
object.public void unexportEoid(Eoid eoid)
eoid
- EOID.
NullPointerException
- (unchecked exception) Thrown if eoid is null.
ExportException
- (unchecked exception) Thrown if there was a problem unexporting the
objects.protected boolean isExported(Eoid eoid)
eoid
- EOID
NullPointerException
- (unchecked exception) Thrown if eoid is null.public boolean isExported(Eoid eoid, Object obj)
eoid
- EOID.obj
- Object.
NullPointerException
- (unchecked exception) Thrown if eoid is null or obj
is null.public Iterator iterator(Eoid eoid)
eoid
- EOID.
NullPointerException
- (unchecked exception) Thrown if eoid is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |