Example usage for java.util.logging Level FINEST

List of usage examples for java.util.logging Level FINEST

Introduction

In this page you can find the example usage for java.util.logging Level FINEST.

Prototype

Level FINEST

To view the source code for java.util.logging Level FINEST.

Click Source Link

Document

FINEST indicates a highly detailed tracing message.

Usage

From source file:org.activiti.cycle.impl.connector.signavio.SignavioConnector.java

public JSONObject getPublicRootDirectory() throws IOException, JSONException {
    Response directoryResponse = getJsonResponse(conf.getDirectoryUrl());
    JsonRepresentation jsonData = new JsonRepresentation(directoryResponse.getEntity());
    JSONArray rootJsonArray = jsonData.toJsonArray();

    if (log.isLoggable(Level.FINEST)) {
        SignavioLogHelper.logJSONArray(log, rootJsonArray);
    }//from  ww  w  .  j a v a2 s.  c o  m

    // find the directory of type public which contains all directories and
    // models of this account
    for (int i = 0; i < rootJsonArray.length(); i++) {
        JSONObject rootObject = rootJsonArray.getJSONObject(i);
        if ("public".equals(rootObject.getJSONObject("rep").get("type"))) {
            return rootObject;
        }
    }

    if (log.isLoggable(Level.FINEST)) {
        SignavioLogHelper.logCookieAndBody(log, directoryResponse);
    }

    throw new RepositoryException("No directory root found in signavio repository.");
}

From source file:org.apache.myfaces.ov2021.application.jsp.JspStateManagerImpl.java

/**
 * Given a tree of UIComponent objects created the default constructor
 * for each node, retrieve saved state info (from either the client or
 * the server) and walk the tree restoring the members of each node
 * from the saved state information.//from w w  w .  j a v  a2s.co  m
 */
@Override
protected void restoreComponentState(FacesContext facesContext, UIViewRoot uiViewRoot, String renderKitId) {
    if (log.isLoggable(Level.FINEST))
        log.finest("Entering restoreComponentState");

    //===========================================
    // first, locate the saved state information
    //===========================================

    RenderKit renderKit = getRenderKitFactory().getRenderKit(facesContext, renderKitId);
    ResponseStateManager responseStateManager = renderKit.getResponseStateManager();

    Object serializedComponentStates;
    if (isSavingStateInClient(facesContext)) {
        if (isLegacyResponseStateManager(responseStateManager)) {
            serializedComponentStates = responseStateManager.getComponentStateToRestore(facesContext);
        } else {
            serializedComponentStates = responseStateManager.getState(facesContext, uiViewRoot.getViewId());
        }
        if (serializedComponentStates == null) {
            log.severe("No serialized component state found in client request!");
            // mark UIViewRoot invalid by resetting view id
            uiViewRoot.setViewId(null);
            return;
        }
    } else {
        Integer serverStateId = getServerStateId(
                (Object[]) responseStateManager.getState(facesContext, uiViewRoot.getViewId()));

        Object[] stateObj = (Object[]) ((serverStateId == null) ? null
                : getSerializedViewFromServletSession(facesContext, uiViewRoot.getViewId(), serverStateId));
        if (stateObj == null) {
            log.severe("No serialized view found in server session!");
            // mark UIViewRoot invalid by resetting view id
            uiViewRoot.setViewId(null);
            return;
        }
        SerializedView serializedView = new SerializedView(stateObj[0], stateObj[1]);
        serializedComponentStates = serializedView.getState();
        if (serializedComponentStates == null) {
            log.severe("No serialized component state found in server session!");
            return;
        }
    }

    if (uiViewRoot.getRenderKitId() == null) {
        //Just to be sure...
        uiViewRoot.setRenderKitId(renderKitId);
    }

    // now ask the view root component to restore its state
    uiViewRoot.processRestoreState(facesContext, serializedComponentStates);

    if (log.isLoggable(Level.FINEST))
        log.finest("Exiting restoreComponentState");
}

From source file:Peer.java

@Override
public synchronized void notify(Key _pred) throws Exception {
    lg.log(Level.FINEST, "notify entry");
    pred = _pred;//  w w w  .  jav  a2s.c  o m
    lg.log(Level.FINER, "Notified by " + _pred.toString());
    succ = superpeer.getSuccessor(nodeid);

    // Start the notify cycle ... end the cycle with the initiator.
    PeerInterface peer = getPeer(succ);
    if (!lock) {
        lock = true;
        constructFingerTable(hasher.getBitSize());
        peer.notify(nodeid);
        lock = false;
        return;
    } else {
        lock = false;
        return;
    }
}

From source file:com.sun.grizzly.http.jk.common.ChannelUn.java

public int receive(Msg msg, MsgContext ep) throws IOException {
    int rc = super.nativeDispatch(msg, ep, CH_READ, 1);

    if (rc != 0) {
        LoggerUtils.getLogger().log(Level.SEVERE, "receive error:   " + rc, new Throwable());
        return -1;
    }//from w  w  w  . ja v  a 2  s. c  om

    msg.processHeader();

    if (LoggerUtils.getLogger().isLoggable(Level.FINEST)) {
        LoggerUtils.getLogger().log(Level.FINEST, "receive:  total read = " + msg.getLen());
    }

    return msg.getLen();
}

From source file:jenkins.plugins.openstack.compute.SlaveOptionsDescriptor.java

@Restricted(DoNotUse.class)
@InjectOsAuth//from   w ww  . j av a  2  s  .c  o m
public ListBoxModel doFillImageIdItems(@QueryParameter String imageId, @QueryParameter String endPointUrl,
        @QueryParameter String identity, @QueryParameter String credential, @QueryParameter String zone) {

    ListBoxModel m = new ListBoxModel();
    m.add("None specified", "");

    try {
        final Openstack openstack = Openstack.Factory.get(endPointUrl, identity, credential, zone);
        for (Image image : openstack.getSortedImages()) {
            String name = image.getName();
            if (Util.fixEmpty(name) == null) {
                name = image.getId();
            }
            m.add(name);
        }
        return m;
    } catch (AuthenticationException | FormValidation | ConnectionException ex) {
        LOGGER.log(Level.FINEST, "Openstack call failed", ex);
    } catch (Exception ex) {
        LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
    }

    if (Util.fixEmpty(imageId) != null) {
        m.add(imageId);
    }

    return m;
}

From source file:org.archive.modules.fetcher.AbstractCookieStore.java

public void addCookie(Cookie cookie) {
    if (isCookieCountMaxedForDomain(cookie.getDomain())) {
        logger.log(Level.FINEST, "Maximum number of cookies reached for domain " + cookie.getDomain()
                + ". Will not add new cookie " + cookie.getName() + " with value " + cookie.getValue());
        return;//from  w  w  w  .  j a v a  2 s . co m
    }

    addCookieImpl(cookie);
}

From source file:com.sun.grizzly.http.jk.server.JkMain.java

public void init() throws IOException {
    long t1 = System.currentTimeMillis();
    if (null != out) {
        PrintStream outS = new PrintStream(new FileOutputStream(out));
        System.setOut(outS);//from  ww w  .ja  va  2  s.  c  o m
    }
    if (null != err) {
        PrintStream errS = new PrintStream(new FileOutputStream(err));
        System.setErr(errS);
    }

    String home = getWorkerEnv().getJkHome();
    if (home == null) {
        // XXX use IntrospectionUtil to find myself
        this.guessHome();
    }
    home = getWorkerEnv().getJkHome();
    if (home == null) {
        LoggerUtils.getLogger().info("Can't find home, jk2.properties not loaded");
    }
    if (LoggerUtils.getLogger().isLoggable(Level.FINEST)) {
        LoggerUtils.getLogger().log(Level.FINEST, "Starting Jk2, base dir= " + home);
    }
    loadPropertiesFile();

    String initHTTPS = (String) props.get("class.initHTTPS");
    if ("true".equalsIgnoreCase(initHTTPS)) {
        initHTTPSUrls();
    }

    long t2 = System.currentTimeMillis();
    initTime = t2 - t1;
}

From source file:ke.go.moh.oec.mpi.match.NameMatch.java

/**
 * Computes the score as a result of matching two NameMatch objects,
 * using approximate matching./*from  ww w  .  j  av  a  2s  .co m*/
 * The score is returned as a double precision floating point number on a
 * scale of 0 to 1, where 0 means no match at all, and 1 means a perfect match.
 * <p>
 * Returns 1 if the names are an exact match.
 * Returns between 0 and 1 if the names are not an exact match but the
 * edit distance between the two is not large (string match) and/or the
 * two strings sound alike using one or more sound-alike functions (e.g., Soundex).
 * <p>
 * Returns null if one or both of the strings is null.
 * 
 * @param n1 the first name to match
 * @param n2 the second name to match
 * @param stringMatchType type of string match to use
 * @return the score from matching the two names.
 */
public static Double computeScore(NameMatch n1, NameMatch n2, StringMatch.MatchType stringMatchType) {
    Double score = StringMatch.computeScore(n1, n2, stringMatchType);
    if (score != null && score < 1.0) {
        if (n1.soundexValue.equals(n2.soundexValue) || n1.refinedSoundexValue.equals(n2.refinedSoundexValue)
                || n1.metaphone1.equals(n2.metaphone1) || n1.metaphone2.equals(n2.metaphone2)
                || n1.metaphone1.equals(n2.metaphone2) || n1.metaphone2.equals(n2.metaphone1)) {
            score = 0.8 + (score / 5.0);
        }
        Mediator.getLogger(NameMatch.class.getName()).log(Level.FINEST, "NameMatch.computeScore({0},{1}) = {2}",
                new Object[] { n1.getOriginal(), n2.getOriginal(), score });
    }
    return score;
}

From source file:com.google.enterprise.connector.sharepoint.wsclient.soap.SPClientFactory.java

private Resource reserveResource(Credentials credentials) throws IOException {
    Resource resource = null;/*from ww w  . j  a  va 2s  .  c  o  m*/
    try {
        LOGGER.log(Level.FINEST, "Number of resources in resource pool = " + resources.size());
        resource = resources.poll(0, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
        throw new IOException("Unable to reserve resource", e);
    }
    // Create new resource.
    if (resource == null) {
        resource = new Resource(createHttpClient(credentials));
    } else {
        // Clear cookies if reusing http client from
        // resource pool.
        resource.httpClient.getState().clearCookies();
    }
    return resource;
}

From source file:com.google.enterprise.connector.sharepoint.client.SharepointClientContext.java

/**
 * For cloning/*from w w w  . j  a v  a2  s  .  c  om*/
 */
public Object clone() {
    try {
        final SharepointClientContext spCl = new SharepointClientContext(clientFactory);

        if (null != aliasMap) {
            spCl.setSiteAlias(new LinkedHashMap<String, String>(aliasMap));
        }

        if (null != feedType) {
            spCl.setFeedType(feedType);
        }

        if (null != domain) {
            spCl.setDomain(domain);
        }

        if (null != kdcServer) {
            spCl.setKdcServer(kdcServer);
        }

        if (null != googleConnectorWorkDir) {
            spCl.googleConnectorWorkDir = googleConnectorWorkDir;
        }

        if (null != googleGlobalNamespace) {
            spCl.googleGlobalNamespace = googleGlobalNamespace;
        }

        if (null != googleLocalNamespace) {
            spCl.googleLocalNamespace = googleLocalNamespace;
        }

        if (null != mySiteBaseURL) {
            spCl.setMySiteBaseURL(mySiteBaseURL);
        }

        if (null != password) {
            spCl.setPassword(password);
        }

        if (null != siteURL) {
            spCl.setSiteURL(siteURL);
        }

        if (null != excludedURlList) {
            final String[] newExcList = new String[excludedURlList.length];
            for (int i = 0; i < excludedURlList.length; ++i) {
                newExcList[i] = excludedURlList[i];
            }
            spCl.setExcludedURlList(newExcList);
        }

        if (null != includedURlList) {
            final String[] newIncList = new String[includedURlList.length];
            for (int i = 0; i < includedURlList.length; ++i) {
                newIncList[i] = includedURlList[i];
            }
            spCl.setIncludedURlList(newIncList);
        }

        if (null != username) {
            spCl.setUsername(username);
        }

        spCl.setFQDNConversion(bFQDNConversion);
        spCl.setBatchHint(batchHint);
        spCl.setPushAcls(pushAcls);

        if (null != included_metadata) {
            spCl.included_metadata.addAll(included_metadata);
        }
        if (null != excluded_metadata) {
            spCl.excluded_metadata.addAll(excluded_metadata);
        }

        if (null != excludedURL_ParentDir) {
            spCl.excludedURL_ParentDir = excludedURL_ParentDir;
        }

        if (null != userDataStoreDAO) {
            // It's ok if we do a shallow copy here
            spCl.userDataStoreDAO = this.userDataStoreDAO;
        }

        if (null != traversalContext) {
            spCl.setTraversalContext(traversalContext);
        }

        spCl.useSPSearchVisibility = useSPSearchVisibility;
        spCl.infoPathBaseTemplate = infoPathBaseTemplate;

        spCl.reWriteDisplayUrlUsingAliasMappingRules = reWriteDisplayUrlUsingAliasMappingRules;
        spCl.reWriteRecordUrlUsingAliasMappingRules = reWriteRecordUrlUsingAliasMappingRules;

        spCl.setUsernameFormatInAce(this.getUsernameFormatInAce());
        spCl.setGroupnameFormatInAce(this.getGroupnameFormatInAce());
        spCl.setAclBatchSizeFactor(this.aclBatchSizeFactor);
        spCl.setFetchACLInBatches(this.fetchACLInBatches);
        spCl.setWebServiceTimeOut(this.webServiceTimeOut);
        spCl.setLdapConnectionSettings(this.ldapConnectionSettings);
        spCl.setUseCacheToStoreLdapUserGroupsMembership(this.useCacheToStoreLdapUserGroupsMembership);
        spCl.setInitialCacheSize(this.initialCacheSize);
        spCl.setCacheRefreshInterval(this.cacheRefreshInterval);
        spCl.setFeedUnPublishedDocuments(this.feedUnPublishedDocuments);
        spCl.setSocialOption(this.getSocialOption());
        spCl.setUserProfileServiceFactory(this.userProfileServiceFactory);
        spCl.setInitialTraversal(this.initialTraversal);

        return spCl;
    } catch (final Throwable e) {
        LOGGER.log(Level.FINEST, "Unable to clone client context.", e);
        return null;
    }
}