mattrpav commented on code in PR #1726:
URL: https://github.com/apache/activemq/pull/1726#discussion_r3633775732


##########
activemq-broker/src/main/java/org/apache/activemq/network/NetworkConnector.java:
##########
@@ -164,22 +172,35 @@ public static ActiveMQDestination[] 
getDurableTopicDestinations(final Set<Active
     @Override
     public void start() throws Exception {
         serviceSupport.start();
+        startedTimestamp.set(System.currentTimeMillis());
+        stoppedTimestamp.set(0l);
     }
 
     @Override
     public void stop() throws Exception {
         serviceSupport.stop();
+        stoppedTimestamp.set(System.currentTimeMillis());
+        startedTimestamp.set(0l);
     }
 
     protected void handleStart() throws Exception {
         if (localURI == null) {
             throw new IllegalStateException("You must configure the 'localURI' 
property");
         }
         LOG.info("Network Connector {} started", this);
+        bridgeExceptionCounter.setEnabled(true);

Review Comment:
   These have to be sitting around, b/c network connectors do not get a handle 
to the BrokerService to look for the statisticsEnabled flag. The bridges do, 
and are enabled if the brokerService statistics are enabled.
   
   These 3 sit at the network connector level, since bridges come and go, this 
roll-up as to be at the network connector for visibility.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to