uka.karmi.rmi
Interface MarshalOutput

All Known Implementing Classes:
MarshalOutputStream

public interface MarshalOutput

Marshal streams in KaRMI must implement the MarshalOutput interface. Objects serialized in KaRMI remote method calls can expect to be marshaled in a OutputStream that implements the MarshalOutput interface. This interface is used during the marshaling of remote references.

Author:
Christian Nester, Bernhard Haumacher

Method Summary
 void finishMigration()
           
 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.
 void startMigration(java.lang.Object obj)
          Marks the object obj to be migrated.
 

Method Detail

getTechnology

public Technology getTechnology()
With getTechnology() a remote reference that is about to be marshaled can obtain a reference to the technology. The returned technology is that one that is currently communicating the object. Returns the technology this object belongs to.


getDGCMarshalContext

public DGCMarshalContext getDGCMarshalContext()
Returns the DGCMarshalContext for this serialization


startMigration

public void startMigration(java.lang.Object obj)
Marks the object obj 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.


finishMigration

public void finishMigration()
See Also:
startMigration(Object)