Class 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 Detail

      • localStrings

        protected static final com.sun.enterprise.util.LocalStringManagerImpl localStrings
      • 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
      • 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 Detail

      • ManagedExecutorServiceBaseManager

        public ManagedExecutorServiceBaseManager()
    • Method Detail

      • 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​(HashMap 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