|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JaxRsApplicationRuntimeMBean
This the runtime server MBean for a JAX-RS application. There can be more than one JAX-RS application per Web Application. The list of available JAX-RS applications can be got through the method public JaxRsApplicationMBean[] getJaxRsApplications() at weblogic.management.runtime.WebAppComponentRuntimeMBean
The lookup method to find a specific JAX-RS application with given name is public JaxRsApplicationMBean lookupJaxRsApplication(String name)
Method Summary | |
---|---|
abstract Set<String> |
getAllRegisteredClasses() Get all JAX-RS/Jersey component and provider classes registered either explicitly or via discovery (e.g. |
abstract String |
getApplicationClass() Get the application class used for configuration of Jersey application. |
abstract String |
getApplicationName() Get the application name. |
abstract long |
getErrorCount() Deprecated. 12.2.1.0 Use JaxRsExceptionMapperStatisticsRuntimeMBean.getUnsuccessfulMappings() instead. |
abstract JaxRsExceptionMapperStatisticsRuntimeMBean |
getExceptionMapperStatistics() Get statistics about registered exception mappers. |
abstract HashMap |
getHttpMethodCounts() Deprecated. 12.2.1.0 |
abstract String[] |
getLastErrorDetails() Deprecated. 12.2.1.0 |
abstract String |
getLastErrorMapper() Deprecated. 12.2.1.0 |
abstract long |
getLastErrorTime() Deprecated. 12.2.1.0 |
abstract String |
getLastHttpMethod() Deprecated. 12.2.1.0 |
abstract int |
getLastResponseCode() Deprecated. 12.2.1.0 Use JaxRsResponseStatisticsRuntimeMBean.getLastResponseCode() instead. |
abstract Map<String,String> |
getProperties() Get the map of configuration properties converted to strings. |
abstract Set<String> |
getRegisteredClasses() Get a set of string names of resource classes registered by the user. |
abstract Set<String> |
getRegisteredInstances() Get a set of string names of classes of user registered instances. |
abstract JaxRsExecutionStatisticsRuntimeMBean |
getRequestStatistics() Get the global application statistics of request execution. |
abstract JaxRsResourceConfigTypeRuntimeMBean |
getResourceConfig() Deprecated. 12.2.1.0 Use JaxRsApplicationRuntimeMBean.getProperties() / JaxRsApplicationRuntimeMBean.getApplicationClass() instead. |
abstract String |
getResourcePattern() Gets the WSM resource pattern for this JAX-RS application. |
abstract HashMap |
getResponseCodeCounts() Deprecated. 12.2.1.0 Use JaxRsResponseStatisticsRuntimeMBean.getResponseCodes() instead. |
abstract JaxRsResponseStatisticsRuntimeMBean |
getResponseStatistics() Get global application response statistics. |
abstract String |
getRootPath() Retrieve the root path for this JAX-RS Application. |
abstract JaxRsResourceRuntimeMBean[] |
getRootResources() Deprecated. 12.2.1.0 Use JaxRsApplicationRuntimeMBean.getRootResourcesByClass() instead. |
abstract JaxRsResourceRuntimeMBean[] |
getRootResourcesByClass() Get the statistics for each resource Class that is deployed in the application. |
abstract JaxRsUriRuntimeMBean[] |
getRootResourcesByUri() Get the statistics for each URI that is exposed in the application. |
abstract ServletRuntimeMBean |
getServlet() Provides the MBean of the servlet that handles the corresponding JAX-RS application. |
abstract long |
getStartTime() Get the start time of the application (when application was initialized). |
abstract String |
getWadlUrl() Retrieve the WADL URI for this JAX-RS Application. |
abstract boolean |
isWadlGenerationEnabled() Indicates whether this JAX-RS application currently has WADL generation enabled. |
abstract JaxRsResourceRuntimeMBean |
lookupRootResource(String name) Deprecated. 12.2.1.0 Use JaxRsApplicationRuntimeMBean.lookupRootResourcesByClass(String) instead. |
abstract JaxRsResourceRuntimeMBean |
lookupRootResourcesByClass(String className) Provides the root resource MBean identified by the class name of the resource. |
abstract JaxRsUriRuntimeMBean |
lookupRootResourcesByUri(String uri) Provides the root resource MBean identified by the uri path of the resource. |
abstract void |
setWadlGenerationEnabled(boolean wadlGenEnabled) Enable/Disable WADL generation for this JAX-RS application. |
Methods inherited from interface weblogic.management.runtime.JaxRsMonitoringInfoRuntimeMBean |
---|
getExecutionTimeAverage, getExecutionTimeHigh, getExecutionTimeLow, getExecutionTimeTotal, getInvocationCount, getLastInvocationTime |
Methods inherited from interface weblogic.management.runtime.RuntimeMBean |
---|
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface weblogic.management.WebLogicMBean |
---|
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, 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 |
---|
String getApplicationName()
String getApplicationClass()
Map<String,String> getProperties()
long getStartTime()
getStartTime
in interface JaxRsMonitoringInfoRuntimeMBean
Set<String> getRegisteredClasses()
Set<String> getRegisteredInstances()
Set<String> getAllRegisteredClasses()
JaxRsExecutionStatisticsRuntimeMBean getRequestStatistics()
JaxRsResponseStatisticsRuntimeMBean getResponseStatistics()
JaxRsExceptionMapperStatisticsRuntimeMBean getExceptionMapperStatistics()
JaxRsResourceRuntimeMBean[] getRootResourcesByClass()
Class
that is deployed in the application. Note that one resource class can serve request matched to different URIs. The array contains resource classes which are registered in the resource model plus resource classes of sub resources returned from sub resource locators.JaxRsResourceRuntimeMBean lookupRootResourcesByClass(String className)
className
- The name of the resource MBean.JaxRsUriRuntimeMBean[] getRootResourcesByUri()
JaxRsUriRuntimeMBean lookupRootResourcesByUri(String uri)
uri
- uri (path) of the resource MBean.ServletRuntimeMBean getServlet()
Provides the MBean of the servlet that handles the corresponding JAX-RS application.
Users can get the servlet related metrics from the returned ServletRuntimeMBean
boolean isWadlGenerationEnabled()
true
if the WADL generation is enabled, false
otherwise.void setWadlGenerationEnabled(boolean wadlGenEnabled)
String getWadlUrl()
String getRootPath()
String getResourcePattern()
null
otherwise.JaxRsResourceConfigTypeRuntimeMBean getResourceConfig()
JaxRsApplicationRuntimeMBean.getProperties()
/ JaxRsApplicationRuntimeMBean.getApplicationClass()
instead.Provides the resource config MBean of the JAX-RS application.
Every JAX-RS application is configured through a resource config. There are several types of resource configs available in Jersey. This method gets the details of the corresponding resource config created by Jersey for this JAX-RS application.
JaxRsResourceRuntimeMBean[] getRootResources()
JaxRsApplicationRuntimeMBean.getRootResourcesByClass()
instead.Provides the array of root resources MBean
Every JAX-RS application contains 1 or more root resources.
JaxRsResourceRuntimeMBean lookupRootResource(String name)
JaxRsApplicationRuntimeMBean.lookupRootResourcesByClass(String)
instead.Provides the root resource MBean identified by the name
name
- The name of the resource MBeanlong getErrorCount()
JaxRsExceptionMapperStatisticsRuntimeMBean.getUnsuccessfulMappings()
instead.Provides the errors count, the number of un-handled exceptions from the JAX-RS application
String[] getLastErrorDetails()
Provides details of the last error. It returns null if there is not exception yet
String getLastErrorMapper()
Provides the exception mapper class used against the last error (if any) occurred. It returns null if no error has been mapped yet.
long getLastErrorTime()
Provides the date-time at which the last error(if any) occurred
String getLastHttpMethod()
Provides the http method name of the last request
int getLastResponseCode()
JaxRsResponseStatisticsRuntimeMBean.getLastResponseCode()
instead.Provides the response code of the last response. Returns -1 if there is no response yet.
HashMap getResponseCodeCounts()
JaxRsResponseStatisticsRuntimeMBean.getResponseCodes()
instead.Provides map with all response codes(int) as keys and their count(long) as values
Key - integer the http response code Value - long the number of times the key is returned
HashMap getHttpMethodCounts()
Provides map with all method names(String) as keys and their count(long) as values
Key - String representing the http method of the request Value - long the number of times such requests processed
|
Copyright 1996, 2015, 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.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |