Nexio restore config bug
authorVásáry Dániel <vasary@elgekko.net>
Mon, 25 Mar 2024 11:14:18 +0000 (12:14 +0100)
committerVásáry Dániel <vasary@elgekko.net>
Mon, 25 Mar 2024 11:14:18 +0000 (12:14 +0100)
server/user.jobengine.executors/src/user/jobengine/server/steps/TSMExtendedRetrieveStep.java

index 8f81dde87e955b8cf36d32432b0840c064534345..ade2d941152644ede2b5ce1e5ffd51e3b99126a7 100644 (file)
@@ -12,8 +12,9 @@ import user.jobengine.server.IJobRuntime;
 import user.jobengine.server.steps.shared.EscortFiles;\r
 \r
 public class TSMExtendedRetrieveStep extends TSMRestoreStep {\r
-       private static String NEXIO_HOST = System.getProperty("nexio.host");\r
-       //      private static String NEXIO_HOST = SystemConfiguration.getInstance().value("services.nexio.host");\r
+       private static String NEXIO_HOST = "10.10.1.55";\r
+       // private static String NEXIO_HOST =\r
+       // SystemConfiguration.getInstance().value("services.nexio.host");\r
        private static final Logger logger = LogManager.getLogger();\r
 \r
        private boolean useNexioTarget;\r
@@ -22,7 +23,8 @@ public class TSMExtendedRetrieveStep extends TSMRestoreStep {
        private String nexioAgency;\r
 \r
        @Override\r
-       protected void afterRestore(StoreUri targetUri, String targetPath, int killDateDays, String targetFileName) throws Exception {\r
+       protected void afterRestore(StoreUri targetUri, String targetPath, int killDateDays, String targetFileName)\r
+                       throws Exception {\r
                if (useNexioTarget) {\r
                        EscortFiles.setNEXIOKillDate(killDateDays, targetFileName, nexioAgency, targetUri);\r
                } else {\r
@@ -37,7 +39,8 @@ public class TSMExtendedRetrieveStep extends TSMRestoreStep {
                        newTargetName = targetName.substring(0, targetName.lastIndexOf('.'));\r
                if (useNexioTarget)\r
                        if (targetURI.fileExists(newTargetName + ".mxf"))\r
-                               throw new Exception(String.format("%s-The newly created file name is existed.", getClass().getSimpleName()));\r
+                               throw new Exception(\r
+                                               String.format("%s-The newly created file name is existed.", getClass().getSimpleName()));\r
        }\r
 \r
        @Override\r
@@ -64,9 +67,10 @@ public class TSMExtendedRetrieveStep extends TSMRestoreStep {
        }\r
 \r
        @StepEntry\r
-       public Object[] execute(ArchivedMedia archivedMedia, String targetPath, String targetNamePattern, String successRecipient, int killDateDays,\r
-                       String localRetrievePath, String globalRetrievePath, boolean useNexioTarget, String nexioAgency, int nexioPort, String nexioUserName,\r
-                       String nexioPassword, IJobEngine jobEngine, IJobRuntime jobRuntime) throws Exception {\r
+       public Object[] execute(ArchivedMedia archivedMedia, String targetPath, String targetNamePattern,\r
+                       String successRecipient, int killDateDays, String localRetrievePath, String globalRetrievePath,\r
+                       boolean useNexioTarget, String nexioAgency, int nexioPort, String nexioUserName, String nexioPassword,\r
+                       IJobEngine jobEngine, IJobRuntime jobRuntime) throws Exception {\r
                this.useNexioTarget = useNexioTarget;\r
                this.nexioAgency = nexioAgency;\r
                this.nexioPort = nexioPort;\r
@@ -76,17 +80,19 @@ public class TSMExtendedRetrieveStep extends TSMRestoreStep {
                        throw new NullPointerException("System is not configured properly, 'nexioPort' input parameter missing.");\r
                }\r
                if (nexioUserName == null) {\r
-                       throw new NullPointerException("System is not configured properly, 'nexioUserName' input parameter missing.");\r
+                       throw new NullPointerException(\r
+                                       "System is not configured properly, 'nexioUserName' input parameter missing.");\r
                }\r
                if (nexioPassword == null) {\r
-                       throw new NullPointerException("System is not configured properly, 'nexioPassword' input parameter missing.");\r
+                       throw new NullPointerException(\r
+                                       "System is not configured properly, 'nexioPassword' input parameter missing.");\r
                }\r
                if (nexioAgency == null) {\r
                        throw new NullPointerException("System is not configured properly, 'nexioAgency' input parameter missing.");\r
                }\r
 \r
-               return super.execute(archivedMedia.getMedia(), targetPath, targetNamePattern, successRecipient, killDateDays, localRetrievePath, globalRetrievePath,\r
-                               jobEngine, jobRuntime);\r
+               return super.execute(archivedMedia.getMedia(), targetPath, targetNamePattern, successRecipient, killDateDays,\r
+                               localRetrievePath, globalRetrievePath, jobEngine, jobRuntime);\r
        }\r
 \r
 }\r