public class BwaMemIndexCache
extends java.lang.Object
BwaMemIndex
instances.Constructor and Description |
---|
BwaMemIndexCache() |
Modifier and Type | Method and Description |
---|---|
static void |
closeAllDistributedInstances(org.apache.spark.api.java.JavaSparkContext ctx)
Closes all instances in all the VMs involved in the spark context provided.
|
static void |
closeInstance(org.broadinstitute.hellbender.utils.bwa.BwaMemIndex instance)
Closes an index instance.
|
static void |
closeInstance(java.lang.String indexImageFile)
Closes an index instance in the cache given its index file name.
|
static void |
closeInstances()
Closes all instances in the VM.
|
static org.broadinstitute.hellbender.utils.bwa.BwaMemIndex |
getInstance(java.lang.String indexImageFile)
Returns a
BwaMemIndex instance that corresponds to given index image file. |
public static org.broadinstitute.hellbender.utils.bwa.BwaMemIndex getInstance(java.lang.String indexImageFile)
BwaMemIndex
instance that corresponds to given index image file.indexImageFile
- the target image file.null
.public static void closeInstance(java.lang.String indexImageFile)
Notice that you need to pass in exactly the same file name that was used when invoking getInstance(java.lang.String)
.
An attempt to close a missing instance, won't have any effect.
indexImageFile
- the index file name of the instance to close.public static void closeInstance(org.broadinstitute.hellbender.utils.bwa.BwaMemIndex instance)
An attempt to close a instance that is not present in the cache, won't have any effect. Thus if the input instance is not part of the cache an is not closed, will remind unclosed.
instance
- the instance ot close.public static void closeInstances()
public static void closeAllDistributedInstances(org.apache.spark.api.java.JavaSparkContext ctx)
ctx
- the spark context.