| Package | Description |
|---|---|
| org.eclipse.jetty.util |
Jetty Util : Common Utility Classes
|
| org.eclipse.jetty.util.component |
Jetty Util : Jetty Lifecycle Management
|
| org.eclipse.jetty.util.preventers |
Jetty Util : Common Memory Leak Prevention Tooling
|
| org.eclipse.jetty.util.ssl |
Jetty Util : Common SSL Utility Classes
|
| org.eclipse.jetty.util.thread |
Jetty Util : Common ThreadPool Utilities
|
| org.eclipse.jetty.util.thread.strategy |
| Modifier and Type | Class and Description |
|---|---|
class |
LeakDetector<T>
A facility to detect improper usage of resource pools.
|
class |
PathWatcher
Watch a Path (and sub directories) for Path changes.
|
class |
Scanner
Scanner
Utility for scanning a directory for added, removed and changed
files and reporting these events via registered Listeners.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLifeCycle
Basic implementation of the life cycle interface for components.
|
class |
ContainerLifeCycle
A ContainerLifeCycle is an
LifeCycle implementation for a collection of contained beans. |
class |
StopLifeCycle
A LifeCycle that when started will stop another LifeCycle
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerLifeCycle.addManaged(LifeCycle lifecycle)
Adds a managed lifecycle.
|
static String |
AbstractLifeCycle.getState(LifeCycle lc) |
void |
StopLifeCycle.lifeCycleFailure(LifeCycle lifecycle,
Throwable cause) |
void |
LifeCycle.Listener.lifeCycleFailure(LifeCycle event,
Throwable cause) |
void |
FileNoticeLifeCycleListener.lifeCycleFailure(LifeCycle event,
Throwable cause) |
void |
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleFailure(LifeCycle event,
Throwable cause) |
void |
StopLifeCycle.lifeCycleStarted(LifeCycle lifecycle) |
void |
LifeCycle.Listener.lifeCycleStarted(LifeCycle event) |
void |
FileNoticeLifeCycleListener.lifeCycleStarted(LifeCycle event) |
void |
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStarted(LifeCycle event) |
void |
StopLifeCycle.lifeCycleStarting(LifeCycle lifecycle) |
void |
LifeCycle.Listener.lifeCycleStarting(LifeCycle event) |
void |
FileNoticeLifeCycleListener.lifeCycleStarting(LifeCycle event) |
void |
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStarting(LifeCycle event) |
void |
StopLifeCycle.lifeCycleStopped(LifeCycle lifecycle) |
void |
LifeCycle.Listener.lifeCycleStopped(LifeCycle event) |
void |
FileNoticeLifeCycleListener.lifeCycleStopped(LifeCycle event) |
void |
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStopped(LifeCycle event) |
void |
StopLifeCycle.lifeCycleStopping(LifeCycle lifecycle) |
void |
LifeCycle.Listener.lifeCycleStopping(LifeCycle event) |
void |
FileNoticeLifeCycleListener.lifeCycleStopping(LifeCycle event) |
void |
AbstractLifeCycle.AbstractLifeCycleListener.lifeCycleStopping(LifeCycle event) |
protected void |
ContainerLifeCycle.start(LifeCycle l)
Starts the given lifecycle.
|
protected void |
ContainerLifeCycle.stop(LifeCycle l)
Stops the given lifecycle.
|
| Constructor and Description |
|---|
StopLifeCycle(LifeCycle lifecycle) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLeakPreventer
AbstractLeakPreventer
Abstract base class for code that seeks to avoid pinning of webapp classloaders by using the jetty classloader to
proactively call the code that pins them (generally pinned as static data members, or as static
data members that are daemon threads (which use the context classloader)).
|
class |
AppContextLeakPreventer
AppContextLeakPreventer
Cause the classloader that is pinned by AppContext.getAppContext() to be
a container or system classloader, not a webapp classloader.
|
class |
AWTLeakPreventer
AWTLeakPreventer
See https://issues.jboss.org/browse/AS7-3733
The java.awt.Toolkit class has a static field that is the default toolkit.
|
class |
DOMLeakPreventer
DOMLeakPreventer
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6916498
Prevent the RuntimeException that is a static member of AbstractDOMParser
from pinning a webapp classloader by causing it to be set here by a non-webapp classloader.
|
class |
DriverManagerLeakPreventer
DriverManagerLeakPreventer
Cause DriverManager.getCallerClassLoader() to be called, which will pin the classloader.
|
class |
GCThreadLeakPreventer
GCThreadLeakPreventer
Prevents a call to sun.misc.GC.requestLatency pinning a webapp classloader
by calling it with a non-webapp classloader.
|
class |
Java2DLeakPreventer
Java2DLeakPreventer
Prevent pinning of webapp classloader by pre-loading sun.java2d.Disposer class
before webapp classloaders are created.
|
class |
LDAPLeakPreventer
LDAPLeakPreventer
If com.sun.jndi.LdapPoolManager class is loaded and the system property
com.sun.jndi.ldap.connect.pool.timeout is set to a nonzero value, a daemon
thread is started which can pin a webapp classloader if it is the first to
load the LdapPoolManager.
|
class |
LoginConfigurationLeakPreventer
LoginConfigurationLeakPreventer
The javax.security.auth.login.Configuration class keeps a static reference to the
thread context classloader.
|
class |
SecurityProviderLeakPreventer
SecurityProviderLeakPreventer
Some security providers, such as sun.security.pkcs11.SunPKCS11 start a deamon thread,
which will use the thread context classloader.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SslContextFactory
SslContextFactory is used to configure SSL connectors
as well as HttpClient.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Scheduler |
| Modifier and Type | Class and Description |
|---|---|
class |
ExecutorSizedThreadPool
Deprecated.
|
class |
ExecutorThreadPool
A
ThreadPool.SizedThreadPool wrapper around ThreadPoolExecutor. |
class |
MonitoredQueuedThreadPool
A
QueuedThreadPool subclass that monitors its own activity by recording queue and task statistics. |
class |
QueuedThreadPool |
class |
ReservedThreadExecutor
An Executor using preallocated/reserved Threads from a wrapped Executor.
|
class |
ScheduledExecutorScheduler
Implementation of
Scheduler based on JDK's ScheduledThreadPoolExecutor. |
class |
Sweeper
A utility class to perform periodic sweeping of resources.
|
class |
TimerScheduler
A scheduler based on the the JVM Timer class
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ShutdownThread.deregister(LifeCycle lifeCycle) |
static boolean |
ShutdownThread.isRegistered(LifeCycle lifeCycle) |
static void |
ShutdownThread.register(int index,
LifeCycle... lifeCycles) |
static void |
ShutdownThread.register(LifeCycle... lifeCycles) |
| Modifier and Type | Class and Description |
|---|---|
class |
EatWhatYouKill
A strategy where the thread that produces will run the resulting task if it
is possible to do so without thread starvation.
|
Copyright © 1995–2018 Webtide. All rights reserved.