Log4j 1.1

pl.psnc.expres.remote.helper
Class CorrelationHelper

java.lang.Object
  extended by pl.psnc.expres.remote.helper.CorrelationHelper

public class CorrelationHelper
extends java.lang.Object

CorrelationHelper class - helper for changing XSD classes into java ones

Author:
Mateusz Pabis

Constructor Summary
CorrelationHelper()
           
 
Method Summary
static ChunkSetInfo getChunkSetInfo(ChunkSetInfo xsdInfo)
          Creates a new instance of ChunkSetInfo based on it's XSD representation
static CorrelationJobInfo getCorrelationJobInfo(CorrelationJobInfo xsdInfo)
          Creates a new instance of CorrelationJobInfo based on it's XSD representation
static java.lang.String getDateAndTime(java.lang.String time)
           
static java.lang.String getExperimentHomeDir(java.lang.String path, java.lang.String experimentName, java.lang.String correlationNodeId)
           
static java.lang.String getExpName(java.lang.String experimentName, java.lang.String jobId)
          Returns unified experiment name based on experiment name and job id.
static java.lang.String getFileNameBase(java.lang.String expName, java.lang.String id)
          Returns unified base of the file name used for specified experiment variation and chunk id
static java.lang.String getLocalFromGsiFtp(java.lang.String chunkLocation)
          Converts GSI FTP file location into local one
static java.lang.String getMpiScriptFileName(java.lang.String chunkFileName)
          Returns name of the mpi run script
static java.lang.String getSubmitScriptFileName(java.lang.String chunkFileName)
          Returns name of the job submission script
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrelationHelper

public CorrelationHelper()
Method Detail

getChunkSetInfo

public static ChunkSetInfo getChunkSetInfo(ChunkSetInfo xsdInfo)
Creates a new instance of ChunkSetInfo based on it's XSD representation

Parameters:
xsdInfo - XSD version of ChunkSetInfo ChunkSetInfo
Returns:
ChunkSetInfo

getCorrelationJobInfo

public static CorrelationJobInfo getCorrelationJobInfo(CorrelationJobInfo xsdInfo)
Creates a new instance of CorrelationJobInfo based on it's XSD representation

Parameters:
xsdInfo - XSD version of CorrelationJobInfo;
Returns:
CorrelationJobInfo

getExperimentHomeDir

public static java.lang.String getExperimentHomeDir(java.lang.String path,
                                                    java.lang.String experimentName,
                                                    java.lang.String correlationNodeId)

getExpName

public static java.lang.String getExpName(java.lang.String experimentName,
                                          java.lang.String jobId)
Returns unified experiment name based on experiment name and job id.

Parameters:
experimentName - experiment name
jobId - experiment variation id
Returns:
unified experiment name

getFileNameBase

public static java.lang.String getFileNameBase(java.lang.String expName,
                                               java.lang.String id)
Returns unified base of the file name used for specified experiment variation and chunk id

Parameters:
expName - name of the experiment variation
id - chunk id
Returns:
unified base file name (<expName>-<id>)

getSubmitScriptFileName

public static java.lang.String getSubmitScriptFileName(java.lang.String chunkFileName)
Returns name of the job submission script

Parameters:
chunkFileName - chunk details
Returns:
queue script file name for this chunk

getMpiScriptFileName

public static java.lang.String getMpiScriptFileName(java.lang.String chunkFileName)
Returns name of the mpi run script

Parameters:
chunkFileName - chunk details
Returns:
mpi script file name for this chunk

getLocalFromGsiFtp

public static java.lang.String getLocalFromGsiFtp(java.lang.String chunkLocation)
Converts GSI FTP file location into local one

Parameters:
chunkLocation - gsiftp link
Returns:
local path to the file

getDateAndTime

public static java.lang.String getDateAndTime(java.lang.String time)

Log4j 1.1

Copyright 2007-2008 by VLAB