List of usage examples for java.util.logging Level FINEST
Level FINEST
To view the source code for java.util.logging Level FINEST.
Click Source Link
From source file:edu.uci.ics.hyracks.api.client.impl.JobActivityGraphBuilder.java
@Override public void addTargetEdge(int operatorOutputIndex, IActivity task, int taskOutputIndex) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Adding target edge: " + task.getActivityId() + ":" + operatorOutputIndex + " -> " + task.getActivityId() + ":" + taskOutputIndex); }/* w ww. j a v a2s.c o m*/ IOperatorDescriptor op = activityOperatorMap.get(task.getActivityId()); IConnectorDescriptor conn = jobSpec.getOutputConnectorDescriptor(op, operatorOutputIndex); insertIntoIndexedMap(jag.getActivityOutputMap(), task.getActivityId(), taskOutputIndex, conn); connectorProducerMap.put(conn.getConnectorId(), Pair.of(task, taskOutputIndex)); }
From source file:com.wolvencraft.yasp.db.ScriptRunner.java
/** * Executes a database script//w ww. j av a 2 s.co m * * @param reader Reader * @throws RuntimeSQLException thrown if an error occurs while executing a line */ public void runScript(Reader reader) throws RuntimeSQLException { Message.log(Level.FINER, "Executing a database script"); try { StringBuilder command = new StringBuilder(); try { BufferedReader lineReader = new BufferedReader(reader); int i = 0; String line = ""; String dbName = LocalConfiguration.DBName.toString(); String dbPrefix = LocalConfiguration.DBPrefix.toString(); boolean debug = LocalConfiguration.Debug.toBoolean(); while ((line = lineReader.readLine()) != null) { line = StringUtils.replace(line, "$dbname", dbName); line = StringUtils.replace(line, "$prefix_", dbPrefix); command = this.handleLine(command, line); i++; if (i % 50 == 0 && debug) Message.log(Level.FINEST, "Executing line " + i); } Message.log(Level.FINER, "Executed " + i + " lines total"); this.commitConnection(); this.checkForMissingLineTerminator(command); } catch (Exception e) { String message = "Error executing: " + command + ". Cause: " + e; throw new RuntimeSQLException(message, e); } } finally { this.rollbackConnection(); } }
From source file:org.apache.cxf.dosgi.topologymanager.ListenerHookImpl.java
private static boolean isClassExcluded(String className) { if (className == null) { return true; }/* ww w . j a v a 2 s .c o m*/ for (String p : SYSTEM_PACKAGES) { if (className.startsWith(p)) { LOG.log(Level.FINEST, "Lookup for {0} is ignored", className); return true; } } return false; }
From source file:com.esri.gpt.agp.client.AgpClient.java
/** * Executes a request expecting a JSON response. * @param url the URL//from w ww .j a v a 2 s . c o m * @param requestHeader optional request header properties * @param contentProvider the request body content provider * @return the JSON response object * @throws Exception is an exception occurs */ public JSONObject executeJsonRequest(String url, AgpProperties requestHeader, ContentProvider contentProvider) throws Exception { LOGGER.finest("Sending URL: " + url); StringHandler handler = new StringHandler(); this.executeRequest(url, requestHeader, contentProvider, handler); String sResponse = handler.getContent(); LOGGER.finest("Response for URL: " + url + "\n" + sResponse); JSONObject jsoResponse = null; try { if (sResponse == null) { LOGGER.finest("Response for URL: " + url + "\nnull response"); } else if (sResponse.length() == 0) { LOGGER.finest("Response for URL: " + url + "\nempty response"); } else { jsoResponse = new JSONObject(sResponse); if (jsoResponse.has("error") && (!jsoResponse.isNull("error"))) { AgpError agpError = new AgpError(); agpError.parse(jsoResponse); throw new AgpException(agpError); } } } catch (AgpException e) { LOGGER.log(Level.FINEST, "Request failed.", e); throw e; } catch (Throwable t) { LOGGER.log(Level.FINEST, "Request failed.", t); AgpError agpError = new AgpError(); agpError.setMessage(t.toString()); throw new AgpException(agpError); } return jsoResponse; }
From source file:gov.vha.isaac.ochre.impl.sememe.DynamicSememeUsageDescription.java
public static DynamicSememeUsageDescription read(int assemblageNidOrSequence) { //TODO (artf231860) [REFEX] maybe? implement a mechanism to allow the cache to be updated... for now //cache is uneditable, and may be wrong, if the user changes the definition of a dynamic sememe. Perhaps //implement a callback to clear the cache when we know a change of a certain type happened instead? int sequence = Get.identifierService().getConceptSequence(assemblageNidOrSequence); DynamicSememeUsageDescription temp = cache_.get(sequence); if (temp == null) { logger.log(Level.FINEST, "Cache miss on DynamicSememeUsageDescription Cache"); temp = new DynamicSememeUsageDescription(sequence); cache_.put(sequence, temp);//from www.java 2 s .co m } return temp; }
From source file:org.apache.reef.io.network.NetworkConnectionServiceTest.java
/** * NetworkConnectionService messaging test. *//*from w ww .ja v a 2 s . co m*/ @Test public void testMessagingNetworkConnectionService() throws Exception { LOG.log(Level.FINEST, name.getMethodName()); runMessagingNetworkConnectionService(new StringCodec()); }
From source file:name.richardson.james.bukkit.utilities.permissions.BukkitPermissionManager.java
private Permission getParentPermission(final String permissionName) { final List<String> nodes = new LinkedList<String>(Arrays.asList(permissionName.split("\\."))); if (nodes.size() > 1) { nodes.remove(nodes.size() - 1);/*from w w w . jav a2s .c om*/ final String parentNode = StringUtils.join(nodes, "."); logger.log(Level.FINEST, "Resolving parent permission as " + parentNode); return pluginManager.getPermission(parentNode); } else { return null; } }
From source file:org.hawkular.apm.server.jms.RetryCapableMDB.java
@Override public void onMessage(Message message) { if (log.isLoggable(Level.FINEST)) { log.finest("Message received=" + message); }//from www . j a v a 2 s. c o m try { String tenantId = message.getStringProperty("tenant"); int retryCount; if (message.propertyExists("retryCount")) { retryCount = message.getIntProperty("retryCount"); } else { retryCount = maxRetryCount; } String data = ((TextMessage) message).getText(); List<S> items = mapper.readValue(data, getTypeReference()); process(tenantId, items, retryCount); } catch (Exception e) { if (processor.isReportRetryExpirationAsWarning()) { serverMsgLogger.warnMaxRetryReached(e); } else if (log.isLoggable(Level.FINEST)) { log.log(Level.FINEST, "Maximum retry reached. Last exception to occur ....", e); } } }
From source file:de.ingrid.interfaces.csw.search.impl.LuceneSearcher.java
@Override public void start() throws Exception { if (this.isStarted) { this.stop(); }/*from w ww. ja v a2 s .c om*/ // overwrite indexer path with configuration if (configurationProvider != null) { this.indexPath = configurationProvider.getIndexPath(); } log.info("Start search index: " + this.indexPath); // CREATE new analyzer to guarantee that analyzer not closed ! Analyzer myAnalyzer = luceneTools.createAnalyzer(); lis = new LuceneIndexSearcher(this.indexPath, "", myAnalyzer); lis.setCacheEnabled(ApplicationProperties.getBoolean(ConfigurationKeys.CACHE_ENABLE, false)); lis.setLogLevel(log.isDebugEnabled() ? Level.FINEST : (log.isInfoEnabled() ? Level.INFO : (log.isWarnEnabled() ? Level.WARNING : Level.SEVERE))); this.isStarted = true; }
From source file:org.apache.cxf.dosgi.topologymanager.ListenerHookImpl.java
public void removed(Collection listeners) { LOG.log(Level.FINE, "ListenerHookImpl: removed: {0}", listeners); for (Object li : listeners) { ListenerInfo listenerInfo = (ListenerInfo) li; LOG.log(Level.FINEST, "ListenerHookImpl: filter = {0}", listenerInfo.getFilter()); // TODO: determine if service was handled ? tm.removeServiceInterest(listenerInfo.getFilter()); }/* w ww . j a v a 2 s . c om*/ }