1006 projects tagged "Apache 2.0"
jniThreadCPUUsage is a Java library to get the amount of user and system CPU time used per thread. This is done via JNI, which calls getrusage() on the system. getrusage() is only available on Linux 2.6.26 or later and Solaris. One useful application of this is measuring the amount of CPU time used for a servlet request. getrusage() CPU time reporting is better than using the real time clock because it measures actual CPU time used and disregards times when the thread is idle or waiting (such as when it is waiting for network I/O).
tools4j-config supports long-running enterprise Java applications with a framework for handling configuration changes without restarting. It also aids in developing applications which are decoupled from knowing how and where to store, retrieve, and validate configurations. The aim is to liberate applications to use configurations seamlessly on the terms of their particular environment, without constraining them to Java SE, EE, OSGi, Spring, CDI, or any other programming model or framework.
Simple Log is a small library that does logging very simply and requires you to do almost nothing (other than actually logging) to get log output to happen. It is much simpler to use than a logging framework, especially in terms of configuration. It doesn't attempt to solve every logging problem in one package, but contains enough features to be a viable alternative for most applications that need logging. This tool will handle the logging needs of most small- to large-sized projects, but with an almost non-existent learning curve.
xml-test checks that an XML document is included in another document. It is handy when testing an application's output against a document where element order is different (GData and Atom are examples of specifications where element order is unimportant). It has a relaxed notion of containment: element order is ignored, whitespace is trimmed, comments are ignored, specific elements can be ignored by passing XPath-like paths on the command line, and text nodes (element and attribute content) can be ignored by passing '-notext' on the command line.