Class MatcherSealsBuilder
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_base.external.seals.MatcherSealsBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
If true, the input alignment is not passed to SEALS even if one is provided.private boolean
If true, the original matcher folder is untouched and the folder is copied.private String
The command to start java in the terminal.The parameters that appear between java [parameters] -jar.private static final org.slf4j.Logger
private File
Path to the JAR of the SEALS client.private long
Time out for the external seals process.private TimeUnit
Time unit for the process time out.private File
Path to a temporary folder. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddJavaRuntimeParameters
(String javaRuntimeParameter) buildFromFolder
(File matcher) Returns all possible MatcherSeals instances for a given file or directory.setDoNotUseInputAlignment
(boolean doNotUseInputAlignment) setFreshMatcherInstance
(boolean freshMatcherInstance) setJavaCommand
(String javaCommand) setJavaRuntimeParameters
(List<String> javaRuntimeParameters) setSealsClientJar
(File sealsClientJar) setTimeout
(long timeout) setTimeoutTimeUnit
(TimeUnit timeoutTimeUnit) setTmpFolder
(File tmpFolder) Sets the tmp folder where e.g.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
sealsClientJar
Path to the JAR of the SEALS client. -
tmpFolder
Path to a temporary folder. Default is set to the systems tmp. -
timeout
private long timeoutTime out for the external seals process. The timeout is applied for each testcase and not track. -
timeoutTimeUnit
Time unit for the process time out. -
javaRuntimeParameters
The parameters that appear between java [parameters] -jar. Example: ("-Xmx25g", "-Xms15g"). -
freshMatcherInstance
private boolean freshMatcherInstanceIf true, the original matcher folder is untouched and the folder is copied. Some matchers require this, because the do not close some resources. -
doNotUseInputAlignment
private boolean doNotUseInputAlignmentIf true, the input alignment is not passed to SEALS even if one is provided. -
javaCommand
The command to start java in the terminal. Typically, this is "java" Seals needs java version 1.8
-
-
Constructor Details
-
MatcherSealsBuilder
public MatcherSealsBuilder()
-
-
Method Details
-
setSealsClientJar
-
setTmpFolder
Sets the tmp folder where e.g. the matcher packages are unzipped etc. Set it in case your default system tmp folder has too less memory. The default isFileUtil.getUserTmpFolder()
which is set to the systems default.- Parameters:
tmpFolder
- the new tmp folder to use.- Returns:
- this builder object
-
setTimeout
-
setTimeoutTimeUnit
-
setJavaRuntimeParameters
-
addJavaRuntimeParameters
-
setFreshMatcherInstance
-
setDoNotUseInputAlignment
-
setJavaCommand
-
build
-
buildFromFolder
Returns all possible MatcherSeals instances for a given file or directory. If it is a file with zip extension, it will unzip it. If it is a directory, it will check if this directory is a matcher. If not, it will inspect the whole directory for matchers.- Parameters:
matcher
- the directoroy or file which represents a matcher or a directory of matchers.- Returns:
- a map of the matcher directory and corresponding matcher name(file name)
-