Package org.glassfish.concurrent.admin
Class ManagedExecutorServiceBaseManager
- java.lang.Object
-
- org.glassfish.concurrent.admin.ManagedExecutorServiceBaseManager
-
- All Implemented Interfaces:
ResourceManager
- Direct Known Subclasses:
ManagedExecutorServiceManager,ManagedScheduledExecutorServiceManager
public abstract class ManagedExecutorServiceBaseManager extends Object implements 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 ServerEnvironmentenvironmentprotected StringhungAfterSecondsprotected StringjndiNameprotected StringkeepAliveSecondsprotected static LocalStringManagerImpllocalStringsprotected StringlongRunningTasksprotected BindableResourcesHelperresourcesHelperprotected ResourceUtilresourceUtilprotected StringthreadLifetimeSecondsprotected StringthreadPriority
-
Constructor Summary
Constructors Constructor Description ManagedExecutorServiceBaseManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResourceStatuscreate(Resources resources, HashMap attributes, Properties properties, String target)creates the resource as a child to the resources providedResourcecreateConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate)creates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configurationprotected abstract ManagedExecutorServiceBasecreateConfigBean(Resources param, Properties properties)protected ManagedExecutorServiceBasecreateResource(Resources param, Properties properties)ResourceStatusdelete(Resources resources, String jndiName, String target)abstract StringgetResourceType()returns the resource-typeprotected ResourceStatusisValid(Resources resources, boolean validateResourceRef, String target)protected voidsetAttributes(HashMap attributes, String target)protected voidsetAttributesOnConfigBean(ManagedExecutorServiceBase managedExecutorService, Properties properties)
-
-
-
Field Detail
-
localStrings
protected static final 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 ResourceUtil resourceUtil
-
environment
@Inject protected ServerEnvironment environment
-
resourcesHelper
@Inject protected BindableResourcesHelper resourcesHelper
-
-
Method Detail
-
getResourceType
public abstract String getResourceType()
Description copied from interface:ResourceManagerreturns the resource-type- Specified by:
getResourceTypein interfaceResourceManager- Returns:
- resource-type
-
create
public ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
Description copied from interface:ResourceManagercreates the resource as a child to the resources provided- Specified by:
createin interfaceResourceManager- Parameters:
resources- parent for the resource to be createdattributes- resource configurationproperties- propertiestarget- target- Returns:
- ResourceStatus indicating the status of resource creation
- Throws:
Exception- when unable to create the resource
-
isValid
protected ResourceStatus isValid(Resources resources, boolean validateResourceRef, String target)
-
createResource
protected ManagedExecutorServiceBase createResource(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure
-
createConfigBean
protected abstract ManagedExecutorServiceBase createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure
-
setAttributesOnConfigBean
protected void setAttributesOnConfigBean(ManagedExecutorServiceBase managedExecutorService, Properties properties) throws PropertyVetoException, TransactionFailure
-
createConfigBean
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
Description copied from interface:ResourceManagercreates config-bean equivalent for the resource configuration provided as attributes and properties
Does not persist the configuration- Specified by:
createConfigBeanin interfaceResourceManager- Parameters:
resources- parent for the resource to be createdattributes- attributes of the resourceproperties- properties of the resourcevalidate- indicate whether config validation is required or not- Returns:
- Config-Bean equivalent of the resource
- Throws:
Exception- when unable to create config-bean-equivalent
-
-