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:com.github.danielfernandez.matchday.agents.MatchEventAgent.java
private Mono<MatchEvent> insertNewEvent() { // Will insert a new event for a random match and player (of that match) final Mono<Match> match = chooseMatch(); return match.flatMap(this::createEvent).flatMap(this.mongoTemplate::insert).log(LOGGER_AGENT, Level.FINEST); }
From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.safe.TSafeJsonQueryHandler.java
@Override public String encode(final WebsockQuery query) throws EncodeException { String result = null;// ww w . j a va 2 s .c o m try { final JSONObject obj = JsonConverter.toJson(query); result = obj.toString(); if (fDebug) { fTotalBytesOut += result.getBytes().length; fLogger.log(Level.FINEST, "encoded JSON message: " + result.getBytes().length + " bytes\n" + "total bytes sent: " + fTotalBytesOut); } } catch (JSONException e) { e.printStackTrace(); throw new EncodeException(query, "failed to encode JSON", e); } return result; }
From source file:de.hofuniversity.iisys.neo4j.websock.query.encoding.safe.TSafeDeflateJsonQueryHandler.java
public TSafeDeflateJsonQueryHandler() { fLogger = Logger.getLogger(this.getClass().getName()); fDebug = (fLogger.getLevel() == Level.FINEST); fCompression = DEFAULT_COMPRESSION_LEVEL; }
From source file:com.adr.taskexecutor.ui.TaskExecutorRemote.java
/** Creates new form TaskExecutorRemote */ public TaskExecutorRemote() { initComponents();//from www . j av a2 s. c om jLoggingLevel.addItem(Level.SEVERE); jLoggingLevel.addItem(Level.WARNING); jLoggingLevel.addItem(Level.INFO); jLoggingLevel.addItem(Level.CONFIG); jLoggingLevel.addItem(Level.FINE); jLoggingLevel.addItem(Level.FINER); jLoggingLevel.addItem(Level.FINEST); jLoggingLevel.addItem(Level.OFF); jLoggingLevel.addItem(Level.ALL); jURL.setText(Configuration.getInstance().getPreference("remote.serverurl", "http://localhost/taskexecutoree/executetask")); jLoggingLevel.setSelectedItem(Level .parse(Configuration.getInstance().getPreference("remote.logginglevel", Level.INFO.toString()))); jTrace.setSelected(Boolean .parseBoolean(Configuration.getInstance().getPreference("remote.trace", Boolean.FALSE.toString()))); jStats.setSelected(Boolean .parseBoolean(Configuration.getInstance().getPreference("remote.stats", Boolean.TRUE.toString()))); }
From source file:com.telefonica.euro_iaas.sdc.util.CommandExecutorShellImpl.java
/** * <p>//from www.j ava 2 s . com * executeCommand * </p> * * @param command * a {@link java.lang.String} object. * @return an array of {@link java.lang.String} objects. * @throws java.io.IOException * if any. */ public String[] executeCommand(String command) throws ShellCommandException { String[] outputCommand = new String[2]; try { // Command is executed logger.log(Level.INFO, "Executing command: " + command); Process p = Runtime.getRuntime().exec(command); // Leemos la salida del comando outputCommand[0] = IOUtils.toString(p.getInputStream()); outputCommand[1] = IOUtils.toString(p.getErrorStream()); Integer exitValue = null; // this bucle is because sometimes the flows continues and the // comand // does not finish yet. while (exitValue == null) { try { exitValue = p.exitValue(); } catch (IllegalThreadStateException e) { logger.log(Level.FINEST, "The command does not finished yet"); } } if (!exitValue.equals(0)) { logger.log(Level.SEVERE, "Error executing command: " + outputCommand[1]); throw new ShellCommandException(outputCommand[1]); } return outputCommand; } catch (IOException e) { throw new ShellCommandException("Unexpected exception", e); } }
From source file:edu.umass.cs.reconfiguration.reconfigurationutils.ReconfigurationPacketDemultiplexer.java
@Override public JSONObject processHeader(byte[] msg, NIOHeader header) { long t = System.nanoTime(); int type;/* w w w . j a va 2s . com*/ JSONObject json = null; log.log(Level.FINEST, "{0} processHeader received message with header {1}", new Object[] { this, header }); if (msg.length >= Integer.BYTES && ReconfigurationPacket.PacketType.intToType .containsKey(type = ByteBuffer.wrap(msg, 0, 4).getInt()) && JSONPacket.couldBeJSON(msg, Integer.BYTES) && type != PacketType.REPLICABLE_CLIENT_REQUEST.getInt()) { json = super.processHeader(msg, Integer.BYTES, header, true); if (json != null) { if (Util.oneIn(50)) DelayProfiler.updateDelayNano("processHeader", t); return json; } } else if (!BYTEIFICATION && JSONPacket.couldBeJSON(msg) && (json = super.processHeader(msg, header, true)) != null) { return json; } // else prefix msg with addresses byte[] stamped = new byte[NIOHeader.BYTES + msg.length]; ByteBuffer bbuf = ByteBuffer.wrap(stamped); bbuf.put(header.toBytes()); bbuf.put(msg); if (Util.oneIn(50)) DelayProfiler.updateDelayNano("processHeader", t); return new JSONMessenger.JSONObjectWrapper(stamped); }
From source file:SuperPeer.java
@Override public synchronized Key getSuccessor(Key nodeid) throws Exception { lg.log(Level.FINEST, "getSuccessor Entry."); Iterator<PeerInfo> it = peertable.iterator(); PeerInfo fe = null;//from w ww .jav a 2s. co m // Find the first peer key greater than the provided one. while (it.hasNext()) { fe = it.next(); if (fe.getNodeId().compare(nodeid) > 0) break; fe = null; } // This means that either the peertable is empty or // nodeid provided is higher than all other peers. if (fe == null) { lg.log(Level.FINER, "getSuccessor - Highest nodeid or peertable empty try the first entry."); it = peertable.iterator(); if (it.hasNext()) { fe = it.next(); if (fe.getNodeId().compare(nodeid) == 0) fe = null; } } Key rv = null; if (fe != null) rv = fe.getNodeId(); else lg.log(Level.FINER, "getSuccessor - No successor found, table must be empty.."); lg.log(Level.FINEST, "getSuccessor Exit."); return rv; }
From source file:com.npower.dm.util.SyncMLCanonizer4Test.java
/** * The message input must be canonized every time before call the XML-Java * mapping tool (JiBX) that it parsers and generates the SyncML object. * * @param message the input XML message/*from w ww . j a v a2 s. co m*/ * * @return message the input XML message canonized **/ public String canonizeInputMessage(String message) { if (log.isLoggable(Level.FINEST)) { log.finest("Starting process of canonization on input message"); } message = replaceEntity(message); return message; }
From source file:jext2.DataStructureAccessProvider.java
protected void log(String op, String msg) { if (logger.isLoggable(Level.FINEST)) { StackTraceElement[] fullStack = Thread.currentThread().getStackTrace(); StackTraceElement[] interrestingStackElements = filterStrackTraceForLog(fullStack); ArrayUtils.reverse(interrestingStackElements); String strstack = new StrBuilder().appendWithSeparators(interrestingStackElements, "->").toString(); StringBuilder log = new StringBuilder(); log.append(" class="); log.append(this.getClass().getSimpleName()); log.append(" op="); log.append(op);// w w w. j a v a 2s . c o m log.append(" msg="); log.append(msg); log.append(" source="); log.append(strstack); logger.finest(log.toString()); } }
From source file:eu.flatworld.worldexplorer.layer.nltl7.NLTL7HTTPProvider.java
@Override public void run() { while (true) { while (getQueueSize() != 0) { Tile tile = peekTile();//from w w w . j a v a2s. c o m synchronized (tile) { String s = String.format(NLTL7Layer.HTTP_BASE, tile.getL(), tile.getX(), tile.getY()); LogX.log(Level.FINER, s); GetMethod gm = new GetMethod(s); gm.setRequestHeader("User-Agent", WorldExplorer.USER_AGENT); try { int response = client.executeMethod(gm); LogX.log(Level.FINEST, NAME + " " + response + " " + s); if (response == HttpStatus.SC_OK) { InputStream is = gm.getResponseBodyAsStream(); BufferedImage bi = ImageIO.read(is); is.close(); if (bi != null) { tile.setImage(bi); } } } catch (Exception ex) { LogX.log(Level.FINER, "", ex); } finally { gm.releaseConnection(); } LogX.log(Level.FINEST, NAME + " dequeueing: " + tile); unqueueTile(tile); } firePropertyChange(P_DATAREADY, null, tile); Thread.yield(); } firePropertyChange(P_IDLE, false, true); try { Thread.sleep(QUEUE_SLEEP_TIME); } catch (Exception ex) { } ; } }