|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.thread.AbstractExecutor
org.norther.tammi.core.thread.DefaultThreadedExecutor
public class DefaultThreadedExecutor
A default implementation of ThreadedExecutor.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultThreadedExecutor()
Constructs a new threaded executor. |
|
| Method Summary | |
|---|---|
protected ExecutorService |
getExecutor()
Gets the implementation of the executor. |
ObjectName |
getThreadFactoryName()
Gets the thread factory of this executor. |
void |
handleNotification(Notification notif,
Object handback)
Handles notifications from the embedded thread factory. |
protected ExecutorService |
newExecutor()
Creates the implementation of the executor. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
setThreadFactoryName(ObjectName factory)
Sets the thread factory of this executor. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.thread.AbstractExecutor |
|---|
awaitTermination, execute, getActiveCount, getCompletedTaskCount, getTaskCount, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isStarted, isTerminated, shutdown, shutdownNow, start, stop, submit, submit, submit |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.thread.Executor |
|---|
getActiveCount, getCompletedTaskCount, getTaskCount |
| Methods inherited from interface java.util.concurrent.ExecutorService |
|---|
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit |
| Methods inherited from interface java.util.concurrent.Executor |
|---|
execute |
| Methods inherited from interface org.norther.tammi.core.base.Startable |
|---|
isStarted, start, stop |
| Constructor Detail |
|---|
public DefaultThreadedExecutor()
| Method Detail |
|---|
public void postmanaged()
Manageable
postmanaged in interface Manageablepostmanaged in class AbstractExecutor
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class AbstractExecutorException - if the adaptee refused to be unmanaged.public ObjectName getThreadFactoryName()
ThreadedExecutor
getThreadFactoryName in interface ThreadedExecutorpublic void setThreadFactoryName(ObjectName factory)
ThreadedExecutor
setThreadFactoryName in interface ThreadedExecutorfactory - the name of the factory or a query.
public void handleNotification(Notification notif,
Object handback)
handleNotification in interface NotificationListenernotif - the notification.handback - not used.protected ExecutorService getExecutor()
AbstractExecutor
getExecutor in class AbstractExecutorprotected ExecutorService newExecutor()
AbstractExecutor
newExecutor in class AbstractExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||