System.out.println("Message Bytes: " + messageStatsService.getMessageStatistics(false).totalMessageBytes); System.out.println("Message Count: " + messageStatsService.getMessageStatistics(false).totalMessageCount);
System.out.println("Message Bytes: " + messageStatsService.getMessageStatistics(false).totalSentMessageBytes); System.out.println("Message Count: " + messageStatsService.getMessageStatistics(false).totalSentMessageCount);
      public void getAllMetrics() {          //get all PrototypeRegistryService metrics          cachedProtoCount = protoRegistryService.getCachedPrototypeCount();          propProviderCount = protoRegistryService.getPropertyProviderCount();          protoProviderCount = protoRegistryService.getPrototypeProviderCount();          System.out.println("\n");          System.out.println("Cached Prototype Count: " + cachedProtoCount);          System.out.println("Property Provider Count: " + propProviderCount);          System.out.println("Prototype Provider Count: " + protoProviderCount);          //get all BlackBoardMetricsServices metrics          assetCount = bbMetricsService.getBlackboardCount(Asset.class);          planElementCount = bbMetricsService.getBlackboardCount(PlanElement.class);          taskCount = bbMetricsService.getBlackboardCount(Task.class);          totalBlackboardCount = bbMetricsService.getBlackboardCount();          System.out.println("Asset Count: " + assetCount);          System.out.println("Plan Element Count: " + planElementCount);          System.out.println("Task Count: " + taskCount);          System.out.println("Total Blackboard Object Count: " + totalBlackboardCount);          //get all NodeMetricsSerivices metrics          System.out.println("Active Thread Count: " + nodeMetricsService.getActiveThreadCount());          System.out.println("Free Memory: " + nodeMetricsService.getFreeMemory());          System.out.println("Total Memory: " + nodeMetricsService.getTotalMemory());          //get all MessageStatistics metrics          if (messageStatsService != null) {              System.out.println("Message Queue: " + messageStatsService.getMessageStatistics(false).averageMessageQueueLength);              System.out.println("Message Bytes: " + messageStatsService.getMessageStatistics(false).totalMessageBytes);              System.out.println("Message Count: " + messageStatsService.getMessageStatistics(false).totalMessageCount);              System.out.println("Histogram:     " + messageStatsService.getMessageStatistics(false).histogram);           }          else              System.out.println("MessageStatisticsService not returned");          //get all MessageWatcher metrics          System.out.println("Directives In: " + _messageWatcher.getDirectivesIn());          System.out.println("Directives Out: " + _messageWatcher.getDirectivesOut());          System.out.println("Notifications In: " + _messageWatcher.getNotificationsIn());          System.out.println("Notifications Out: " + _messageWatcher.getNotificationsOut());             }  //close method getAllMetrics()