Class CacheClient
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.tool.client.CacheClient
Client to generate ecu.test caches via COM interface.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheClient
(Caches.CacheType type, String filePath, String dbChannel, boolean clear) Instantiates a newCacheClient
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
generateCache
(Launcher launcher, TaskListener listener) Generate cache files of this cache type.getType()
boolean
isClear()
static boolean
isCompatible
(FilePath workspace, Launcher launcher, TaskListener listener) Checks the currently running ecu.test version for compatibility reasons and tests whether the cache module is available.
-
Constructor Details
-
CacheClient
Instantiates a newCacheClient
.- Parameters:
type
- the cache typefilePath
- the database file pathdbChannel
- the database channelclear
- specifies whether to clear all caches
-
-
Method Details
-
getType
-
getFilePath
-
getDbChannel
-
isClear
public boolean isClear() -
generateCache
public void generateCache(Launcher launcher, TaskListener listener) throws IOException, InterruptedException, ETPluginException Generate cache files of this cache type.- Parameters:
launcher
- the launcherlistener
- the listener- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completionETPluginException
- in case of cache operation errors
-
isCompatible
public static boolean isCompatible(FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException Checks the currently running ecu.test version for compatibility reasons and tests whether the cache module is available.- Parameters:
workspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if compatible,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-