ServletRuntimeMBean


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Describes a servlet.

       
Security rolesThe following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean:
  • Operator
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.management.runtime.ServletRuntimeMBean
Factory Methods No factory methods. Instances of this MBean are created automatically.
Access Points You can access this MBean from the following MBean attributes:
    Access Points Inherited from RuntimeMBean Because this MBean extends or implements RuntimeMBean, you can also access this MBean by retrieving RuntimeMBeans. The following attributes contain RuntimeMBeans and its subtypes:


    Attributes

    This section describes the following attributes:


    CachingDisabled

    Private property that disables caching in proxies.

    This attribute is not dynamic and requires a server restart to take effect.

           
    Privileges Read only
    Typeboolean

    ContextPath

    Provides the context path for this servlet.

           
    Privileges Read only
    Typejava.lang.String

    ExecutionTimeAverage

    Provides the average amount of time all invocations of the servlet have executed since created.

           
    Privileges Read only
    Typeint

    ExecutionTimeHigh

    Provides the amount of time the single longest invocation of the servlet has executed since created.

           
    Privileges Read only
    Typeint

    ExecutionTimeLow

    Provides the amount of time the single shortest invocation of the servlet has executed since created. Note that for the CounterMonitor, the difference option must be used.

           
    Privileges Read only
    Typeint

    ExecutionTimeTotal

    Provides the total amount of time all invocations of the servlet have executed since created.

           
    Privileges Read only
    Typelong

    InvocationTotalCount

    Provides a total count of the times this servlet has been invoked.

           
    Privileges Read only
    Typeint

    MBeanInfo

    Returns the MBean info for this MBean.

    This attribute is not dynamic and requires a server restart to take effect.

    Deprecated.

           
    Privileges Read only
    Typejavax.management.MBeanInfo

    Name

    The name of this configuration. WebLogic Server uses an MBean to implement and persist the configuration.

           
    Privileges Read only
    Typejava.lang.String

    ObjectName

    Returns the ObjectName under which this MBean is registered in the MBean server.

    This attribute is not dynamic and requires a server restart to take effect.

    Deprecated.

           
    Privileges Read only
    Typeweblogic.management.WebLogicObjectName

    Parent

    Return the immediate parent for this MBean

    This attribute is not dynamic and requires a server restart to take effect.

           
    Privileges Read/Write
    Type

    PoolMaxCapacity

    Provides the maximum capacity of this servlet for single thread model servlets.

           
    Privileges Read only
    Typeint

    Registered

    Returns false if the MBean represented by this object has been unregistered.

    This attribute is not dynamic and requires a server restart to take effect.

    Deprecated.

           
    Privileges Read only
    Typeboolean

    ReloadTotalCount

    Provides a total count of the number of times this servlet has been reloaded.

           
    Privileges Read only
    Typeint

    ServletClassName

    Provides the servlet class name

           
    Privileges Read only
    Typejava.lang.String

    ServletName

    Provides the name of this instance of a servlet.

           
    Privileges Read only
    Typejava.lang.String

    ServletPath

    Provides the servlet path.

           
    Privileges Read only
    Typejava.lang.String

    Type

    Returns the type of the MBean.

    This attribute is not dynamic and requires a server restart to take effect.

           
    Privileges Read only
    Typejava.lang.String

    URL

    Provides the value of the URL for this servlet.

           
    Privileges Read only
    Typejava.lang.String

    URLPatterns

    Provides a description of the URL patterns for this servlet.

           
    Privileges Read only
    Typeclass java.lang.String[]


    Operations

    This section describes the following operations:


      invokeAnnotatedMethods

      Invokes annotated public methods on the servlet object which is managed by this ServletRuntimeMBean. The annotation annotated on invoked methods is specified by application. The annotated methods will be executed under the role of current JMX user, if can't find the JMX user, the method will be executed under the anonymous role.

         
      Operation Name"invokeAnnotatedMethods"
      ParametersObject [] {  annotationToMatcharguments }

      where:

      • annotationToMatch is an object of type java.lang.Class that specifies:

        The annotation class used to annotate the methods.

      • arguments is an object of type [Ljava.io.Serializable; that specifies:

        The arguments used for methods call. If there are multiple methods annotated by specified annotation, same arguments will be used for each of these methods call.

      SignatureString [] { "java.lang.Class", "[Ljava.io.Serializable;" }
      Returns class
      Exceptions
      • java.lang.IllegalAccessException
        IllegalAccessException if annotated method does not have public modifier
      • java.lang.IllegalArgumentException
        IllegalArgumentException if the type or number of the passed arguments do not match the parameters of invoked method.
      • java.lang.reflect.InvocationTargetException
        InvocationTargetException whenever the invoked method throws exception.