WebSphere:*,type=TivoliPerfEngine
MinimalAccessCheck:
MBean TivoliPerfEngine
Management interface for the configuration of the Tivoli Performance Viewer subsystem.
Operation Summary | |
java.lang.Boolean | isActive() Returns true if the monitoring engine is currently monitoring a system. |
void | restart() Restarts TPV |
void | monitorServer( Begin monitoring the server for the given user. |
com.ibm.ws.tpv.engine.utils.ServerBean[] | getMonitoredServers( Get all servers that are being monitored for a given user. |
void | disableServer( Stop monitoring the server for the given user. |
java.lang.Boolean | isServerMonitored( Returns true if the specified server is being monitored by the given user. |
void | register( Registers a user session with the Tivoli performance viewer. |
com.ibm.ws.tpv.engine.buffer.StatResult[] | get( Gets the data for the given user and server. |
com.ibm.ws.tpv.engine.filter.summary.Summary | getSummary( Gets the summary data for the given user and server. |
com.ibm.ws.tpv.engine.buffer.TreeNodeData | getIdentifierTree( Gets the MBean Stat Descriptor identifier tree for a monitored server. |
com.ibm.ws.tpv.engine.buffer.StatResult[] | getFromBuffer( Gets data directly from the buffer without transforming it. |
void | startLogging( Starts Logging on a server. |
java.lang.Boolean | isServerLogging( Determines if a server is logging. |
void | stopLogging( Stop logging on this server. |
com.ibm.ws.tpv.advisor.utils.AdvisorChartData | getAdvisorChartData( Get data for Advisor charts. |
void | setUserPreferences( Update a user's monitoring and logging preferences for a server. |
com.ibm.ws.tpv.engine.UserPreferences | getUserPreferences( Gets a user's monitoring and logging preferences for a server. |
com.ibm.ws.tpv.engine.utils.ServerBean | getServerFromLog( Gets the information about a log file for a given user. |
Operation Detail |
public java.lang.Boolean isActive()
public void restart()
public void monitorServer(com.ibm.ws.tpv.engine.UserPreferences userPreferences
)
userPreferences
-
The user's monitoring preferences for a specifc server.
public com.ibm.ws.tpv.engine.utils.ServerBean[] getMonitoredServers(java.lang.String userId
)
userId
-
The user id
public void disableServer(com.ibm.ws.tpv.engine.UserPreferences userPreferences
)
userPreferences
-
The user data about the server to stop monitoring.
public java.lang.Boolean isServerMonitored(java.lang.String userId,
com.ibm.ws.tpv.engine.utils.ServerBean server
)
userId
-
The userId.server
-
The server.
public void register(com.ibm.ws.tpv.engine.UserPreferences userPreferences
)
userPreferences
-
The user data about the server to register with.
public com.ibm.ws.tpv.engine.buffer.StatResult[] get(com.ibm.ws.tpv.engine.buffer.StatRequest[] requests
)
requests
-
The updated values the user wants to monitor.
public com.ibm.ws.tpv.engine.filter.summary.Summary getSummary(com.ibm.ws.tpv.engine.buffer.StatRequest requests
)
requests
-
The updated values the user wants to monitor.
public com.ibm.ws.tpv.engine.buffer.TreeNodeData getIdentifierTree(com.ibm.ws.tpv.engine.buffer.StatRequest request
)
request
-
The updated values the user wants to monitor.
public com.ibm.ws.tpv.engine.buffer.StatResult[] getFromBuffer(com.ibm.ws.tpv.engine.buffer.StatRequest[] requests
)
requests
-
The values being requested.
public void startLogging(com.ibm.ws.tpv.engine.UserPreferences up
)
up
-
The User Preferences.
public java.lang.Boolean isServerLogging(com.ibm.ws.tpv.engine.utils.ServerBean up
)
up
-
A bean identifying the server
public void stopLogging(com.ibm.ws.tpv.engine.UserPreferences up
)
up
-
The User Preferences.
public com.ibm.ws.tpv.advisor.utils.AdvisorChartData getAdvisorChartData(com.ibm.ws.tpv.engine.UserPreferences serverName,
java.util.Locale locale
)
serverName
-
The user's preferences.locale
-
The user's locale.
public void setUserPreferences(com.ibm.ws.tpv.engine.UserPreferences preferences
)
preferences
-
The user's monitoring preferences for a single server. The user can set the following values as given in the example below: set pref [java::new com.ibm.ws.tpv.engine.UserPreferences] $pref setServerName server_name $pref setNodeName node_name $pref setUserId user_id $pref setRefreshRate 10 (Refer Infocenter for allowed values) $pref setBufferSize 10 (Refer Infocenter for allowed values) $pref setLoggingDuration 300 (Specify in seconds) $pref setLogFileSize 5242880 (Specify in bytes) $pref setNumLogFiles 3 $pref setLogFileName tpv_log
public com.ibm.ws.tpv.engine.UserPreferences getUserPreferences(com.ibm.ws.tpv.engine.UserPreferences preferences
)
preferences
-
The user's monitoring preferences for a single server that should be updated to reflect the settings used by the monitoring engine. The user can set the following values as given in the example below: set tpvName [$AdminControl completeObjectName type=TivoliPerfEngine,*] set tpvOName [$AdminControl makeObjectName $tpvName] set pref [java::new com.ibm.ws.tpv.engine.UserPreferences] $pref setServerName server_name $pref setNodeName node_name $pref setUserId user_id set params [java::new {java.lang.Object[]} 1] $params set 0 $pref set sigs [java::new {java.lang.String[]} 1] $sigs set 0 com.ibm.ws.tpv.engine.UserPreferences set res [java::cast com.ibm.ws.tpv.engine.UserPreferences [$AdminControl invoke_jmx $tpvOName getUserPreferences $params $sigs]]
public com.ibm.ws.tpv.engine.utils.ServerBean getServerFromLog(java.lang.String userId,
java.lang.String logName
)
userId
-
The user idlogName
-
Name of the log file