|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CallFlowMonitor
Provides CallFlow Monitoring information as well as enables/disables CallFlow Monitoring.
Field Summary | |
---|---|
static String |
APPLICATION_NAME_KEY
Name of application invoked to service a request. |
static String |
BEAN_MANAGED_PERSISTENCE
Bean Managed Persistence Component Type |
static String |
CALL_STACK_METHOD_END
Value of type of a row returned by queryCallStackForRequest(java.lang.String) method. |
static String |
CALL_STACK_METHOD_START
Value of type of a row returned by queryCallStackForRequest(java.lang.String) method. |
static String |
CALL_STACK_REQUEST_END
Value of type of a row returned by queryCallStackForRequest(java.lang.String) method. |
static String |
CALL_STACK_REQUEST_START
Value of type of a row returned by queryCallStackForRequest(java.lang.String) method. |
static String |
CALL_STACK_ROW_TYPE_KEY
This is the key for the row type returned by the queryCallStackForRequest(java.lang.String) method. |
static String |
CLIENT_HOST_KEY
The client host from where the request came in. |
static String |
COMPONENT_NAME_KEY
Name of component invoked to service a request. |
static String |
COMPONENT_TYPE_KEY
The type of the component where the call is in. |
static String |
CONNECTOR_CONTAINER_TYPE
Used in queryPieInformation(java.lang.String) . |
static String |
CONTAINER_MANAGED_PERSISTENCE
Container Managed Persistence Component Type |
static String |
CONTAINER_TYPE_KEY
The type of the container where the call originated |
static String |
EJB_APPLICATION
EJB Application Container |
static String |
EJB_APPLICATION_TYPE
Used in queryPieInformation(java.lang.String) . |
static String |
EJB_CONTAINER
EJB Container |
static String |
EJB_CONTAINER_TYPE
Used in queryPieInformation(java.lang.String) . |
static String |
EXCEPTION_KEY
Exception (if any) for the request. |
static String |
J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType() . |
static String |
MESSAGE_DRIVEN_BEAN
Message Driven Bean Component Type |
static String |
METHOD_NAME_KEY
Name of the method invoked to service a request. |
static String |
MODULE_NAME_KEY
Name of the module invoked to service a request. |
static String |
ORB
ORB Container |
static String |
ORB_LAYER_EJB_CONTAINER_TYPE
Used in queryPieInformation(java.lang.String) . |
static String |
OTHER
OTHER Container, containers that are not monitored for callflow |
static String |
REMOTE_ASYNC_MESSAGE
Remote Aysnchronous Message Request Type. |
static String |
REMOTE_EJB
Remote EJB Request Type |
static String |
REMOTE_WEB
Remote Web Request Type |
static String |
REMOTE_WEB_SERVICE
Remote Web Service Request Type |
static String |
REQUEST_ID_KEY
Key accessing a container-generated Unique ID used by queryCallStackForRequest(java.lang.String) and queryPieInformation(java.lang.String) |
static String |
REQUEST_TYPE_KEY
The type of the Incoming request. |
static String |
RESPONSE_TIME_KEY
Response time for a particular request. |
static String |
SERVLET
Servlet Component Type |
static String |
SERVLET_FILTER
Servlet Filter Component Type |
static String |
STATEFUL_SESSION_BEAN
Stateful Session Bean Component Type |
static String |
STATELESS_SESSION_BEAN
Stateless Session Bean Component Type |
static String |
STATUS_KEY
Status of the request. |
static String |
THREAD_ID_KEY
Thread ID used for a particular request. |
static String |
TIME_STAMP_KEY
TimeStamp obtained from System.nanoTime() |
static String |
TIME_STAMP_MILLIS_KEY
|
static String |
TIMER_EJB
Timer EJB Request Type |
static String |
TRANSACTION_ID_KEY
Transaction ID for a particular request |
static String |
USER_KEY
Username of the Caller making a request. |
static String |
WEB_APPLICATION
WEB Application Container |
static String |
WEB_APPLICATION_TYPE
Used in queryPieInformation(java.lang.String) . |
static String |
WEB_CONTAINER
Web Container |
static String |
WEB_CONTAINER_TYPE
Used in queryPieInformation(java.lang.String) . |
Fields inherited from interface com.sun.appserv.management.base.AMX |
---|
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME |
Method Summary | |
---|---|
void |
clearData()
Deletes all the data that was collected during the last callflow run from the database |
boolean |
deleteRequestIDs(String[] requestId)
Delete a list of request ids. |
String |
getCallerIPFilter()
Gets the at-source IP filter set up on this particular Server Instance. |
String |
getCallerPrincipalFilter()
Gets the at-source Principal filter for this particular Server Instance. |
boolean |
getEnabled()
|
List<Map<String,String>> |
queryCallStackForRequest(String requestID)
Returns CallStackInformation for a particular RequestID. |
String[] |
queryComponentTypeKeys()
Returns a list of component types BEAN_MANAGED_PERSISTENCE
CONTAINER_MANAGED_PERSISTENCE
MESSAGE_DRIVEN_BEAN
SERVLET
SERVLET_FILTER
STATEFUL_SESSION_BEAN
STATELESS_SESSION_BEAN |
String[] |
queryContainerTypeOrApplicationTypeKeys()
Returns a list of Container types WEB_CONTAINER
EJB_CONTAINER
ORB
WEB_APPLICATION
EJB_APPLICATION
OTHER |
Map<String,String> |
queryPieInformation(String requestID)
Returns the "PIE" information for a requestID. |
List<Map<String,String>> |
queryRequestInformation()
Gets information for requests. |
String[] |
queryRequestTypeKeys()
Returns a list of all request types REMOTE_ASYNC_MESSAGE
REMOTE_EJB
REMOTE_WEB
REMOTE_WEB_SERVICE
TIMER_EJB
|
void |
setCallerIPFilter(String filter)
Sets the at-source IP filter for this particular Server Instance. |
void |
setCallerPrincipalFilter(String filter)
Sets the at-source Principal filter for this particular Server Instance. |
void |
setEnabled(boolean enabled)
Turns CallFlow On or Off |
Methods inherited from interface com.sun.appserv.management.monitor.Monitoring |
---|
getServerRootMonitor |
Methods inherited from interface com.sun.appserv.management.base.AMX |
---|
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName, isDAS |
Methods inherited from interface javax.management.NotificationEmitter |
---|
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
---|
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel |
Field Detail |
---|
static final String J2EE_TYPE
AMX.getJ2EEType()
.
static final String REQUEST_ID_KEY
queryCallStackForRequest(java.lang.String)
and queryPieInformation(java.lang.String)
static final String TIME_STAMP_KEY
System.nanoTime()
static final String TIME_STAMP_MILLIS_KEY
static final String REQUEST_TYPE_KEY
static final String REMOTE_ASYNC_MESSAGE
MESSAGE_DRIVEN_BEAN
Calls
static final String REMOTE_EJB
static final String REMOTE_WEB
static final String REMOTE_WEB_SERVICE
static final String TIMER_EJB
static final String COMPONENT_TYPE_KEY
BEAN_MANAGED_PERSISTENCE
CONTAINER_MANAGED_PERSISTENCE
MESSAGE_DRIVEN_BEAN
SERVLET
SERVLET_FILTER
STATEFUL_SESSION_BEAN
STATELESS_SESSION_BEAN
static final String SERVLET
static final String SERVLET_FILTER
static final String STATELESS_SESSION_BEAN
static final String STATEFUL_SESSION_BEAN
static final String BEAN_MANAGED_PERSISTENCE
static final String CONTAINER_MANAGED_PERSISTENCE
static final String MESSAGE_DRIVEN_BEAN
static final String CONTAINER_TYPE_KEY
static final String WEB_CONTAINER
static final String EJB_CONTAINER
static final String ORB
static final String WEB_APPLICATION
static final String EJB_APPLICATION
static final String OTHER
static final String USER_KEY
static final String STATUS_KEY
static final String CLIENT_HOST_KEY
static final String METHOD_NAME_KEY
static final String COMPONENT_NAME_KEY
static final String MODULE_NAME_KEY
static final String APPLICATION_NAME_KEY
static final String RESPONSE_TIME_KEY
static final String THREAD_ID_KEY
static final String TRANSACTION_ID_KEY
static final String EXCEPTION_KEY
Throwable
static final String CALL_STACK_ROW_TYPE_KEY
queryCallStackForRequest(java.lang.String)
method.
There are four types of rows returned each signifying the RequestStart,
MethodStart, MethodEnd and RequestEnd information.
The values of the CallStackRowType are as follows
static final String CALL_STACK_REQUEST_START
queryCallStackForRequest(java.lang.String)
method.
Keyed by CALL_STACK_ROW_TYPE_KEY
This represents information pertaining to start of a incoming request
in the container.
static final String CALL_STACK_REQUEST_END
queryCallStackForRequest(java.lang.String)
method.
Keyed by CALL_STACK_ROW_TYPE_KEY
This represents information pertaining to end of a incoming request
in the container.
static final String CALL_STACK_METHOD_START
queryCallStackForRequest(java.lang.String)
method.
Keyed by CALL_STACK_ROW_TYPE_KEY
This represents information pertaining to start of a method for a
incoming request in the container.
static final String CALL_STACK_METHOD_END
queryCallStackForRequest(java.lang.String)
method.
Keyed by CALL_STACK_ROW_TYPE_KEY
This represents information pertaining to method end of a incoming request
in the container.
static final String EJB_CONTAINER_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in the EJB Container
static final String WEB_CONTAINER_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in the Web Container
static final String ORB_LAYER_EJB_CONTAINER_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in the ORB layer in EJB Container.
static final String EJB_APPLICATION_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in a users EJB application code. This time is different
from the time spent in the EJB or ORB Container code.
static final String WEB_APPLICATION_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in a users Web Application code. This time is different
from the time spent in the Web Container code.
static final String CONNECTOR_CONTAINER_TYPE
queryPieInformation(java.lang.String)
. Denotes the time spent by a
particular request in the connector layer.
Method Detail |
---|
boolean getEnabled()
void setEnabled(boolean enabled)
enabled
- true to enable call flow trackingvoid clearData()
boolean deleteRequestIDs(String[] requestId)
requestId
- an array of request ids. Request IDs are obtained using
the REQUEST_ID_KEY
from queryRequestInformation()
List<Map<String,String>> queryRequestInformation()
REQUEST_ID_KEY
TIME_STAMP_MILLIS_KEY
REQUEST_TYPE_KEY
. There are 5 typesUSER_KEY
STATUS_KEY
CLIENT_HOST_KEY
METHOD_NAME_KEY
APPLICATION_NAME_KEY
RESPONSE_TIME_KEY
List<Map<String,String>> queryCallStackForRequest(String requestID)
REQUEST_ID_KEY
TIME_STAMP_KEY
TIME_STAMP_MILLIS_KEY
REQUEST_TYPE_KEY
. This represents the Container where the call
origniated in and is only available for
CALL_STACK_ROW_TYPE_KEY
of the types
There are 5 values for the REQUEST_TYPE_KEY
USER_KEY
STATUS_KEY
METHOD_NAME_KEY
APPLICATION_NAME_KEY
THREAD_ID_KEY
TRANSACTION_ID_KEY
RESPONSE_TIME_KEY
EXCEPTION_KEY
CONTAINER_TYPE_KEY
. This represents the container where the
call is and is only available for
CALL_STACK_ROW_TYPE_KEY
of the types
There are 7 valid values for CONTAINER_TYPE_KEY
requestID
- obtained on calling #getRequestInformation
Map<String,String> queryPieInformation(String requestID)
CONTAINER_TYPE_KEY
. There are four typesSystem.currentTimeMillis()
requestID
- ID of the request whose PIE information is to
be obtained.
String getCallerIPFilter()
void setCallerIPFilter(String filter)
filter
- The ip address to filter on.String getCallerPrincipalFilter()
void setCallerPrincipalFilter(String filter)
filter
- The Principal Name to filter on.String[] queryRequestTypeKeys()
String[] queryComponentTypeKeys()
BEAN_MANAGED_PERSISTENCE
CONTAINER_MANAGED_PERSISTENCE
MESSAGE_DRIVEN_BEAN
SERVLET
SERVLET_FILTER
STATEFUL_SESSION_BEAN
STATELESS_SESSION_BEAN
String[] queryContainerTypeOrApplicationTypeKeys()
WEB_CONTAINER
EJB_CONTAINER
ORB
WEB_APPLICATION
EJB_APPLICATION
OTHER
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.