public abstract class ManagedExecutorServiceBaseManager extends Object implements ResourceManager
Modifier and Type | Field and Description |
---|---|
protected String |
contextInfo |
protected String |
contextInfoEnabled |
protected String |
corePoolSize |
protected String |
description |
protected static String |
DESCRIPTION |
protected String |
enabled |
protected String |
enabledValueForTarget |
protected ServerEnvironment |
environment |
protected String |
hungAfterSeconds |
protected String |
jndiName |
protected String |
keepAliveSeconds |
protected static LocalStringManagerImpl |
localStrings |
protected String |
longRunningTasks |
protected BindableResourcesHelper |
resourcesHelper |
protected ResourceUtil |
resourceUtil |
protected String |
threadLifetimeSeconds |
protected String |
threadPriority |
Constructor and Description |
---|
ManagedExecutorServiceBaseManager() |
Modifier and Type | Method and Description |
---|---|
ResourceStatus |
create(Resources resources,
HashMap attributes,
Properties properties,
String target)
creates the resource as a child to the resources provided
|
Resource |
createConfigBean(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 configuration |
protected abstract ManagedExecutorServiceBase |
createConfigBean(Resources param,
Properties properties) |
protected ManagedExecutorServiceBase |
createResource(Resources param,
Properties properties) |
ResourceStatus |
delete(Resources resources,
String jndiName,
String target) |
abstract String |
getResourceType()
returns the resource-type
|
protected ResourceStatus |
isValid(Resources resources,
boolean validateResourceRef,
String target) |
protected void |
setAttributes(HashMap attributes,
String target) |
protected void |
setAttributesOnConfigBean(ManagedExecutorServiceBase managedExecutorService,
Properties properties) |
protected static final LocalStringManagerImpl localStrings
protected static final String DESCRIPTION
protected String jndiName
protected String description
protected String threadPriority
protected String contextInfoEnabled
protected String contextInfo
protected String longRunningTasks
protected String hungAfterSeconds
protected String corePoolSize
protected String keepAliveSeconds
protected String threadLifetimeSeconds
protected String enabled
protected String enabledValueForTarget
@Inject protected ResourceUtil resourceUtil
@Inject protected ServerEnvironment environment
@Inject protected BindableResourcesHelper resourcesHelper
public abstract String getResourceType()
ResourceManager
getResourceType
in interface ResourceManager
public ResourceStatus create(Resources resources, HashMap attributes, Properties properties, String target) throws Exception
ResourceManager
create
in interface ResourceManager
resources
- parent for the resource to be createdattributes
- resource configurationproperties
- propertiestarget
- targetException
- when unable to create the resourceprotected ResourceStatus isValid(Resources resources, boolean validateResourceRef, String target)
protected ManagedExecutorServiceBase createResource(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure
protected abstract ManagedExecutorServiceBase createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure
protected void setAttributesOnConfigBean(ManagedExecutorServiceBase managedExecutorService, Properties properties) throws PropertyVetoException, TransactionFailure
public Resource createConfigBean(Resources resources, HashMap attributes, Properties properties, boolean validate) throws Exception
ResourceManager
createConfigBean
in interface ResourceManager
resources
- parent for the resource to be createdattributes
- attributes of the resourceproperties
- properties of the resourcevalidate
- indicate whether config validation is required or notException
- when unable to create config-bean-equivalentCopyright © 2018. All rights reserved.