Class CacheClient
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.tool.client.CacheClient
-
public class CacheClient extends Object
Client to generate ecu.test caches via COM interface.
-
-
Constructor Summary
Constructors Constructor Description CacheClient(Caches.CacheType type, String filePath, String dbChannel, boolean clear)
Instantiates a newCacheClient
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateCache(Launcher launcher, TaskListener listener)
Generate cache files of this cache type.String
getDbChannel()
String
getFilePath()
Caches.CacheType
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 Detail
-
CacheClient
public CacheClient(Caches.CacheType type, String filePath, String dbChannel, boolean clear)
Instantiates a newCacheClient
.- Parameters:
type
- the cache typefilePath
- the database file pathdbChannel
- the database channelclear
- specifies whether to clear all caches
-
-
Method Detail
-
getType
public Caches.CacheType getType()
-
getFilePath
public String getFilePath()
-
getDbChannel
public String 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
-
-