Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.management.runtime
Interface ServletRuntimeMBean

All Superinterfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface ServletRuntimeMBean
extends RuntimeMBean

Describes a servlet.

Access limited to the following security roles:
Operator

Method Summary
 String getContextPath()
          Provides the context path for this servlet.
 int getExecutionTimeAverage()
          Provides the average amount of time all invocations of the servlet have executed since created.
 int getExecutionTimeHigh()
          Provides the amount of time the single longest invocation of the servlet has executed since created.
 int getExecutionTimeLow()
          Provides the amount of time the single shortest invocation of the servlet has executed since created.
 long getExecutionTimeTotal()
          Provides the total amount of time all invocations of the servlet have executed since created.
 int getInvocationTotalCount()
          Provides a total count of the times this servlet has been invoked.
 int getPoolMaxCapacity()
          Provides the maximum capacity of this servlet for single thread model servlets.
 int getReloadTotalCount()
          Provides a total count of the number of times this servlet has been reloaded.
 String getServletClassName()
          Provides the servlet class name
 String getServletName()
          Provides the name of this instance of a servlet.
 String getServletPath()
          Provides the servlet path.
 String getURL()
          Provides the value of the URL for this servlet.
 String[] getURLPatterns()
          Provides a description of the URL patterns for this servlet.
 Serializable[] invokeAnnotatedMethods(Class<? extends Annotation> annotationToMatch, Serializable... arguments)
          Invokes annotated public methods on the servlet object which is managed by this ServletRuntimeMBean.
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getServletName

String getServletName()

Provides the name of this instance of a servlet.

Returns:
The servletName value

getServletClassName

String getServletClassName()

Provides the servlet class name

Returns:
The servlet class name

getReloadTotalCount

int getReloadTotalCount()

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

Returns:
The reloadTotalCount value

getInvocationTotalCount

int getInvocationTotalCount()

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

Returns:
The invocationTotalCount value

getPoolMaxCapacity

int getPoolMaxCapacity()

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

Returns:
The poolMaxCapacity value

getExecutionTimeTotal

long getExecutionTimeTotal()

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

Returns:
The executionTimeTotal value

getExecutionTimeHigh

int getExecutionTimeHigh()

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

Returns:
The executionTimeHigh value

getExecutionTimeLow

int getExecutionTimeLow()

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.

Returns:
The executionTimeLow value

getExecutionTimeAverage

int getExecutionTimeAverage()

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

Returns:
The executionTimeAverage value

getServletPath

String getServletPath()

Provides the servlet path.

Returns:
The servletPath value

getContextPath

String getContextPath()

Provides the context path for this servlet.

Returns:
The contextPath value

getURL

String getURL()

Provides the value of the URL for this servlet.

Returns:
The uRL value

getURLPatterns

String[] getURLPatterns()

Provides a description of the URL patterns for this servlet.

Returns:
url patterns for this servlet

invokeAnnotatedMethods

Serializable[] invokeAnnotatedMethods(Class<? extends Annotation> annotationToMatch,
                                      Serializable... arguments)
                                      throws IllegalAccessException,
                                             IllegalArgumentException,
                                             InvocationTargetException
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.

Parameters:
annotationToMatch - The annotation class used to annotate the methods.
arguments - 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.
Returns:
The result of invoking all annotated methods. Zero size array will be returned if there's no method annotated by the annotation.
Throws:
IllegalAccessException - if annotated method does not have public modifier
IllegalArgumentException - if the type or number of the passed arguments do not match the parameters of invoked method.
InvocationTargetException - whenever the invoked method throws exception.
ClassCastException - if annotated method's return object can't be serialized.

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02