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 Details

    • I18N

      protected static final com.sun.enterprise.util.LocalStringManagerImpl I18N
    • jndiName

      protected String jndiName
    • description

      protected String description
    • threadPriority

      protected String threadPriority
    • contextInfoEnabled

      protected String contextInfoEnabled
    • contextInfo

      protected String contextInfo
    • virtual

      protected String virtual
    • longRunningTasks

      protected String longRunningTasks
    • hungAfterSeconds

      protected String hungAfterSeconds
    • hungLoggerPrintOnce

      protected String hungLoggerPrintOnce
    • hungLoggerInitialDelaySeconds

      protected String hungLoggerInitialDelaySeconds
    • hungLoggerIntervalSeconds

      protected String hungLoggerIntervalSeconds
    • 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
  • Constructor Details

    • ManagedExecutorServiceBaseManager

      public ManagedExecutorServiceBaseManager()
  • Method Details

    • getResourceType

      public abstract String getResourceType()
      Specified by:
      getResourceType in interface org.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:
      create in interface org.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)
    • setAttributes

      protected void setAttributes(Map<String,String> attributes, 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:
      PropertyVetoException
      org.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:
      PropertyVetoException
      org.jvnet.hk2.config.TransactionFailure
    • setAttributesOnConfigBean

      protected void setAttributesOnConfigBean(org.glassfish.concurrent.config.ManagedExecutorServiceBase managedExecutorService, Properties properties) throws PropertyVetoException, org.jvnet.hk2.config.TransactionFailure
      Throws:
      PropertyVetoException
      org.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:
      createConfigBean in interface org.glassfish.resources.admin.cli.ResourceManager
      Throws:
      Exception
    • delete

      public org.glassfish.resourcebase.resources.api.ResourceStatus delete(com.sun.enterprise.config.serverbeans.Resources resources, String jndiName, String target) throws Exception
      Throws:
      Exception