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
FieldsModifier and TypeFieldDescriptionstatic final int
static final Exceptions
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
interruptedJoinCallWhileClosingThreadPool
(InterruptedException exc, Thread wt, ThreadPoolImpl aThis) void
threadGroupDestroyFailed
(IllegalThreadStateException exc, ThreadGroup threadGroup) void
threadGroupHasActiveThreadsInClose
(ThreadGroup thgrp, int numThreads) void
threadGroupHasSubGroupsInClose
(ThreadGroup threadGroup, int numGroups) void
void
threadStateValidatorException
(Runnable run, Throwable exc) void
void
workerThreadCreated
(Thread thread, ClassLoader contextClassLoader) void
void
workerThreadDoWorkThrowable
(Throwable t, Thread aThis) void
workerThreadForgotClassloaderReset
(Thread aThis, ClassLoader currentClassLoader, ClassLoader workerThreadClassLoader) void
workerThreadNotNeeded
(Thread aThis, int currentNumberOfThreads, int minimumNumberOfThreads) void
void
workerThreadThrowableFromRequestWork
(Throwable t, Thread aThis, String name) void
workQueueThreadInterrupted
(InterruptedException exc, String name, Boolean valueOf)
-
Field Details
-
self
-
EXCEPTIONS_PER_CLASS
static final int EXCEPTIONS_PER_CLASS- See Also:
-
TP_START
static final int TP_START- See Also:
-
TPM_START
static final int TPM_START- See Also:
-
TSV_START
static final int TSV_START- See Also:
-
-
Method Details
-
interruptedJoinCallWhileClosingThreadPool
@Message("Join was interrrupted on thread {0} while closing ThreadPool {1}") @Log(id=1) void interruptedJoinCallWhileClosingThreadPool(@Chain InterruptedException exc, Thread wt, ThreadPoolImpl aThis) -
workerThreadCreated
@Message("Worker Thread {0} has been created with ClassLoader {1}") @Log(id=1, level=FINE) void workerThreadCreated(Thread thread, ClassLoader contextClassLoader) -
workerThreadCreationFailure
@Message("Worker thread creation failure") @Log(id=2, level=SEVERE) void workerThreadCreationFailure(@Chain Throwable t) -
workerThreadGetContextClassloaderFailed
@Message("Unable to get worker thread {0}; check securiy policy file: must grant \'getContextClassLoader\' runtime permission") @Log(id=3) RuntimeException workerThreadGetContextClassloaderFailed(@Chain SecurityException se, 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(Thread aThis, ClassLoader currentClassLoader, 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 SecurityException se, Thread aThis) -
workerThreadDoWorkThrowable
-
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(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(InterruptedException exc, String name, Boolean valueOf) -
workerThreadThrowableFromRequestWork
-
workerThreadCaughtUnexpectedThrowable
-
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(ThreadGroup thgrp) -
threadGroupHasActiveThreadsInClose
@Message("ThreadGroup {0} has {1} active threads: destroy may cause exceptions") @Log(id=103) void threadGroupHasActiveThreadsInClose(ThreadGroup thgrp, int numThreads) -
threadGroupHasSubGroupsInClose
@Message("ThreadGroup {0} has {1} sub-ThreadGroups: destroy may cause exceptions") @Log(id=104) void threadGroupHasSubGroupsInClose(ThreadGroup threadGroup, int numGroups) -
threadGroupDestroyFailed
@Message("ThreadGroup {0} could not be destroyed") @Log(id=105) void threadGroupDestroyFailed(@Chain IllegalThreadStateException exc, ThreadGroup threadGroup) -
threadStateValidatorException
@Message("Thread state validator threw an exception on validator {0}") @Log(id=201) RuntimeException threadStateValidatorException(Runnable run, @Chain Throwable exc)
-