|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.common.SerializedObject
public final class SerializedObject
_Impl
objects are stored on stores in serialized form as
SerializedObject
s.
Constructor Summary | |
---|---|
SerializedObject(java.io.DataInput in)
A deserialization constructor. |
|
SerializedObject(long onum,
long label,
Pair<java.lang.String,java.lang.Long> remoteRef)
Creates a serialized representation of a surrogate object. |
|
SerializedObject(Object._Impl obj)
Deprecated. |
Method Summary | |
---|---|
Object._Impl |
deserialize(Store store)
Used by the worker to deserialize this object. |
java.lang.String |
getClassName()
|
fabric.lang.Codebase |
getCodebase()
|
long |
getExpiry()
|
ComparablePair<java.lang.String,java.lang.Long> |
getInterStoreLabelRef()
|
java.util.Iterator<ComparablePair<java.lang.String,java.lang.Long>> |
getInterStoreRefIterator()
|
java.util.Iterator<java.lang.Long> |
getIntraStoreRefIterator()
|
long |
getLabelOnum()
|
int |
getNumInterStoreRefs()
|
int |
getNumIntraStoreRefs()
|
int |
getNumRefTypes()
|
long |
getOnum()
|
java.util.Iterator<RefTypeEnum> |
getRefTypeIterator()
|
java.io.InputStream |
getSerializedDataStream()
|
int |
getVersion()
|
boolean |
isSystemClass()
|
boolean |
labelRefIsInterStore()
|
void |
setExpiry(long expiry)
Modifies the serialized object's promise expiry |
void |
setRefs(java.util.List<java.lang.Long> intraStoreRefs)
Replaces the intra-store and inter-store references with the given intra-store references. |
void |
setVersion(int version)
Modifies the serialized object's version number. |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Writes this SerializedObject out to the given output stream. |
static void |
write(Object._Impl impl,
java.io.DataOutput out)
Writes the given _Impl out to the given output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerializedObject(Object._Impl obj)
obj
- The object to serialize.public SerializedObject(long onum, long label, Pair<java.lang.String,java.lang.Long> remoteRef)
onum
- The local object number for the surrogate.label
- The onum for the surrogate's label object.remoteRef
- The name of the remote object being referred to.public SerializedObject(java.io.DataInput in) throws java.io.IOException
in
- An input stream containing a serialized object.
java.io.IOException
write(DataOutput)
,
#write(_Impl, DataOutput)
,
#readImpl(Store, DataInput)
Method Detail |
---|
public long getOnum()
public int getVersion()
public void setVersion(int version)
public long getExpiry()
public void setExpiry(long expiry)
expiry
- public boolean labelRefIsInterStore()
public ComparablePair<java.lang.String,java.lang.Long> getInterStoreLabelRef()
InternalError
- if the serialized object has an intra-store reference to its
label.public long getLabelOnum()
InternalError
- if the serialized object has an inter-store reference to its
label.public boolean isSystemClass()
public fabric.lang.Codebase getCodebase()
public java.lang.String getClassName()
public final int getNumRefTypes()
public final int getNumIntraStoreRefs()
public final int getNumInterStoreRefs()
public java.util.Iterator<RefTypeEnum> getRefTypeIterator()
public java.util.Iterator<java.lang.Long> getIntraStoreRefIterator()
public java.io.InputStream getSerializedDataStream()
public java.util.Iterator<ComparablePair<java.lang.String,java.lang.Long>> getInterStoreRefIterator()
public void setRefs(java.util.List<java.lang.Long> intraStoreRefs)
public java.lang.String toString()
toString
in class java.lang.Object
public static void write(Object._Impl impl, java.io.DataOutput out) throws java.io.IOException
java.io.IOException
write(DataOutput)
,
#readImpl(Store, DataInput)
,
SerializedObject(DataInput)
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface FastSerializable
java.io.IOException
SerializedObject#write(_Impl, DataOutput)
,
SerializedObject#readImpl(Store, DataInput)
,
SerializedObject(DataInput)
public Object._Impl deserialize(Store store)
store
- The store on which this object lives.
java.lang.ClassNotFoundException
- Thrown when the class for this object is unavailable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |