Package es.bsc.dataclay.commonruntime
Class RuntimeUtils
- java.lang.Object
-
- es.bsc.dataclay.commonruntime.RuntimeUtils
-
public final class RuntimeUtils extends Object
Utility class for client library.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkConnection(DataServiceAPI dataservice)
Check if connection to DataService is OKstatic void
checkConnection(LogicModuleAPI logicModule)
Check if connection to LogicModule is OKstatic void
checkNullParams(String[] paramNames, Object[] params)
Check if some parameter is null and throw exception if so.static void
checkSession(SessionID sessionID)
Check if session ID is OKstatic Reference<DataClayObject>
newReference(DataClayObject dcObject)
Get new reference
-
-
-
Method Detail
-
checkNullParams
public static void checkNullParams(String[] paramNames, Object[] params)
Check if some parameter is null and throw exception if so.- Parameters:
paramNames
- Names of parametersparams
- Parameters to check.
-
checkConnection
public static void checkConnection(LogicModuleAPI logicModule)
Check if connection to LogicModule is OK- Parameters:
logicModule
- API to connect to
-
checkConnection
public static void checkConnection(DataServiceAPI dataservice)
Check if connection to DataService is OK- Parameters:
dataservice
- DataService API to connect to
-
checkSession
public static void checkSession(SessionID sessionID)
Check if session ID is OK- Parameters:
sessionID
- ID of session
-
newReference
public static Reference<DataClayObject> newReference(DataClayObject dcObject)
Get new reference- Parameters:
dcObject
- DataClayObject to get reference from.- Returns:
- Reference.
-
-