com.oracle.coherence.patterns.command.internal
Interface CommandExecutorMBean

All Known Implementing Classes:
CommandExecutor

public interface CommandExecutorMBean

The CommandExecutorMBean specifies the JMX monitoring and managability interface for CommandExecutors.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver

Method Summary
 String getContextIdentity()
          Returns the Context Identifier as a string.
 long getContextVersion()
          Returns the version number of the Context that the CommandExecutor is managing.
 double getLocalAverageCommandExecutionDuration()
          Returns the average execution time (in milliseconds) for the Commands executed locally by the current owner of the Context (ie: local CommandExecutor).
 double getLocalCommandExecutionServiceDuration()
          Returns the local command execution service duration (in milliseconds).
 long getLocalCommandsExecuted()
          Returns the number of Commands that have been executed locally by the current owner of the Context (ie: local CommandExecutor).
 long getLocalCommandsSubmitted()
          Returns the number of Commands that have been submitted locally to the current owner of the Context (ie: local CommandExecutor).
 double getLocalLastCommandExecutionDuration()
          Returns the execution time (in milliseconds) for the last Command executed locally by the current owner of the Context (ie: the local CommandExecutor)
 double getLocalMaximumCommandExecutionDuration()
          Returns the maximum time (in milliseconds) that a Command has taken to execute locally by the current owner of the Context (ie: the local CommandExecutor)
 double getLocalMinimumCommandExecutionDuration()
          Returns the minimum time (in milliseconds) that a Command has taken to execute locally by the current owner of the Context (ie: the local CommandExecutor)
 String getStatus()
          Returns the current CommandExecutor.State of the CommandExecutor.
 long getTicketIssuerId()
          Returns the current id that is being used to issue Tickets.
 long getTotalCommandExecutionDuration()
          Returns the total time (in milliseconds) that the Commands executed thus far have taken to execute.
 long getTotalCommandExecutionWaitingDuration()
          Returns the total time (in milliseconds) that the Commands executed thus far have waited to execute (ie: the queuing time).
 long getTotalCommandsExecuted()
          Returns the total number of Commands for the Context that have been executed (regardless of the owner)
 long getTotalCommandsPendingExecution()
          Returns the total number of Commands that are yet to be executed
 

Method Detail

getContextIdentity

String getContextIdentity()
Returns the Context Identifier as a string.


getContextVersion

long getContextVersion()
Returns the version number of the Context that the CommandExecutor is managing.


getTicketIssuerId

long getTicketIssuerId()
Returns the current id that is being used to issue Tickets.

NOTE: If another CommandExecutor is created for same Context with the same Identifier in the cluster (due to recovery / load-balancing of Contexts), a new Ticket issuer id will be allocated to the new CommandExecutor. This ensures that for each instance of a CommandExecutor, the Ticket issuer id will be different, thus allowing us to "order" Commands send to particular CommandExecutors.


getStatus

String getStatus()
Returns the current CommandExecutor.State of the CommandExecutor.


getTotalCommandsPendingExecution

long getTotalCommandsPendingExecution()
Returns the total number of Commands that are yet to be executed


getTotalCommandsExecuted

long getTotalCommandsExecuted()
Returns the total number of Commands for the Context that have been executed (regardless of the owner)


getTotalCommandExecutionDuration

long getTotalCommandExecutionDuration()
Returns the total time (in milliseconds) that the Commands executed thus far have taken to execute.


getTotalCommandExecutionWaitingDuration

long getTotalCommandExecutionWaitingDuration()
Returns the total time (in milliseconds) that the Commands executed thus far have waited to execute (ie: the queuing time).


getLocalCommandsSubmitted

long getLocalCommandsSubmitted()
Returns the number of Commands that have been submitted locally to the current owner of the Context (ie: local CommandExecutor).


getLocalCommandsExecuted

long getLocalCommandsExecuted()
Returns the number of Commands that have been executed locally by the current owner of the Context (ie: local CommandExecutor).


getLocalAverageCommandExecutionDuration

double getLocalAverageCommandExecutionDuration()
Returns the average execution time (in milliseconds) for the Commands executed locally by the current owner of the Context (ie: local CommandExecutor).


getLocalMinimumCommandExecutionDuration

double getLocalMinimumCommandExecutionDuration()
Returns the minimum time (in milliseconds) that a Command has taken to execute locally by the current owner of the Context (ie: the local CommandExecutor)


getLocalMaximumCommandExecutionDuration

double getLocalMaximumCommandExecutionDuration()
Returns the maximum time (in milliseconds) that a Command has taken to execute locally by the current owner of the Context (ie: the local CommandExecutor)


getLocalLastCommandExecutionDuration

double getLocalLastCommandExecutionDuration()
Returns the execution time (in milliseconds) for the last Command executed locally by the current owner of the Context (ie: the local CommandExecutor)


getLocalCommandExecutionServiceDuration

double getLocalCommandExecutionServiceDuration()
Returns the local command execution service duration (in milliseconds). This includes the time to get the command as well as the time to execute the command.



Copyright © 2016. All rights reserved.