269270271272273274275276
queryFrame.fadd("vinci:COMMAND", Constants.COLLECTION_PROCESS_COMPLETE); // make RPC call (no return val) mVinciClient.rpc(queryFrame, mTimeout); } catch (Exception e) { throw new ResourceServiceException(e); } }
288289290291292293294295
// make RPC call VinciFrame resultFrame = mVinciClient.rpc(queryFrame); boolean result = resultFrame.fgetBoolean("Result"); return result; } catch (Exception e) { throw new ResourceServiceException(e); } }
307308309310311312313314
329330331332333334335336
} else { return SUPPORT_XCAS_V1; } } catch (Exception e) { throw new ResourceServiceException(e); } }
158159160161162163164165166167
((ProcessingResourceMetaData)rmd).getOperationalProperties().setMultipleDeploymentAllowed(true); return rmd; } } catch (ResourceInitializationException e) { throw new ResourceServiceException(e); } throw new ResourceServiceException(new Exception("Uima AS getMetaData() call failed.")); }
186187188189190191192193194195
if (tries-- > 0) { UIMAFramework.getLogger().log(Level.INFO, "Retrying callProcess on remote AS service..."); continue; } if (!ignoreErrors) { throw new ResourceServiceException(e); } } } }
243244245246247248249250
} } } } } catch (ResourceProcessException e) { throw new ResourceServiceException(e); } }
185186187188189190191192
vinciSaxParser.parse(resultFrame); ProcessingResourceMetaData metadata = (ProcessingResourceMetaData) saxDeser.getObject(); return metadata; } catch (Exception e) { throw new ResourceServiceException(e); } }
230231232233234235236237
AnalysisEngineManagementImpl mbean = (AnalysisEngineManagementImpl) mOwner .getUimaContextAdmin().getManagementInterface(); mbean.reportAnalysisTime(annotationTime); } } catch (Exception e) { throw new ResourceServiceException(e); } }
253254255256257258259260
// Add Vinci Command, so that the receiving service knows what to do queryFrame.fadd("vinci:COMMAND", Constants.BATCH_PROCESS_COMPLETE); mVinciClient.send(queryFrame); // oneway call } catch (Exception e) { throw new ResourceServiceException(e); } }