Example #1
0
        private void processVmsUnitRecord(VmsUnitRecord vmsUnitRecord, DateTime publicationTime, String vmsUnitTableId)
        {
            String vmsUnitIdentifier = vmsUnitRecord.id;

            if (logWrapper.isTrace())
            {
                logWrapper.Trace("Processing VMS Identifier(" + vmsUnitIdentifier + ")");
            }

            switch (vmsUnitTableId)
            {
            case "NTIS_Matrix_Units":
                MatrixSignalStaticData matrixSignalStaticData = new MatrixSignalStaticData(vmsUnitIdentifier, publicationTime, vmsUnitRecord);
                matrixSignalStaticDataStore.updateData(matrixSignalStaticData);
                break;

            case "NTIS_VMS_Units":
                VMSStaticData vmsStaticData = new VMSStaticData(vmsUnitIdentifier, publicationTime, vmsUnitRecord);
                vmsStaticDataStore.updateData(vmsStaticData);
                break;

            default:
                logWrapper.Error("VMS Unit Table Id not implemented: " + vmsUnitTableId);
                break;
            }
        }
Example #2
0
 public override void updateData(DataObject data)
 {
     lock (this)
     {
         VMSStaticData vmsStaticData       = (VMSStaticData)data;
         String        vmsStaticIdentifier = vmsStaticData.getVMSStaticIdentifier();
         if (dataMap.ContainsKey(vmsStaticIdentifier))
         {
             dataMap.Remove(vmsStaticIdentifier);
             dataMap.Add(vmsStaticIdentifier, vmsStaticData);
         }
         else
         {
             dataMap.Add(vmsStaticIdentifier, vmsStaticData);
         }
     }
 }