public class ForceReplicationHandler
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
ForceReplicationHandler(java.lang.String docid,
boolean xml,
java.lang.String myNotificationServer)
Use this constructor when the action is implied.
|
ForceReplicationHandler(java.lang.String docid,
java.lang.String action,
boolean xml,
java.lang.String myNotificationServer)
Constructor of ForceReplicationHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Method to send force replication command to other server to get
a new or updated docid
|
public ForceReplicationHandler(java.lang.String docid,
java.lang.String action,
boolean xml,
java.lang.String myNotificationServer)
docid - the docid to force replicatethe - action that is being performed on the document (either
INSERT or UPDATE)xml - the docid is a xml document or not (data file)notificationServer, - when a metacat A got forcereplication
notification from B, then A will update its record. And A will notification
other metacat in its serverlist to update this docid if A is a hub. But we
don't want A to notify B again. B is nofitification of A.public ForceReplicationHandler(java.lang.String docid,
boolean xml,
java.lang.String myNotificationServer)
Copyright © 2020 Regents of the University of California. All Rights Reserved.