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
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
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
}\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
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