|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.patch.PatchAdapterImpl.Output
| Field Summary | |
private AbstractPatchWriter |
writer
|
| Constructor Summary | |
PatchAdapterImpl.Output(AbstractPatchWriter writer)
|
|
| Method Summary | |
void |
createCompletePatch()
Creates a complete patch for all objects currently registered in the object space. |
void |
createPatchAnonymous(java.lang.Object orig,
java.lang.Object copy)
|
private void |
doCreatePatchRecord(java.lang.Object orig,
java.lang.Object copy)
Creates a single patch record for the given (orig, copy) object pair. |
MarshalStream |
getOutput(int rank)
Experimental low-level API: Patch creation for the expert. |
boolean |
writeDiff(boolean value,
boolean copy)
Called from a patchable object's Patchable.createPatch(Object, PatchOutput) method for
each instance variable of matching type. |
boolean |
writeDiff(byte value,
byte copy)
|
boolean |
writeDiff(char value,
char copy)
|
boolean |
writeDiff(double value,
double copy)
|
boolean |
writeDiff(float value,
float copy)
|
boolean |
writeDiff(int value,
int copy)
|
boolean |
writeDiff(long value,
long copy)
|
java.lang.Object |
writeDiff(java.lang.Object ref,
java.lang.Object copy)
Like writeDiff(int, int) for instance variables of
reference type. |
boolean |
writeDiff(short value,
short copy)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final AbstractPatchWriter writer
| Constructor Detail |
public PatchAdapterImpl.Output(AbstractPatchWriter writer)
throws java.io.IOException
| Method Detail |
public void createCompletePatch()
throws java.io.IOException
java.io.IOException
private void doCreatePatchRecord(java.lang.Object orig,
java.lang.Object copy)
throws java.io.IOException
java.io.IOException
public boolean writeDiff(boolean value,
boolean copy)
throws java.io.IOException
Patchable.createPatch(Object, PatchOutput) method for
each instance variable of matching type.
writeDiff in interface PatchOutputjava.io.IOExceptionPatchOutput.writeDiff(int, int)
public boolean writeDiff(byte value,
byte copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(char value,
char copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(short value,
short copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(int value,
int copy)
throws java.io.IOException
writeDiff in interface PatchOutputvalue - the value of currently inspected instance variable of
a patchable object.copy - the value of the corresponding instance variable of
the backup copy.
java.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(float value,
float copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(long value,
long copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public boolean writeDiff(double value,
double copy)
throws java.io.IOException
writeDiff in interface PatchOutputjava.io.IOExceptionwriteDiff(boolean, boolean)
public java.lang.Object writeDiff(java.lang.Object ref,
java.lang.Object copy)
throws java.io.IOException
PatchOutputPatchOutput.writeDiff(int, int) for instance variables of
reference type. But instead of a modification notification the
new reference (normally the one that was passed as first
argument) is returned. In case of partial replication, there is
an exception to that rule: If the application has decided not
to replicate an object on the node, where it was created on,
the reference is deleted during update. In that case, this
method will return null insted. The responsibility
of the Patchable.createPatch(Object, PatchOutput)
method is to assign the returned reference to the corresponding
instance variables of the original and the backup copy.
writeDiff in interface PatchOutputr, or null, if
r is not being replicated on the local node.
java.io.IOExceptionwriteDiff(boolean, boolean)
public void createPatchAnonymous(java.lang.Object orig,
java.lang.Object copy)
throws java.io.IOException
createPatchAnonymous in interface PatchOutputjava.io.IOException
public MarshalStream getOutput(int rank)
throws java.io.IOException
PatchOutput
getOutput in interface PatchOutputjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||