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:fungus.HyphaLink.java
public MycoNode getParent() { if (myNode.getHyphaData().isBiomass()) { log.log(Level.FINEST, myNode + " QUERIED FOR PARENT; IS BIOMASS", myNode); MycoList h = getHyphae();//from www.j a v a2 s . c o m if (h.size() > 0) { if (h.size() > 1) { // FIXME: Handle multiple parents better!!! log.log(Level.FINE, myNode + " MULTIPLE HYPHAE FOR BIOMASS NODE!", myNode); } return h.get(0); } } return null; }
From source file:org.apache.myfaces.ov2021.application.ApplicationImpl.java
ApplicationImpl(final RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); }// w w w . ja va2s.c o m // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new ViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new StateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _resourceHandler = new ResourceHandlerImpl(); _runtimeConfig = runtimeConfig; if (log.isLoggable(Level.FINEST)) { log.finest("New Application instance created"); } String configParam = getFaceContext().getExternalContext() .getInitParameter(DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME); if (configParam != null && configParam.toLowerCase().equals("true")) { _dateTimeConverterDefaultTimeZoneIsSystemTimeZone = true; } }
From source file:di.uniba.it.wsd.RevisedLesk.java
private Map<String, Float> buildGlossBag(BabelSynset synset) throws IOException { Map<BabelSynset, RelatedSynset> relatedMap = new HashMap<>(); relatedMap.put(synset, new RelatedSynset(synset, 0)); for (int i = 0; i < maxDepth; i++) { getRelatedSynsets(relatedMap, i + 1); }//from w w w . java 2 s. c om Iterator<BabelSynset> itRel = relatedMap.keySet().iterator(); Map<String, Float> bag = new HashMap<>(); while (itRel.hasNext()) { BabelSynset relSynset = itRel.next(); RelatedSynset rs = relatedMap.get(relSynset); List<BabelGloss> glosses = relSynset.getGlosses(language); List<String> glossesToProcess = new ArrayList<>(); execStats.incrementTotalGloss(); if (glosses.isEmpty()) { logger.log(Level.FINEST, "No gloss for synset: {0}", relSynset); execStats.incrementNoGloss(); List<BabelSense> senses = relSynset.getSenses(this.language); StringBuilder sb = new StringBuilder(); for (BabelSense bs : senses) { sb.append(bs.getLemma().replace("_", " ")).append(" "); } glossesToProcess.add(sb.toString()); } else { for (BabelGloss gloss : glosses) { glossesToProcess.add(gloss.getGloss()); } } float df = maxDepth + 1 - rs.getDistance(); for (String gloss : glossesToProcess) { Map<String, Float> gbag = buildBag(gloss); Iterator<String> iterator = gbag.keySet().iterator(); while (iterator.hasNext()) { String term = iterator.next(); Float c = bag.get(term); if (c == null) { bag.put(term, df * gbag.get(term)); } else { bag.put(term, c + df * gbag.get(term)); } } } } return bag; }
From source file:org.apache.myfaces.application.ApplicationImpl.java
ApplicationImpl(final RuntimeConfig runtimeConfig) { if (runtimeConfig == null) { throw new IllegalArgumentException("runtimeConfig must mot be null"); }//ww w . j a v a 2 s .c o m // set default implementation in constructor // pragmatic approach, no syncronizing will be needed in get methods _viewHandler = new ViewHandlerImpl(); _navigationHandler = new NavigationHandlerImpl(); _actionListener = new ActionListenerImpl(); _defaultRenderKitId = "HTML_BASIC"; _stateManager = new StateManagerImpl(); _elContextListeners = new ArrayList<ELContextListener>(); _resourceHandler = new ResourceHandlerImpl(); _flowHandler = new FlowHandlerImpl(); _runtimeConfig = runtimeConfig; if (log.isLoggable(Level.FINEST)) { log.finest("New Application instance created"); } String configParam = getFaceContext().getExternalContext() .getInitParameter(Converter.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME); if (configParam != null && configParam.toLowerCase().equals("true")) { _dateTimeConverterDefaultTimeZoneIsSystemTimeZone = true; } if (ExternalSpecifications.isCDIAvailable(getFaceContext().getExternalContext())) { _externalArtifactResolver = (ExternalArtifactResolver) ClassUtils .newInstance("org.apache.myfaces.cdi.util.CDIExternalArtifactResolver"); } else { _externalArtifactResolver = null; } }
From source file:nz.co.gregs.dbvolution.DBDatabase.java
/** * Retrieve the Connection used internally. * * <p>// w w w . ja va 2 s .co m * However you will not need a Connection to use DBvolution. Your path lies * elsewhere. * * @return the Connection to be used. * @throws java.sql.SQLException interacts with the database layer * @throws UnableToCreateDatabaseConnectionException thrown when there is an * issue connecting * @throws UnableToFindJDBCDriver may be thrown if the JDBCDriver is not on * the class path. DBvolution includes several JDBCDrivers already but Oracle * and MS SQLserver, in particular, need to be added to the path if you wish * to work with those databases. */ public Connection getConnection() throws UnableToCreateDatabaseConnectionException, UnableToFindJDBCDriver, SQLException { if (isInATransaction && !this.transactionConnection.isClosed()) { return this.transactionConnection; } Connection conn = null; while (conn == null) { if (supportsPooledConnections()) { synchronized (freeConnections) { if (freeConnections.isEmpty() || getConnectionList(freeConnections).isEmpty()) { conn = getRawConnection(); } else { conn = getConnectionList(freeConnections).get(0); } } } else { conn = getRawConnection(); } try { if (conn.isClosed()) { discardConnection(conn); conn = null; } } catch (SQLException ex) { Logger.getLogger(DBDatabase.class.getName()).log(Level.FINEST, null, ex); } if (connectionUsedForPersistentConnection(conn)) { conn = null; } } usedConnection(conn); return conn; }
From source file:org.gameontext.map.auth.PlayerClient.java
@Override public void handleEvent(String key, JsonNode eventData) { Log.log(Level.FINEST, this, "Dropping cached key for {0}", key); playerSecrets.remove(key);//from w ww . j a v a 2s . c om }
From source file:com.archivas.clienttools.arcutils.utils.net.GetCertsX509TrustManager.java
public void checkServerTrusted1(X509Certificate[] certificates, String authType) throws CertificateException { SSLCertChain certChain = new SSLCertChain(authType, certificates); // Try the in-memory, session only trust manager first try {// w ww. j a v a2 s. com LOG.log(Level.FINEST, "About to have MemoryTrustManager Test cert: " + certChain); memoryTrustManager.checkServerTrusted(certificates, authType); LOG.log(Level.FINEST, "MemoryTrustManager Approves of cert: " + certChain); if (sslExceptionCallback != null) { sslExceptionCallback.validCertCallback(profile, certChain); } return; } catch (Exception certException) { // Log it and fall through to the next trust mgr. LOG.log(Level.FINE, "Error checking Server Trust via MemoryTrustManager: " + certException.getMessage()); LOG.log(Level.FINER, "Error checking Server Trust via MemoryTrustManager", certException); } // Try the persisted to disk trust manager next try { LOG.log(Level.FINEST, "About to have PersistedTrustManager Test cert: " + certChain); persistedTrustManager.checkServerTrusted(certificates, authType); LOG.log(Level.FINEST, "PersistedTrustManager Approves of cert: " + certChain); if (sslExceptionCallback != null) { sslExceptionCallback.validCertCallback(profile, certChain); } return; } catch (Exception certException) { // Log it and fall through to the next trust mgr. LOG.log(Level.FINE, "Error checking Server Trust via PersistedTrustManager: " + certException.getMessage()); LOG.log(Level.FINER, "Error checking Server Trust via PersistedTrustManager", certException); } // Try the default JDK trust manager last. (This has the default JDK root certs + any the // user has added) try { LOG.log(Level.FINEST, "About to have standardTrustManager Test cert: " + certChain); standardTrustManager.checkServerTrusted(certificates, authType); LOG.log(Level.FINEST, "standardTrustManager Approves of cert: " + certChain); /* * if ((certificates != null) && (certificates.length == 1)) { * certificates[0].checkValidity(); } else { * standardTrustManager.checkServerTrusted(certificates,authType); } */ if (sslExceptionCallback != null) { sslExceptionCallback.validCertCallback(profile, certChain); } } catch (CertificateException certException) { LOG.log(Level.FINE, "Error checking Server Trust via standardTrustManager: " + certException.getMessage()); LOG.log(Level.FINER, "Error checking Server Trust via standardTrustManager", certException); handleCertFailureCallback(certChain, certException); } }
From source file:net.sf.dsig.DSApplet.java
@Override public void init() { super.init(); // StrategyFactory service loader ----------------------------------- // strategyFactory = ServiceLoader.load(StrategyFactory.class).iterator().next(); // Environment initialization --------------------------------------- // initProfiler.start("Environment init"); Environment.getSingleton().setApplet(this); Environment.getSingleton().setProperties(UserHomeSettingsParser.parse()); // Set the default java.logging logger for FINEST logging on // gr.ageorgiadis package when debug environmental parameter is set initProfiler.start("Logging init"); if (Boolean.parseBoolean(Environment.getSingleton().getValue("debug"))) { System.out.println("\n*** Debug log enabled ***"); Logger.getLogger("").getHandlers()[0].setLevel(Level.FINEST); Logger.getLogger("").setLevel(Level.INFO); Logger.getLogger("net.sf.dsig").setLevel(Level.FINEST); }//from w w w.j ava 2 s. c o m // Applet initialization through the Environment class -------------- // initProfiler.start("Applet init"); Environment.getSingleton().init(this); // LiveConnect proxy initialization --------------------------------- // LiveConnectProxy.getSingleton().setApplet(this); // KeyStoreProxy initialization ------------------------------------- // try { KeyStoreProxyFactory factory = new KeyStoreProxyFactory(); Environment.getSingleton().init(factory); keyStoreProxy = factory.createKeyStoreProxy(); } catch (Exception e) { logger.error("Error while creating keyStoreProxy", e); createKeyStoreProxyException = e; } // Swing initialization --------------------------------------------- // initProfiler.start("Swing init"); try { SwingUtilities.invokeAndWait(new Runnable() { public void run() { initSwing(); } }); } catch (Exception e) { logger.error("Swing initialization failed", e); } initProfiler.start("Starting"); }
From source file:dk.hippogrif.prettyxml.PrettyPrint.java
/** * Do the prettyprint according to properties. * * @param input holds xml document as text if present * @return prettyprinted document as text if input param present * @throws Exception if something goes wrong */// www .j a va 2s . com public static String execute(Properties prop, String input) throws Exception { try { checkProperties(prop, true); logger.log(Level.FINEST, "input=" + input + " properties=" + prop); Format format = initFormat(prop); PrettyXMLOutputter outp = new PrettyXMLOutputter(format); outp.setSortAttributes(prop.containsKey(SORT_ATTRIBUTES)); outp.setIndentAttributes(prop.containsKey(INDENT_ATTRIBUTES)); SAXBuilder builder = new SAXBuilder(); Document doc; if (input != null) { doc = builder.build(new StringReader(input)); } else if (prop.containsKey(INPUT)) { doc = builder.build(new File(prop.getProperty(INPUT))); } else if (prop.containsKey(URL)) { doc = builder.build(new URL(prop.getProperty(URL))); } else { doc = builder.build(System.in); } if (prop.containsKey(TRANSFORM)) { String[] sa = prop.getProperty(TRANSFORM).split(";"); for (int i = 0; i < sa.length; i++) { XSLTransformer transformer = mkTransformer(sa[i].trim()); doc = transformer.transform(doc); } } if (prop.containsKey(OUTPUT)) { FileOutputStream fos = null; try { fos = new FileOutputStream(new File(prop.getProperty(OUTPUT))); outp.output(doc, fos); } finally { IOUtils.closeQuietly(fos); } } else if (input != null) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); outp.output(doc, baos); return baos.toString(prop.getProperty(ENCODING, "UTF-8")); } else { outp.output(doc, System.out); } return null; } catch (Exception e) { logger.log(Level.FINER, "properties=" + prop, e); throw e; } }
From source file:com.ibm.jaggr.service.impl.transport.AbstractHttpTransport.java
/** * Returns a map containing the has-condition/value pairs specified in the request * //ww w. ja v a 2 s. co m * @param request The http request object * @return The map containing the has-condition/value pairs. * @throws */ protected static Features getFeaturesFromRequest(HttpServletRequest request) throws IOException { Features features = new Features(); String has = getHasConditionsFromRequest(request); if (has != null) { if (log.isLoggable(Level.FINEST)) log.finest("Adding has parameters from request: " + has); //$NON-NLS-1$ for (String s : has.split(";")) { //$NON-NLS-1$ boolean value = true; if (s.startsWith("!")) { //$NON-NLS-1$ s = s.substring(1); value = false; } features.put(s, value); } if (log.isLoggable(Level.FINEST)) log.finest("features = " + features.toString()); //$NON-NLS-1$ } return features.unmodifiableFeatures(); }