Project

General

Profile

« Previous | Next » 

Revision 6125

force replication for newly-registered system metadata

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNCoreImpl.java
51 51

  
52 52
import edu.ucsb.nceas.metacat.EventLog;
53 53
import edu.ucsb.nceas.metacat.IdentifierManager;
54
import edu.ucsb.nceas.metacat.replication.ForceReplicationSystemMetadataHandler;
54 55

  
55 56
/**
56 57
 * 
......
122 123
        try {
123 124
			IdentifierManager.getInstance().createSystemMetadata(sysmeta);
124 125
			IdentifierManager.getInstance().updateSystemMetadata(sysmeta);
126
			// force replication of this record
127
			ForceReplicationSystemMetadataHandler forceReplication = new ForceReplicationSystemMetadataHandler(guid.getValue(), null);
125 128
		} catch (Exception e) {
126 129
            throw new ServiceFailure("4862", "Error inserting system metadata: " + e.getClass() + ": " + e.getMessage());
127 130
		}
src/edu/ucsb/nceas/metacat/replication/ForceReplicationSystemMetadataHandler.java
58 58
  /**
59 59
   * Use this constructor when the action is implied.
60 60
   */
61
  public ForceReplicationSystemMetadataHandler(String docid, boolean xml,
62
                                                String myNotificationServer )
61
  public ForceReplicationSystemMetadataHandler(String guid, String myNotificationServer )
63 62
  {
64
    this.guid = docid;
63
    this.guid = guid;
65 64
    // Build a severLists from xml_replication table
66 65
    this.serverLists = new ReplicationServerList();
67 66
   

Also available in: Unified diff