Package es.bsc.dataclay.tool
Class Util
- java.lang.Object
-
- es.bsc.dataclay.tool.Util
-
public class Util extends Object
Class with util methods for Tool operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUtil.DATASETTYPESTypes of datasetsstatic classUtil.ERRCODEError typesstatic classUtil.LANGSEnum of supported Languages
-
Field Summary
Fields Modifier and Type Field Description static StringANSI_BLACKstatic StringANSI_BLUEstatic StringANSI_BOLDstatic StringANSI_CYANstatic StringANSI_GREENstatic StringANSI_PURPLEstatic StringANSI_REDstatic StringANSI_RESETstatic StringANSI_WHITEstatic StringANSI_YELLOWstatic booleaninitialized
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfinishErr(String msg, Util.ERRCODE exitcode)Finalize dataClay connection and prints error messagestatic voidfinishOut(String msg)Finalize dataClay connection and prints messagestatic voidinit()Init dataClay connection
-
-
-
Field Detail
-
ANSI_RESET
public static final String ANSI_RESET
- See Also:
- Constant Field Values
-
ANSI_BLACK
public static final String ANSI_BLACK
- See Also:
- Constant Field Values
-
ANSI_RED
public static final String ANSI_RED
- See Also:
- Constant Field Values
-
ANSI_GREEN
public static final String ANSI_GREEN
- See Also:
- Constant Field Values
-
ANSI_YELLOW
public static final String ANSI_YELLOW
- See Also:
- Constant Field Values
-
ANSI_BLUE
public static final String ANSI_BLUE
- See Also:
- Constant Field Values
-
ANSI_PURPLE
public static final String ANSI_PURPLE
- See Also:
- Constant Field Values
-
ANSI_CYAN
public static final String ANSI_CYAN
- See Also:
- Constant Field Values
-
ANSI_WHITE
public static final String ANSI_WHITE
- See Also:
- Constant Field Values
-
ANSI_BOLD
public static final String ANSI_BOLD
- See Also:
- Constant Field Values
-
initialized
public static boolean initialized
-
-
Method Detail
-
init
public static void init() throws ExceptionInit dataClay connection- Throws:
Exception- if an unexpected error occurs
-
finishOut
public static void finishOut(String msg) throws Exception
Finalize dataClay connection and prints message- Parameters:
msg- message to be printed- Throws:
Exception- if an unexpected error occurs
-
finishErr
public static void finishErr(String msg, Util.ERRCODE exitcode) throws Exception
Finalize dataClay connection and prints error message- Parameters:
msg- error messageexitcode- error code- Throws:
Exception- if an unexpected error occurs
-
-