Refine search
public void onNewSamplingInterval() { if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.INFO)) { UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(), "run", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_marker_INFO", new Object[] {}); } }
/** * Maybe log severe exception. * * @param e the e */ private void maybeLogSevereException(Throwable e) { if (UIMAFramework.getLogger().isLoggable(Level.SEVERE)) { String m = "Thread: " + Thread.currentThread().getName() + ", message: " + e.getLocalizedMessage(); UIMAFramework.getLogger().log(Level.SEVERE, m, e); } }
protected void acquireCpcReadySemaphore() { try { // Acquire cpcReady semaphore to block sending CPC request until // ALL outstanding CASes are received. cpcReadySemaphore.acquire(); } catch (InterruptedException e) { if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.WARNING)) { UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, CLASS_NAME.getName(), "collectionProcessingComplete", JmsConstants.JMS_LOG_RESOURCE_BUNDLE, "UIMAJMS_client_interrupted_while_acquiring_cpcReadySemaphore__WARNING", new Object[] {}); } } }
/** * Maybe log severe. * * @param msgBundleId the msg bundle id */ private void maybeLogSevere(String msgBundleId) { if (UIMAFramework.getLogger().isLoggable(Level.SEVERE)) { logCPM(Level.SEVERE, msgBundleId, null); } }
/** * Stops the checkpoint thread. */ public void stop() { stop = true; // isRunning = false; if (UIMAFramework.getLogger().isLoggable(Level.INFO)) { UIMAFramework.getLogger(this.getClass()).logrb(Level.INFO, this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_stop_checkpoint_thread__INFO", new Object[] { Thread.currentThread().getName() }); } }
/** * Maybe log finest. * * @param msgBundleId the msg bundle id * @param arg1 the arg 1 */ // 1 arg private void maybeLogFinest(String msgBundleId, String arg1) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { logFinest(msgBundleId, arg1); } }
private boolean isInitialized() { if (!jmxAvailable || platformMBeanServer == null) // means we couldn't find the required classes // and methods { UIMAFramework.getLogger().logrb(Level.CONFIG, JmxManager.class.getName(), "isInitialized", LOG_RESOURCE_BUNDLE, "UIMA_JMX_platform_mbean_server_not_available__CONFIG"); return false; } return true; }
/** * Called when the initialization is completed. * * @see org.apache.uima.collection.processing.StatusCallbackListener#initializationComplete() */ public void initializationComplete() { if (UIMAFramework.getLogger().isLoggable(Level.CONFIG)) { UIMAFramework.getLogger(this.getClass()).logrb(Level.CONFIG, this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_cpm_init_complete__CONFIG", new Object[] { Thread.currentThread().getName() }); } }
/** * Maybe log severe. * * @param msgBundleId the msg bundle id * @param arg1 the arg 1 * @param arg2 the arg 2 */ private void maybeLogSevere(String msgBundleId, String arg1, String arg2) { if (UIMAFramework.getLogger().isLoggable(Level.SEVERE)) { logSevere(msgBundleId, arg1, arg2); } }
private Map<StringPair, ResourceManager> createRMmap(StringPair sp, ResourceManager rm) { Map<StringPair, ResourceManager> result = new HashMap<StringPair, ResourceManager>(4); result.put(sp, rm); UIMAFramework.getLogger(this.getClass()).logrb(Level.CONFIG, this.getClass().getName(), "createRMmap", LOG_RESOURCE_BUNDLE, "UIMA_pear_runtime_create_RM_map", new Object[] { sp.classPath, sp.dataPath }); return result; }
/** * Called when the collection processing is completed. * * @see org.apache.uima.collection.processing.StatusCallbackListener#collectionProcessComplete() */ public synchronized void collectionProcessComplete() { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_method_ping__FINEST", new Object[] { Thread.currentThread().getName() }); } }
/** * Maybe log finest. * * @param msgBundleId the msg bundle id * @param casCache the cas cache */ private void maybeLogFinest(String msgBundleId, CAS [] casCache) { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { logFinest(msgBundleId, String.valueOf(casCache == null)); } }
public void onBeforeProcessCAS(UimaASProcessStatus status, String nodeIP, String pid) { for (int i = 0; listeners != null && i < listeners.size(); i++) { UimaAsBaseCallbackListener statCL = (UimaAsBaseCallbackListener) listeners.get(i); try { statCL.onBeforeProcessCAS(status, nodeIP, pid); } catch( Throwable t) { UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, getClass().getName(), "onBeforeProcessCAS", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_exception__WARNING", t); } } }
/** * Called when the CPM is paused. * * @see org.apache.uima.collection.processing.StatusCallbackListener#paused() */ public synchronized void paused() { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_paused__FINEST", new Object[] { Thread.currentThread().getName() }); } }
/** * Maybe log memory finest. */ private void maybeLogMemoryFinest() { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { logMemoryFinest(); } }
public void onBeforeMessageSend(UimaASProcessStatus status) { try { for (int i = 0; listeners != null && i < listeners.size(); i++) { UimaAsBaseCallbackListener statCL = (UimaAsBaseCallbackListener) listeners.get(i); statCL.onBeforeMessageSend(status); } } catch( Throwable t) { UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, getClass().getName(), "onBeforeMessageSend", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_exception__WARNING", t); } }
/** * Called when the CPM is resumed after a pause. * * @see org.apache.uima.collection.processing.StatusCallbackListener#resumed() */ public synchronized void resumed() { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(), "process", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, "UIMA_CPM_resumed__FINEST", new Object[] { Thread.currentThread().getName() }); } }
@Override protected void finalize() throws Throwable { if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) { UIMAFramework.getLogger(this.getClass()).log(Level.FINEST, "*************Finalizing VNS***************"); } try { shutdown(); } finally { super.finalize(); } }