public class ProvKAREntryHandler extends java.lang.Object implements KAREntryHandler
Modifier and Type | Class and Description |
---|---|
static class |
ProvKAREntryHandler.Factory
A factory that creates a ProvKAREntryHandler object.
|
Constructor and Description |
---|
ProvKAREntryHandler()
Construct a new ProvKAREntryHandler.
|
Modifier and Type | Method and Description |
---|---|
CacheObject |
cache(KARFile karFile,
KAREntry entry)
Does nothing.
|
java.lang.String |
getTypeName()
Returns null since this is only used for 1.0 KARs.
|
boolean |
handlesType(java.lang.String typeName)
Get the KAR entry type we handle.
|
void |
initialize()
Does nothing.
|
boolean |
open(KARFile karFile,
KAREntry entry,
TableauFrame tableauFrame)
Open a KAR entry for a PROVProvenance.
|
java.util.Hashtable<KAREntry,java.io.InputStream> |
save(java.util.Vector<KeplerLSID> lsids,
KeplerLSID karLsid,
TableauFrame tableauFrame)
Serialize a workflow execution to a KAR entry.
|
static boolean |
setSave(boolean save)
Set if save() should write PROV to the KAR.
|
public ProvKAREntryHandler()
public java.lang.String getTypeName()
getTypeName
in interface KAREntryHandler
public boolean handlesType(java.lang.String typeName)
handlesType
in interface KAREntryHandler
public void initialize()
initialize
in interface KAREntryHandler
public CacheObject cache(KARFile karFile, KAREntry entry) throws java.lang.Exception
cache
in interface KAREntryHandler
java.lang.Exception
public boolean open(KARFile karFile, KAREntry entry, TableauFrame tableauFrame) throws java.lang.Exception
open
in interface KAREntryHandler
java.lang.Exception
public java.util.Hashtable<KAREntry,java.io.InputStream> save(java.util.Vector<KeplerLSID> lsids, KeplerLSID karLsid, TableauFrame tableauFrame) throws java.lang.Exception
save
in interface KAREntryHandler
karLsid
- the lsid of the containing KARjava.lang.Exception
public static boolean setSave(boolean save)