Class Cache
- java.lang.Object
-
- com.jacob.com.JacobObject
-
- com.jacob.com.Dispatch
-
- de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
-
- de.tracetronic.jenkins.plugins.ecutest.wrapper.com.Cache
-
- All Implemented Interfaces:
ComCache
,AutoCloseable
public class Cache extends ETComDispatch implements ComCache
COM object giving access to a specific file cache.
-
-
Constructor Summary
Constructors Constructor Description Cache(com.jacob.com.Dispatch dispatch, boolean useTimeout, Caches.CacheType type)
Instantiates a newCache
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Same asclear(boolean)
but with default parameters.void
clear(boolean force)
Remove all cache files of this category.List<String>
getFiles()
Returns all cache files of this category.Caches.CacheType
getType()
void
insert(String filePath)
Same asinsert(String, String)
but without database channel.void
insert(String filePath, String dbChannel)
Insert a database to the cache.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
close, finalize, isAttached, performDirectRequest, performDirectRequest, performRequest, performRequest, performRequest, performRequest, useTimeout
-
Methods inherited from class com.jacob.com.Dispatch
call, call, call, call, callN, callN, callN_CaseSensitive, callSub, callSub, callSub, callSub, callSubN, callSubN, coCreateInstance, get, get, get_CaseSensitive, getActiveInstance, getIDOfName, getIDsOfNames, getIDsOfNames, getProgramId, hasExited, hasExited, invoke, invoke, invoke, invokeSub, invokeSub, invokeSub, invokeSubv, invokeSubv, invokeSubv, invokev, invokev, invokev, invokev, put, put, put_Casesensitive, putRef, putRef, QueryInterface, safeRelease
-
-
-
-
Constructor Detail
-
Cache
public Cache(com.jacob.com.Dispatch dispatch, boolean useTimeout, Caches.CacheType type)
Instantiates a newCache
.This constructor is used instead of a case operation to turn a Dispatch object into a wider object - it must exist in every wrapper class whose instances may be returned from method calls wrapped in VT_DISPATCH Variants.
- Parameters:
dispatch
- the dispatchuseTimeout
- specifies whether to apply timeouttype
- the cache type
-
-
Method Detail
-
getType
public Caches.CacheType getType()
-
insert
public void insert(String filePath) throws ETComException
Same asinsert(String, String)
but without database channel.- Parameters:
filePath
- the file path of the database to be added to the cache- Throws:
ETComException
- in case of a COM exception- See Also:
insert(String, String)
-
insert
public void insert(String filePath, String dbChannel) throws ETComException
Description copied from interface:ComCache
Insert a database to the cache.- Specified by:
insert
in interfaceComCache
- Parameters:
filePath
- the file path of the database to be added to the cachedbChannel
- the optional database channel. Only needed by bus and service databases.- Throws:
ETComException
- in case of a COM exception
-
clear
public void clear() throws ETComException
Same asclear(boolean)
but with default parameters.- Throws:
ETComException
- in case of a COM exception- See Also:
clear(boolean)
-
clear
public void clear(boolean force) throws ETComException
Description copied from interface:ComCache
Remove all cache files of this category.- Specified by:
clear
in interfaceComCache
- Parameters:
force
- specifies wether to close already opend cache files- Throws:
ETComException
- in case of a COM exception
-
getFiles
public List<String> getFiles() throws ETComException
Description copied from interface:ComCache
Returns all cache files of this category.- Specified by:
getFiles
in interfaceComCache
- Returns:
- the list of available cache files
- Throws:
ETComException
- in case of a COM exception
-
-