Package com.sun.corba.ee.impl.threadpool
Interface Exceptions
-
@ExceptionWrapper(idPrefix="ORBTPOOL") public interface Exceptions
Exception wrapper class. The logex WrapperGenerator uses this interface to generate an implementation which returns the appropriate exception, and generates a log report when the method is called. This is used for all implementation classes in this package. The exception IDs are allocated in blocks of EXCEPTIONS_PER_CLASS, which is a lot more than is needed, but we have 32 bits for IDs, and multiples of a suitably chosen EXCEPTIONS_PER_CLASS (like 100 here) are easy to read in error messages.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXCEPTIONS_PER_CLASS
static Exceptions
self
static int
TP_START
static int
TPM_START
static int
TSV_START
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
interruptedJoinCallWhileClosingThreadPool(java.lang.InterruptedException exc, java.lang.Thread wt, ThreadPoolImpl aThis)
void
threadGroupDestroyFailed(java.lang.IllegalThreadStateException exc, java.lang.ThreadGroup threadGroup)
void
threadGroupHasActiveThreadsInClose(java.lang.ThreadGroup thgrp, int numThreads)
void
threadGroupHasSubGroupsInClose(java.lang.ThreadGroup threadGroup, int numGroups)
void
threadGroupIsDestroyed(java.lang.ThreadGroup thgrp)
void
threadPoolCloseError()
java.lang.RuntimeException
threadStateValidatorException(java.lang.Runnable run, java.lang.Throwable exc)
void
workerThreadCaughtUnexpectedThrowable(java.lang.Throwable e, java.lang.Thread aThis)
void
workerThreadCreated(java.lang.Thread thread, java.lang.ClassLoader contextClassLoader)
void
workerThreadCreationFailure(java.lang.Throwable t)
void
workerThreadDoWorkThrowable(java.lang.Throwable t, java.lang.Thread aThis)
void
workerThreadForgotClassloaderReset(java.lang.Thread aThis, java.lang.ClassLoader currentClassLoader, java.lang.ClassLoader workerThreadClassLoader)
java.lang.RuntimeException
workerThreadGetContextClassloaderFailed(java.lang.SecurityException se, java.lang.Thread aThis)
void
workerThreadNotNeeded(java.lang.Thread aThis, int currentNumberOfThreads, int minimumNumberOfThreads)
void
workerThreadResetContextClassloaderFailed(java.lang.SecurityException se, java.lang.Thread aThis)
void
workerThreadThrowableFromRequestWork(java.lang.Throwable t, java.lang.Thread aThis, java.lang.String name)
void
workQueueThreadInterrupted(java.lang.InterruptedException exc, java.lang.String name, java.lang.Boolean valueOf)
-
-
-
Field Detail
-
self
static final Exceptions self
-
EXCEPTIONS_PER_CLASS
static final int EXCEPTIONS_PER_CLASS
- See Also:
- Constant Field Values
-
TP_START
static final int TP_START
- See Also:
- Constant Field Values
-
TPM_START
static final int TPM_START
- See Also:
- Constant Field Values
-
TSV_START
static final int TSV_START
- See Also:
- Constant Field Values
-
-
Method Detail
-
interruptedJoinCallWhileClosingThreadPool
@Message("Join was interrrupted on thread {0} while closing ThreadPool {1}") @Log(id=1) void interruptedJoinCallWhileClosingThreadPool(@Chain java.lang.InterruptedException exc, java.lang.Thread wt, ThreadPoolImpl aThis)
-
workerThreadCreated
@Message("Worker Thread {0} has been created with ClassLoader {1}") @Log(id=1, level=FINE) void workerThreadCreated(java.lang.Thread thread, java.lang.ClassLoader contextClassLoader)
-
workerThreadCreationFailure
@Message("Worker thread creation failure") @Log(id=2, level=SEVERE) void workerThreadCreationFailure(@Chain java.lang.Throwable t)
-
workerThreadGetContextClassloaderFailed
@Message("Unable to get worker thread {0}; check securiy policy file: must grant \'getContextClassLoader\' runtime permission") @Log(id=3) java.lang.RuntimeException workerThreadGetContextClassloaderFailed(@Chain java.lang.SecurityException se, java.lang.Thread aThis)
-
workerThreadForgotClassloaderReset
@Message("Worker thread {0} context ClassLoader was changed to {1}; will attempt a reset to its initial ClassLoader {2} ") @Log(id=4, level=FINE) void workerThreadForgotClassloaderReset(java.lang.Thread aThis, java.lang.ClassLoader currentClassLoader, java.lang.ClassLoader workerThreadClassLoader)
-
workerThreadResetContextClassloaderFailed
@Message("Unable to set worker thread {0}; check securiy policy file: must grant \'setContextClassLoader\' runtime permission") @Log(id=6) void workerThreadResetContextClassloaderFailed(@Chain java.lang.SecurityException se, java.lang.Thread aThis)
-
workerThreadDoWorkThrowable
@Message("Worker thread {0} caught throwable while executing work.") @Log(id=7) void workerThreadDoWorkThrowable(@Chain java.lang.Throwable t, java.lang.Thread aThis)
-
workerThreadNotNeeded
@Message("Worker thread {0} will exit; current thread count {1} is greater than minimum worker threads needed {2}") @Log(id=8, level=FINE) void workerThreadNotNeeded(java.lang.Thread aThis, int currentNumberOfThreads, int minimumNumberOfThreads)
-
workQueueThreadInterrupted
@Message("Worker thread from thread pool {0} was interrupted: closeCalled is {1}") @Log(id=9, level=FINE) void workQueueThreadInterrupted(java.lang.InterruptedException exc, java.lang.String name, java.lang.Boolean valueOf)
-
workerThreadThrowableFromRequestWork
@Message("Worker thread {0} caught throwable when requesting work from work queue {1}") @Log(id=10, level=FINE) void workerThreadThrowableFromRequestWork(@Chain java.lang.Throwable t, java.lang.Thread aThis, java.lang.String name)
-
workerThreadCaughtUnexpectedThrowable
@Message("Worker thread {0} caught unexpected throwable") @Log(id=11) void workerThreadCaughtUnexpectedThrowable(@Chain java.lang.Throwable e, java.lang.Thread aThis)
-
threadPoolCloseError
@Message("Error in closing ThreadPool") @Log(id=101) void threadPoolCloseError()
-
threadGroupIsDestroyed
@Message("ThreadGroup {0} is already destroyed; cannot destroy it again") @Log(id=102) void threadGroupIsDestroyed(java.lang.ThreadGroup thgrp)
-
threadGroupHasActiveThreadsInClose
@Message("ThreadGroup {0} has {1} active threads: destroy may cause exceptions") @Log(id=103) void threadGroupHasActiveThreadsInClose(java.lang.ThreadGroup thgrp, int numThreads)
-
threadGroupHasSubGroupsInClose
@Message("ThreadGroup {0} has {1} sub-ThreadGroups: destroy may cause exceptions") @Log(id=104) void threadGroupHasSubGroupsInClose(java.lang.ThreadGroup threadGroup, int numGroups)
-
threadGroupDestroyFailed
@Message("ThreadGroup {0} could not be destroyed") @Log(id=105) void threadGroupDestroyFailed(@Chain java.lang.IllegalThreadStateException exc, java.lang.ThreadGroup threadGroup)
-
threadStateValidatorException
@Message("Thread state validator threw an exception on validator {0}") @Log(id=201) java.lang.RuntimeException threadStateValidatorException(java.lang.Runnable run, @Chain java.lang.Throwable exc)
-
-