Example usage for java.util.logging Level FINE

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

Introduction

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

Prototype

Level FINE

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

Click Source Link

Document

FINE is a message level providing tracing information.

Usage

From source file:com.cedarsoft.couchdb.CouchDatabase.java

@Override
@Nonnull/*  w w  w .j a  va2s  .c  om*/
public ActionResponse put(@Nonnull DocId id, @Nonnull InputStream content) throws ActionFailedException {
    WebResource path = getDbRoot().path(id.asString());

    if (LOG.isLoggable(Level.FINE)) {
        LOG.fine("PUT " + path.toString());
    }

    ClientResponse response = path.type(JSON_TYPE).accept(JSON_TYPE).put(ClientResponse.class, content);
    return ActionResponseSerializer.create(response);
}

From source file:com.google.enterprise.connector.sharepoint.spiimpl.SharepointAuthenticationManager.java

/**
 * Returns the search user name after changing its format to the user name
 * format specified by the connector administrator during connector
 * configuration.//from w  w w  .  j  a  v a 2 s. c o  m
 *
 * @param userName
 * @param domain
 */
private String addUserNameFormatForTheSearchUser(final String userName, final String domain) {
    String format = this.sharepointClientContext.getUsernameFormatInAce();
    LOGGER.config("Username format in ACE : " + format);
    String domainToUse = (Strings.isNullOrEmpty(domain)) ? this.sharepointClientContext.getDomain() : domain;
    LOGGER.log(Level.FINE, "domainToUse [ " + domainToUse + " ], input domain [ " + domain + " ]. ");
    if (format.indexOf(SPConstants.AT) != -1) {
        return Util.getUserNameAtDomain(userName, domainToUse);
    } else if (format.indexOf(SPConstants.BACKSLASH) != -1) {
        return Util.getUserNameWithDomain(userName, domainToUse);
    } else {
        return userName;
    }
}

From source file:com.symbian.driver.core.controller.SymbianVisitor.java

/**
 * Starts the Run Visitor.//from w  ww.jav  a 2s  .  co m
 * 
 * If <code>WINSCW</code> or <code>WINS</code> then starts the emulator
 * using the WINTAP Address in the configuration. Otherwise it starts the
 * Hardware board. If ncessary it will also start RDebug and install TEF
 * dependencies.
 * 
 * @param aTask
 * @throws Exception
 */
public boolean start(final Task aTask) {
    boolean lReturn = true;
    boolean lEmulator = false;
    try {
        TDConfig CONFIG = TDConfig.getInstance();
        lEmulator = Epoc.isTargetEmulator(CONFIG.getPreference(TDConfig.PLATFORM));
        if (lEmulator) {
            // Start Emulator
            LOGGER.fine("Creating Emulator Pre Processor");
            sSymbianDevice = new EmulatorPreProcessor();
        } else {
            // Start Hardware
            LOGGER.fine("Creating Hardware Pre Processor");
            sSymbianDevice = new HardwarePreProcessor();
        }

        // Start the Symbian Device (Emulator or Hardware
        LOGGER.fine("Starting Pre Processor");
        if (sSymbianDevice.start()) {

            // Increment the Run Number
            CONFIG.incrementRunNumber();
            LOGGER.info("Run number: " + CONFIG.getPreferenceInteger(TDConfig.RUN_NUMBER));

            // Start Test Driver
            if (!super.start(aTask, iSymbianSwitch, sSymbianDevice, true)) {
                lReturn = false;
            }
        } else {
            lReturn = false;
            LOGGER.log(Level.SEVERE, "Could not start symbian device.");
            //sSymbianDevice.stop();
        }

    } catch (IOException lIOException) {
        LOGGER.log(Level.SEVERE, lIOException.getMessage(), lIOException);
        lReturn = false;
    } catch (EmptyStackException lEmptyStackException) {
        // For the Install and UID Stack Execpetions
        LOGGER.log(Level.FINE, "Stack Exception for UID/Install stack.", lEmptyStackException);
        lReturn = false;
    } catch (StringIndexOutOfBoundsException lStringIndexOutOfBoundsException) {
        LOGGER.log(Level.SEVERE, "Wintap for emulator tests has an error.", lStringIndexOutOfBoundsException);
        lReturn = false;
    } catch (Exception Exception) {
        lReturn = false;
        LOGGER.log(Level.SEVERE, "JStat failed while starting the run", Exception);
        // something, maybe stat or something on the device couldve hanged
        // if a reboot plugin is available, see if reboot can help
        if (!lEmulator) {
            try {
                if (RebootProxy.getInstance().Reboot()) {
                    iRebooted = true;
                } else {
                    LOGGER.log(Level.SEVERE, "could not reboot. See previous errors.");
                }
            } catch (Exception lException) {
                LOGGER.log(Level.SEVERE, "could not reboot thru any plugins.", lException);
            }
        }
    } catch (Throwable lThrowable) {
        LOGGER.log(Level.SEVERE, lThrowable.getMessage(), lThrowable);
        lReturn = false;
    } finally {
        // Stop Test Driver
        stop();
    }
    return lReturn;
}

From source file:com.joyfulmongo.db.javadriver.JFDBCollection.java

private void ensure2DIndexIfExist(JSONObject payload) {
    Object geoPoint = payload.opt(ContainerObjectGeoPoint.S_GEO_POINT);
    if (geoPoint != null) {
        if (LOGGER.isLoggable(Level.FINE)) {
            LOGGER.fine("create EnsureIndex " + ContainerObjectGeoPoint.S_GEO_POINT);
        }/*ww  w.  j  ava  2 s  . c o m*/
        DBObject indexObj = new BasicDBObject();
        indexObj.put(ContainerObjectGeoPoint.S_GEO_POINT, "2d");
        dbCollection.ensureIndex(indexObj);
    }
}

From source file:gov.nrel.bacnet.consumer.DatabusSender.java

@SuppressWarnings({ "rawtypes", "unchecked" })
public void postData(List<DatabusBean> data) {
    synchronized (this) {
        if (initialStart == null) {
            initialStart = System.currentTimeMillis();
        }//from ww w.  j a v  a  2s .c  o  m
    }

    long startPost = System.currentTimeMillis();

    List list = new ArrayList();
    Map<String, Object> jsonObj = new HashMap<String, Object>();
    jsonObj.put("_dataset", list);

    for (DatabusBean b : data) {
        Map<String, String> result = create(b);
        list.add(result);
    }

    String json = writeValueAsString(jsonObj);
    log.info("posting datasetsize=" + data.size());
    post("/api/postdataV1", json);
    if (log.isLoggable(Level.FINE))
        log.fine("posted dataset=" + json);

    logInfo(data.size(), startPost);
}

From source file:net.chrissearle.flickrvote.web.vote.VoteAction.java

@Override
public String input() {
    if (logger.isLoggable(Level.FINE)) {
        logger.fine("input");
    }//w w w .j  av a 2s  .c  om

    if (session.containsKey(FlickrVoteWebConstants.FLICKR_USER_SESSION_KEY)) {
        Photographer photographer = (Photographer) session.get(FlickrVoteWebConstants.FLICKR_USER_SESSION_KEY);

        if (challengeService.hasVoted(photographer.getPhotographerId())) {
            return "alreadyVoted";
        }
    }

    return INPUT;
}

From source file:jenkins.security.stapler.StaticRoutingDecisionProvider.java

private synchronized void reloadFromDefault() {
    try (InputStream is = StaticRoutingDecisionProvider.class.getResourceAsStream("default-whitelist.txt")) {
        whitelistSignaturesFromFixedList = new HashSet<>();
        blacklistSignaturesFromFixedList = new HashSet<>();

        parseFileIntoList(IOUtils.readLines(is, StandardCharsets.UTF_8), whitelistSignaturesFromFixedList,
                blacklistSignaturesFromFixedList);
    } catch (IOException e) {
        throw new ExceptionInInitializerError(e);
    }/*  w  ww  . ja v a  2s .c om*/

    LOGGER.log(Level.FINE, "Found {0} getter in the standard whitelist",
            whitelistSignaturesFromFixedList.size());
}

From source file:cz.incad.vdkcommon.solr.Indexer.java

public void clean() throws Exception {
    LOGGER.log(Level.FINE, "Cleaning index...");
    SolrIndexerCommiter.getServer().deleteByQuery("*:*");
    LOGGER.log(Level.INFO, "Index cleaned");
}

From source file:mendeley2kindle.KindleDAO.java

public void removeFile(KFile file) {
    log.log(Level.FINER, "Removing a document:" + file.getName() + " from your kindle");
    String path = toKindleLocalPath(file);
    File f = new File(path);
    if (f.exists()) {
        log.log(Level.FINE, "Removed a document:" + f);
        f.delete();//from  w w  w  .  j  av  a 2s.com
    } else {
        log.log(Level.FINE, "File not found:" + f);
    }
}

From source file:org.tiefaces.components.websheet.chart.ChartHelper.java

/**
 * create default category dataset for JfreeChart with giving chartData.
 * //from w w w .  j a  va  2 s .  c  o  m
 * @param chartData
 *            contain information gathered from excel chart object.
 * @return DefaultCategoryDataset for jfreechart.
 */

private DefaultPieDataset createPieDataset(final ChartData chartData) {
    DefaultPieDataset dataset = new DefaultPieDataset();
    List<ParsedCell> categoryList = chartData.getCategoryList();
    for (ChartSeries chartSeries : chartData.getSeriesList()) {
        List<ParsedCell> valueList = chartSeries.getValueList();
        for (int i = 0; i < categoryList.size(); i++) {
            try {
                String sCategory = getParsedCellValue(categoryList.get(i));
                String sValue = getParsedCellValue(valueList.get(i));
                dataset.setValue(sCategory, Double.parseDouble(sValue));
            } catch (Exception ex) {
                LOG.log(Level.FINE, "error in creatPieDataset : " + ex.getLocalizedMessage(), ex);
            }
        }
    }
    return dataset;

}