Package org.glassfish.concurrent.admin
Class ManagedExecutorServiceBaseManager
- java.lang.Object
-
- org.glassfish.concurrent.admin.ManagedExecutorServiceBaseManager
-
- All Implemented Interfaces:
org.glassfish.resources.admin.cli.ResourceManager
- Direct Known Subclasses:
ManagedExecutorServiceManager,ManagedScheduledExecutorServiceManager
public abstract class ManagedExecutorServiceBaseManager extends Object implements org.glassfish.resources.admin.cli.ResourceManager
The base managed executor service manager for managed executor service and managed scheduled executor service
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcontextInfoprotected StringcontextInfoEnabledprotected StringcorePoolSizeprotected Stringdescriptionprotected static StringDESCRIPTIONprotected Stringenabledprotected StringenabledValueForTargetprotected org.glassfish.api.admin.ServerEnvironmentenvironmentprotected StringhungAfterSecondsprotected StringjndiNameprotected StringkeepAliveSecondsprotected static com.sun.enterprise.util.LocalStringManagerImpllocalStringsprotected StringlongRunningTasksprotected org.glassfish.resourcebase.resources.util.BindableResourcesHelperresourcesHelperprotected org.glassfish.resourcebase.resources.admin.cli.ResourceUtilresourceUtilprotected StringthreadLifetimeSecondsprotected StringthreadPriority
-
Constructor Summary
Constructors Constructor Description ManagedExecutorServiceBaseManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.glassfish.resourcebase.resources.api.ResourceStatuscreate(com.sun.enterprise.config.serverbeans.Resources resources, HashMap attributes, Properties properties, String target)com.sun.enterprise.config.serverbeans.ResourcecreateConfigBean(com.sun.enterprise.config.serverbeans.Resources resources, HashMap attributes, Properties properties, boolean validate)protected abstract org.glassfish.concurrent.config.ManagedExecutorServiceBasecreateConfigBean(com.sun.enterprise.config.serverbeans.Resources param, Properties properties)protected org.glassfish.concurrent.config.ManagedExecutorServiceBasecreateResource(com.sun.enterprise.config.serverbeans.Resources param, Properties properties)org.glassfish.resourcebase.resources.api.ResourceStatusdelete(com.sun.enterprise.config.serverbeans.Resources resources, String jndiName, String target)abstract StringgetResourceType()protected org.glassfish.resourcebase.resources.api.ResourceStatusisValid(com.sun.enterprise.config.serverbeans.Resources resources, boolean validateResourceRef, String target)protected voidsetAttributes(HashMap attributes, String target)protected voidsetAttributesOnConfigBean(org.glassfish.concurrent.config.ManagedExecutorServiceBase managedExecutorService, Properties properties)
-
-
-
Field Detail
-
localStrings
protected static final com.sun.enterprise.util.LocalStringManagerImpl localStrings
-
DESCRIPTION
protected static final String DESCRIPTION
- See Also:
- Constant Field Values
-
jndiName
protected String jndiName
-
description
protected String description
-
threadPriority
protected String threadPriority
-
contextInfoEnabled
protected String contextInfoEnabled
-
contextInfo
protected String contextInfo
-
longRunningTasks
protected String longRunningTasks
-
hungAfterSeconds
protected String hungAfterSeconds
-
corePoolSize
protected String corePoolSize
-
keepAliveSeconds
protected String keepAliveSeconds
-
threadLifetimeSeconds
protected String threadLifetimeSeconds
-
enabled
protected String enabled
-
enabledValueForTarget
protected String enabledValueForTarget
-
resourceUtil
@Inject protected org.glassfish.resourcebase.resources.admin.cli.ResourceUtil resourceUtil
-
environment
@Inject protected org.glassfish.api.admin.ServerEnvironment environment
-
resourcesHelper
@Inject protected org.glassfish.resourcebase.resources.util.BindableResourcesHelper resourcesHelper
-
-
Method Detail
-
getResourceType
public abstract String getResourceType()
- Specified by:
getResourceTypein interfaceorg.glassfish.resources.admin.cli.ResourceManager
-
create
public org.glassfish.resourcebase.resources.api.ResourceStatus create(com.sun.enterprise.config.serverbeans.Resources resources, HashMap attributes, Properties properties, String target) throws Exception- Specified by:
createin interfaceorg.glassfish.resources.admin.cli.ResourceManager- Throws:
Exception
-
isValid
protected org.glassfish.resourcebase.resources.api.ResourceStatus isValid(com.sun.enterprise.config.serverbeans.Resources resources, boolean validateResourceRef, String target)
-
createResource
protected org.glassfish.concurrent.config.ManagedExecutorServiceBase createResource(com.sun.enterprise.config.serverbeans.Resources param, Properties properties) throws PropertyVetoException, org.jvnet.hk2.config.TransactionFailure- Throws:
PropertyVetoExceptionorg.jvnet.hk2.config.TransactionFailure
-
createConfigBean
protected abstract org.glassfish.concurrent.config.ManagedExecutorServiceBase createConfigBean(com.sun.enterprise.config.serverbeans.Resources param, Properties properties) throws PropertyVetoException, org.jvnet.hk2.config.TransactionFailure- Throws:
PropertyVetoExceptionorg.jvnet.hk2.config.TransactionFailure
-
setAttributesOnConfigBean
protected void setAttributesOnConfigBean(org.glassfish.concurrent.config.ManagedExecutorServiceBase managedExecutorService, Properties properties) throws PropertyVetoException, org.jvnet.hk2.config.TransactionFailure- Throws:
PropertyVetoExceptionorg.jvnet.hk2.config.TransactionFailure
-
createConfigBean
public com.sun.enterprise.config.serverbeans.Resource createConfigBean(com.sun.enterprise.config.serverbeans.Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception- Specified by:
createConfigBeanin interfaceorg.glassfish.resources.admin.cli.ResourceManager- Throws:
Exception
-
-