public boolean executeAlgorithm( String name, ExternalAlgorithmData data, ExternalContext context) { byte rc = s_lib.CExternalEntry_executeAlgorithm( name, JnaExternalAlgorithmData.toNative(data), JnaExternalContext.toNative(context)); return rc == 1; }
public void testFailureReporting(ExternalContext context, String msg) { s_lib.CExternalEntry_testFailureReporting(JnaExternalContext.toNative(context), msg); }
public void testProgressReporting(ExternalContext context, float percentDone, String msg) { s_lib.CExternalEntry_testProgressReporting( JnaExternalContext.toNative(context), percentDone, msg); }
public void testLogging(ExternalContext context, LogLevel level, String msg) { JnaExternalContext jnaContext = (JnaExternalContext) context; s_lib.CExternalEntry_testLogging(JnaExternalContext.toNative(context), level.toString(), msg); }
public void pushEnvironmentProperties(EnvironmentSet envSet, String serializedProperties) { s_lib.CExternalEntry_pushEnvironmentProperties(envSet.toString(), serializedProperties); }
public ExternalDataFile testFindFile(ExternalDataset dataset, String serializedKey) { return JnaExternalDataFile.fromNative( s_lib.CExternalEntry_testFindDataFile(JnaExternalDataset.toNative(dataset), serializedKey)); }
public ExternalAlgorithm getAlgorithm(String name) { return new JnaExternalAlgorithm(s_lib.CExternalEntry_getAlgorithm(name)); }
public void dumpDataset(ExternalDataset dataset) { s_lib.CExternalEntry_dumpDataset(JnaExternalDataset.toNative(dataset)); }
public ExternalDataset cloneDataset(ExternalDataset dataset) { return JnaExternalDataset.fromNative( s_lib.CExternalEntry_cloneDataset(JnaExternalDataset.toNative(dataset))); }
public void deleteLocalTempFiles() { s_lib.CExternalEntry_deleteLocalTempFiles(); }
public Collection<String> getLogFiles() { PointerByReference ptrRef = s_lib.CExternalEntry_getLogFilePaths(); String[] strs = ptrRef.getPointer().getStringArray(0); return Arrays.asList(strs); }
public void testWriteFileAsRandomAccess(ExternalDataset dataset, ExternalDataFile extFile) { s_lib.CExternalEntry_testWriteFileAsRandomAccess( JnaExternalDataset.toNative(dataset), JnaExternalDataFile.toNative(extFile)); }
public ExternalDataFile testReadFileAsRandomAccess( ExternalDataset dataset, String serializedKey) { return JnaExternalDataFile.fromNative( s_lib.CExternalEntry_testReadFileAsRandomAccess( JnaExternalDataset.toNative(dataset), serializedKey)); }
public boolean testIsQueryOnly(ExternalDataset dataset) { JnaExternalDataset jnaDataset = (JnaExternalDataset) dataset; byte result = s_lib.CExternalEntry_testIsQueryOnly(JnaExternalDataset.toNative(dataset)); return result == (byte) 1; }
public void testSendMessage(ExternalContext context, Message msg) { s_lib.CExternalEntry_testSendMessage( JnaExternalContext.toNative(context), JnaExternalContext.toNative(msg)); }
public ExternalAlgorithmData cloneAlgorithmData(ExternalAlgorithmData data) { return JnaExternalAlgorithmData.fromNative( s_lib.CExternalEntry_cloneAlgorithmData(JnaExternalAlgorithmData.toNative(data))); }
public void testAddFile(ExternalDataset dataset, ExternalDataFile extFile, boolean stream) { s_lib.CExternalEntry_testAddDataFile( JnaExternalDataset.toNative(dataset), JnaExternalDataFile.toNative(extFile), (byte) (stream ? 1 : 0)); }
public String testGetFileName(ExternalDataset dataset, String serializedKey) { JnaExternalDataset jnaDataset = (JnaExternalDataset) dataset; return s_lib.CExternalEntry_testGetDataFileName( JnaExternalDataset.toNative(dataset), serializedKey); }