Tabnine Logo
EndpointView.resetStatistics
Code IndexAdd Tabnine to your IDE (free)

How to use
resetStatistics
method
in
org.apache.synapse.endpoints.EndpointView

Best Java code snippets using org.apache.synapse.endpoints.EndpointView.resetStatistics (Showing top 3 results out of 315)

origin: org.apache.synapse/synapse-core

public void resetStatistics() {
  messagesReceived  = 0;
  faultsReceiving   = 0;
  timeoutsReceiving = 0;
  bytesReceived     = 0;
  minSizeReceived   = 0;
  maxSizeReceived   = 0;
  avgSizeReceived   = 0;
  receivingFaultTable.clear();
  messagesSent      = 0;
  faultsSending     = 0;
  timeoutsSending   = 0;
  bytesSent         = 0;
  minSizeSent       = 0;
  maxSizeSent       = 0;
  avgSizeSent       = 0;
  sendingFaultTable.clear();
  responseCodeTable.clear();
  lastResetTime = System.currentTimeMillis();
  if (endpoint.getChildren() != null) {
    for (Endpoint e : endpoint.getChildren()) {
      if (e.getMetricsMBean() != null) {
        e.getMetricsMBean().resetStatistics();
      }
    }
  }
  log.info("Endpoint statistics reset for : " + endpointName + " (and/or its children)");
}
origin: wso2/wso2-synapse

public void resetStatistics() {
  messagesReceived  = 0;
  faultsReceiving   = 0;
  timeoutsReceiving = 0;
  bytesReceived     = 0;
  minSizeReceived   = 0;
  maxSizeReceived   = 0;
  avgSizeReceived   = 0;
  receivingFaultTable.clear();
  messagesSent      = 0;
  faultsSending     = 0;
  timeoutsSending   = 0;
  bytesSent         = 0;
  minSizeSent       = 0;
  maxSizeSent       = 0;
  avgSizeSent       = 0;
  sendingFaultTable.clear();
  responseCodeTable.clear();
  lastResetTime = System.currentTimeMillis();
  if (endpoint.getChildren() != null) {
    for (Endpoint e : endpoint.getChildren()) {
      if (e.getMetricsMBean() != null) {
        e.getMetricsMBean().resetStatistics();
      }
    }
  }
  log.info("Endpoint statistics reset for : " + endpointName + " (and/or its children)");
}
origin: wso2/wso2-synapse

/**
 * Changes statics, calls the reset method and asserts if all statistics are reset correctly.
 */
public void testResetStatistics() {
  EndpointView endpointView = createEndPointView(1);
  changeStatistics(endpointView);
  endpointView.resetStatistics();
  assertResetStatistics(endpointView);
  endpointView = createEndPointView(0);
  changeStatistics(endpointView);
  endpointView.resetStatistics();
  assertResetStatistics(endpointView);
}
org.apache.synapse.endpointsEndpointViewresetStatistics

Popular methods of EndpointView

  • <init>
    Create a new MBean to manage the given endpoint
  • destroy
  • getActiveChildren
    Return the number of active children for this endpoint
  • getAvgSizeReceived
  • getAvgSizeSent
  • getBytesReceived
    Number of bytes received, receiving replies
  • getBytesSent
    Number of bytes sent
  • getFaultsReceiving
    Number of faults, receiving replies
  • getFaultsSending
    Number of faults sending
  • getMaxSizeReceived
  • getMaxSizeSent
  • getMessagesReceived
    Number of messages (ie replies) received
  • getMaxSizeSent,
  • getMessagesReceived,
  • getMessagesSent,
  • getMinSizeReceived,
  • getMinSizeSent,
  • getReceivingFaultTable,
  • getResponseCodeTable,
  • getSendingFaultTable,
  • getTimeoutsReceiving,
  • getTimeoutsSending

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • JOptionPane (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now