|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.ObjectOutputStream
uka.karmi.stream.MarshalOutputStream
A marshal stream for connections between two socket technology objects. Remote objects must be replaced during serialization. When a MarshalOutputStream is used to transport arguments or results in a remote method call, getDGCMarshalContext returns the DGCMarshalContext that is used during the serialization.
| Nested Class Summary |
| Nested classes inherited from class java.io.ObjectOutputStream |
java.io.ObjectOutputStream.PutField |
| Field Summary | |
(package private) DGCMarshalContext |
marshalContext
Interface to the output part of the distributed garbage collector. |
(package private) java.lang.Object |
migratingServer
|
(package private) Technology |
technology
The technology this stream belongs to. |
(package private) java.lang.Object |
updatedReplica
|
| Fields inherited from class java.io.ObjectOutputStream |
|
| Fields inherited from interface java.io.ObjectStreamConstants |
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING |
| Constructor Summary | |
MarshalOutputStream(java.io.OutputStream out,
Technology technology)
|
|
| Method Summary | |
void |
finishMigration()
|
void |
finishUpdate()
|
DGCMarshalContext |
getDGCMarshalContext()
Returns the DGCMarshalContext for this serialization |
Technology |
getTechnology()
With getTechnology() a remote reference that is about to be marshaled can obtain a reference to the technology. |
protected java.lang.Object |
replaceObject(java.lang.Object obj)
Replaces objects during serialization. |
void |
startMigration(java.lang.Object obj)
Marks the object obj to be migrated. |
void |
startUpdate(java.lang.Object obj)
|
protected void |
writeStreamHeader()
no stream header. |
| Methods inherited from class java.io.ObjectOutputStream |
annotateClass, annotateProxyClass, close, defaultWriteObject, drain, enableReplaceObject, flush, putFields, reset, useProtocolVersion, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeClassDescriptor, writeDouble, writeFields, writeFloat, writeInt, writeLong, writeObject, writeObjectOverride, writeShort, writeUnshared, writeUTF |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
Technology technology
DGCMarshalContext marshalContext
java.lang.Object migratingServer
java.lang.Object updatedReplica
| Constructor Detail |
public MarshalOutputStream(java.io.OutputStream out,
Technology technology)
throws java.io.IOException,
java.io.StreamCorruptedException
| Method Detail |
protected void writeStreamHeader()
throws java.io.IOException
java.io.IOExceptionpublic Technology getTechnology()
MarshalOutput
getTechnology in interface MarshalOutputMarshalOutput.getTechnology()public DGCMarshalContext getDGCMarshalContext()
MarshalOutput
getDGCMarshalContext in interface MarshalOutputMarshalOutput.getDGCMarshalContext()public void startMigration(java.lang.Object obj)
MarshalOutputobj to be migrated. References
to remote objects are normally replaced by their stubs, when
they are passed as arguments in a remote call. Calling this
method before marshaling the parameters of a call causes the
remote server obj to be migrated during this
remote call.
startMigration in interface MarshalOutputpublic void finishMigration()
finishMigration in interface MarshalOutputMarshalOutput.startMigration(Object)public void startUpdate(java.lang.Object obj)
startUpdate in interface PatchOutputStreampublic void finishUpdate()
finishUpdate in interface PatchOutputStream
protected java.lang.Object replaceObject(java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionExportPoint.replaceObject(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||