harmonic.mz.file
Class UpdateInputer
java.lang.Object
|
+--harmonic.mz.file.UpdateInputer
- public class UpdateInputer
- extends java.lang.Object
Update document has a list of nodes exisiting in current group, and a comleate
descritption of all new nodes.
To identify as new nodes from group: check node serial no in update list isnt here
and isnt in recievedNode table.
To identify node removed from here: check node serial no in update is isnt here
and is in recievedNode table
To identify as changed nodes from group: check serial no is in recieviedNode table,
and is here
To identify as nodes removed from group: check node in database here isnt in list
To identify as node as extra (added here, but not in group): check node in database here isnt in list
The mergeing process:
1) Make a table of all nodes in current collaboration group (allNodes table)
2) Go through new node details in update object
-update changed nodes (those found in sentNodes table)
-store new nodes (those not found in sentNodes table) with symbolic parent
3) Resolve parent symbols from new nodes and add to parents
-some will resolve to other new nodes
-some will resolve to existing nodes
-put new nodes in regualar serialNo (name) table
-put new nodes in sent nodes table
4) Link resolution pass for new nodes
5) checkFileRead pass for new nodes
6) Check that all nodes in database are in all node tabel, and remove them from database
if not.
|
Constructor Summary |
UpdateInputer(java.io.InputStream in,
java.lang.String remoteOwner,
java.util.Hashtable sentNodesTable)
Construct a UpdateOpener with the specified file name |
|
Method Summary |
void |
input()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bDecompress
public boolean bDecompress
UpdateInputer
public UpdateInputer(java.io.InputStream in,
java.lang.String remoteOwner,
java.util.Hashtable sentNodesTable)
throws java.lang.Exception
- Construct a UpdateOpener with the specified file name
input
public void input()
throws java.lang.Exception
java.lang.Exception