NONRTRIC - ECS Persistent storage of EI Jobs
[nonrtric.git] / enrichment-coordinator-service / src / main / java / org / oransc / enrichment / repository / EiTypes.java
index 265a8e4..6a1b8a1 100644 (file)
@@ -77,14 +77,14 @@ public class EiTypes {
         storeInFile(type);
     }
 
-    public synchronized Collection<EiType> getAllEiTypes() {
+    public synchronized Collection<EiType> getAllInfoTypes() {
         return new Vector<>(allEiTypes.values());
     }
 
     public synchronized EiType getType(String id) throws ServiceException {
         EiType type = allEiTypes.get(id);
         if (type == null) {
-            throw new ServiceException("Could not find EI type: " + id);
+            throw new ServiceException("Information type not found: " + id);
         }
         return type;
     }
@@ -143,6 +143,6 @@ public class EiTypes {
     }
 
     private String getDatabaseDirectory() {
-        return config.getVardataDirectory() + "/eitypes";
+        return config.getVardataDirectory() + "/database/eitypes";
     }
 }