Example usage for java.util.logging Level FINER

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

Introduction

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

Prototype

Level FINER

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

Click Source Link

Document

FINER indicates a fairly detailed tracing message.

Usage

From source file:com.esri.gpt.control.webharvest.client.thredds.TProxy.java

public Content readContent(String sourceUri) throws IOException {
    LOGGER.log(Level.FINER, "Reading metadata of source URI: \"{0}\" through proxy: {1}",
            new Object[] { sourceUri, this });
    sourceUri = Val.chkStr(sourceUri).replaceAll("\\{", "%7B").replaceAll("\\}", "%7D");
    HttpClientRequest cr = new HttpClientRequest();
    cr.setBatchHttpClient(this.info.getBatchHttpClient());
    cr.setUrl(sourceUri);/*  ww w .  j  a  v  a 2s .c om*/
    BreakableStringHandler sh = new BreakableStringHandler(criteria != null ? criteria.getFromDate() : null);
    cr.setContentHandler(sh);
    cr.execute();
    String mdText = sh.getContent();
    LOGGER.log(Level.FINER, "Received metadata of source URI: \"{0}\" through proxy: {1}",
            new Object[] { sourceUri, this });
    LOGGER.finest(mdText);
    return new Content(sh.getLastModifiedDate(), mdText);
}

From source file:name.richardson.james.bukkit.alias.persistence.InetAddressRecordManager.java

public InetAddressRecord find(String address) {
    logger.log(Level.FINER, "Attempting to find InetAddressRecord matching {0}.", address);
    Query<InetAddressRecord> query = database.createQuery(InetAddressRecord.class);
    query.setParameter("address", address);
    return query.findUnique();
}

From source file:com.ibm.team.git.build.hjplugin.RTCLoginInfo.java

/**
 * Constructor //w  ww .  j  av a  2  s  .  c o  m
 * 
 * @param job
 * @param serverUri
 * @param credentialsId
 * @param timeout
 * @throws InvalidCredentialsException
 */
public RTCLoginInfo(Job<?, ?> job, String serverUri, String credentialsId, int timeout)
        throws InvalidCredentialsException {
    credentialsId = Util.fixEmptyAndTrim(credentialsId);

    if (credentialsId != null) {
        // figure out userid & password from the credentials
        if (LOGGER.isLoggable(Level.FINER)) {
            LOGGER.finer("Looking up credentials for " + //$NON-NLS-1$
                    "credentialId=\"" + credentialsId + //$NON-NLS-1$
                    "\" serverURI=\"" + serverUri + //$NON-NLS-1$
                    "\" project=" + (job == null ? "null" : "\"" + job.getFullDisplayName() + "\"")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ $NON-NLS-2$ $NON-NLS-3$ $NON-NLS-4$ 
        }

        List<StandardUsernamePasswordCredentials> allMatchingCredentials = CredentialsProvider
                .lookupCredentials(StandardUsernamePasswordCredentials.class, job, ACL.SYSTEM,
                        URIRequirementBuilder.fromUri(serverUri).build());
        StandardUsernamePasswordCredentials credentials = CredentialsMatchers
                .firstOrNull(allMatchingCredentials, CredentialsMatchers.withId(credentialsId));
        if (credentials != null) {
            this.userId = credentials.getUsername();
            this.password = credentials.getPassword().getPlainText();
        } else {
            throw new InvalidCredentialsException(Messages.RTCLoginInfo_creds_unresolvable());
        }

    } else {
        throw new InvalidCredentialsException(Messages.RTCLoginInfo_supply_credenmtials());
    }
    this.serverUri = serverUri;
    this.timeout = timeout;
}

From source file:SuperPeer.java

/**
 * SuperPeer Constructor. It takes the number of bits in the key.
 *///from w  w  w  .ja va2 s  .  co m
SuperPeer(int _mbits) throws RemoteException, NoSuchAlgorithmException {
    lock = false;
    lg = new Logger("SuperPeer");
    mbits = _mbits;
    peertable = new TreeSet<PeerInfo>(new PeerInfoComparator());
    prng = SecureRandom.getInstance("SHA1PRNG");
    hasher = new SHA1Hasher(mbits);
    lg.log(Level.FINER, "SuperPeer started.");
}

From source file:org.geoserver.jdbcconfig.internal.JdbcConfigTestSupport.java

public void setUp() throws Exception {
    ConfigDatabase.LOGGER.setLevel(Level.FINER);
    // just to avoid hundreds of warnings in the logs about extension lookups with no app
    // context set
    WebApplicationContext applicationContext = Mockito.mock(WebApplicationContext.class);
    new GeoServerExtensions().setApplicationContext(applicationContext);
    when(applicationContext.getBeansOfType((Class) anyObject())).thenReturn(Collections.EMPTY_MAP);
    when(applicationContext.getBeanNamesForType((Class) anyObject())).thenReturn(new String[] {});
    ///*from  w  ww . j  a va2  s.  c  o m*/

    final File testDbDir = new File("target", "jdbcconfig");
    FileUtils.deleteDirectory(testDbDir);
    testDbDir.mkdirs();

    dataSource = new BasicDataSource();
    dataSource.setDriverClassName(driver);
    dataSource.setUrl(connectionUrl);
    dataSource.setUsername("postgres");
    dataSource.setPassword("geo123");

    dataSource.setMinIdle(3);
    dataSource.setMaxActive(10);
    try {
        Connection connection = dataSource.getConnection();
        connection.close();
    } catch (Exception e) {
        throw new RuntimeException(e);
    }

    try {
        dropDb(dataSource);
    } catch (Exception ignored) {
    }
    initDb(dataSource);

    XStreamInfoSerialBinding binding = new XStreamInfoSerialBinding(new XStreamPersisterFactory());

    catalog = new CatalogImpl();
    configDb = new ConfigDatabase(dataSource, binding);
    configDb.setCatalog(catalog);
    configDb.initDb(null);
}

From source file:magma.agent.agentmodel.impl.GyroRate.java

/**
 * resets the gyro to upright position// w ww  .j  a v  a  2  s.c  om
 */
public void initialize() {
    if (identity != null) {
        logger.log(Level.FINER, "gyro init old: ({0}, {1}, {2})",
                new Object[] { identity.m02, identity.m12, identity.m22 });
    }

    gyro = new Vector3D();
    identity = new Matrix3d(1, 0, 0, 0, 1, 0, 0, 0, 1);
}

From source file:fungus.JobProcessor.java

public void nextCycle(Node node, int pid) {
    HyphaData data = (HyphaData) node.getProtocol(hyphaDataPid);

    myNode = (MycoNode) node;/*from   w ww  . j a v  a2s .co m*/

    if (!myNode.isUp()) {
        return;
    }
    log.log(Level.FINER,
            "Node " + myNode.getID() + " ready to perform " + data.getMaxCapacity() + " unit(s) of work",
            myNode);
    data.doWork(data.getMaxCapacity());
}

From source file:com.esri.gpt.control.webharvest.client.waf.WafProxy.java

public Content readContent(String sourceUri) throws IOException {
    LOGGER.log(Level.FINER, "Reading metadata of source URI: \"{0}\" through proxy: {1}",
            new Object[] { sourceUri, this });
    sourceUri = Val.chkStr(sourceUri).replaceAll("\\{", "%7B").replaceAll("\\}", "%7D");
    HttpClientRequest cr = new HttpClientRequest();
    cr.setBatchHttpClient(this.info.getBatchHttpClient());
    cr.setUrl(sourceUri);/*from www .ja  va  2s  .co m*/
    BreakableStringHandler sh = new BreakableStringHandler(criteria != null ? criteria.getFromDate() : null);
    cr.setContentHandler(sh);
    cr.setCredentialProvider(info.newCredentialProvider());
    cr.execute();
    String mdText = sh.getContent();
    LOGGER.log(Level.FINER, "Received metadata of source URI: \"{0}\" through proxy: {1}",
            new Object[] { sourceUri, this });
    LOGGER.finest(mdText);
    return new Content(sh.getLastModifiedDate(), mdText);
}

From source file:name.richardson.james.bukkit.alias.persistence.PlayerNameRecordManager.java

public boolean exists(String playerName) {
    logger.log(Level.FINER, "Checking if PlayerNameRecord matching {0} exists.", playerName);
    return find(playerName) != null;
}

From source file:com.elasticgrid.platforms.ec2.EC2NodeInstantiatorImpl.java

public List<String> startInstances(String imageID, int minCount, int maxCount, List<String> groupSet,
        String userData, String keyName, boolean publicAddress, Object... options) throws RemoteException {
    if (StringUtils.isEmpty(imageID))
        throw new IllegalArgumentException("imageID can't be null");
    EC2NodeType instanceType = (EC2NodeType) options[0];
    logger.log(Level.FINER,
            "Starting {0} Amazon EC2 instance from image ''{1}'': keyName={2}, groups={3}, userdata={4}, instanceType={5}",
            new Object[] { minCount, imageID, keyName, groupSet, userData, instanceType });
    com.xerox.amazonws.ec2.InstanceType type;
    switch (instanceType) {
    case SMALL://from  w  w w .  j  a va  2 s . c  o  m
        type = com.xerox.amazonws.ec2.InstanceType.DEFAULT;
        break;
    case MEDIUM_HIGH_CPU:
        type = com.xerox.amazonws.ec2.InstanceType.MEDIUM_HCPU;
        break;
    case LARGE:
        type = com.xerox.amazonws.ec2.InstanceType.LARGE;
        break;
    case EXTRA_LARGE:
        type = com.xerox.amazonws.ec2.InstanceType.XLARGE;
        break;
    case EXTRA_LARGE_HIGH_CPU:
        type = com.xerox.amazonws.ec2.InstanceType.XLARGE_HCPU;
        break;
    default:
        throw new IllegalArgumentException(
                format("Invalid Amazon EC2 instance type '%s'", instanceType.getName()));
    }
    try {
        ReservationDescription reservation = jec2.runInstances(imageID, minCount, maxCount, groupSet, userData,
                keyName, type);
        List<ReservationDescription.Instance> instances = reservation.getInstances();
        ReservationDescription.Instance last = instances.get(instances.size() - 1);
        try {
            while (last.isPending()) {
                Thread.sleep(200);
                try {
                    reservation = jec2.describeInstances(Arrays.asList(last.getInstanceId())).get(0);
                    last = reservation.getInstances().get(instances.size() - 1);
                } catch (EC2Exception e) {
                    // do nothing -- sometimes EC2 don't allow us to request description of instance right after we start it!
                    logger.warning(format("Could not get instance description for instance '%s'. Retrying...",
                            last.getInstanceId()));
                }
            }
        } catch (InterruptedException e) {
            String message = format("Couldn't start properly %d Amazon EC2 instances."
                    + "Make sure instances of reservation ID %s are started and used properly within your cluster",
                    minCount, reservation.getReservationId());
            logger.log(Level.SEVERE, message, e);
            throw new RemoteException(message, e);
        }
        List<String> instancesIDs = new ArrayList<String>(instances.size());
        for (ReservationDescription.Instance instance : instances) {
            instancesIDs.add(instance.getInstanceId());
        }
        logger.log(Level.INFO, "Started {0} Amazon EC2 instance from image ''{1}''...",
                new Object[] { minCount, imageID });
        return instancesIDs;
    } catch (EC2Exception e) {
        throw new RemoteException("Can't start Amazon EC2 instances", e);
    }
}