Project

General

Profile

« Previous | Next » 

Revision 6288

Added by Chris Jones over 13 years ago

Use 'synchronization_failed' for the event string in synchronizationFailed(), and add a TODO to use the event enum when the 0.6.3 types are updated.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
82 82
 * service API. Methods implement the various MN* interfaces, and methods common
83 83
 * to both Member Node and Coordinating Node interfaces are found in the
84 84
 * D1NodeService base class.
85
 * 
86
 * Implements:
87
 * MNCore.ping()
88
 * MNCore.getLogRecords()
89
 * MNCore.getObjectStatistics()
90
 * MNCore.getOperationStatistics()
91
 * MNCore.getStatus()
92
 * MNCore.getCapabilities()
93
 * MNRead.get()
94
 * MNRead.getSystemMetadata()
95
 * MNRead.describe()
96
 * MNRead.getChecksum()
97
 * MNRead.listObjects()
98
 * MNRead.synchronizationFailed()
99
 * MNAuthorization.isAuthorized()
100
 * MNAuthorization.setAccessPolicy()
101
 * MNStorage.create()
102
 * MNStorage.update()
103
 * MNStorage.delete()
104
 * MNReplication.replicate()
105
 * 
85 106
 */
86 107
public class MNodeService extends D1NodeService implements MNAuthorization,
87 108
  MNCore, MNRead, MNReplication, MNStorage {
......
689 710
      " failed from " +
690 711
      "CN URL WILL GO HERE." +
691 712
      " Logging the event to the Metacat EventLog as a 'syncFailed' event.");
713
    // TODO: use the event type enum when the SYNCHRONIZATION_FAILED event is added
692 714
    EventLog.getInstance().log("CN URL WILL GO HERE", 
693
        session.getSubject().getValue(), localId, "syncFailed");
715
      session.getSubject().getValue(), localId, "synchronization_failed");
716
    //EventLog.getInstance().log("CN URL WILL GO HERE", 
717
    //  session.getSubject().getValue(), localId, Event.SYNCHRONIZATION_FAILED);
694 718

  
695 719
  }
696 720

  

Also available in: Unified diff