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 class
Util.DATASETTYPES
Types of datasetsstatic class
Util.ERRCODE
Error typesstatic class
Util.LANGS
Enum of supported Languages
-
Field Summary
Fields Modifier and Type Field Description static String
ANSI_BLACK
static String
ANSI_BLUE
static String
ANSI_BOLD
static String
ANSI_CYAN
static String
ANSI_GREEN
static String
ANSI_PURPLE
static String
ANSI_RED
static String
ANSI_RESET
static String
ANSI_WHITE
static String
ANSI_YELLOW
static boolean
initialized
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
finishErr(String msg, Util.ERRCODE exitcode)
Finalize dataClay connection and prints error messagestatic void
finishOut(String msg)
Finalize dataClay connection and prints messagestatic void
init()
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 Exception
Init 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
-
-