public static RemoteJmxBroker Connect(string hostname, int port, string brokerName) { try { var jolokiaSession = JolokiaSession.Connect(hostname, port); return(new RemoteJmxBroker(jolokiaSession, brokerName)); } catch (Exception e) { throw new Exception("Broker is busted.", e); } }
private RemoteJmxBroker(JolokiaSession jolokiaSession, string brokerName) { this.jolokiaSession = jolokiaSession; this.brokerName = brokerName; }
public RemoteJmxQueue(JolokiaSession jolokiaSession, string brokerName, string queueName) { this.jolokiaSession = jolokiaSession; queueBean = $"org.apache.activemq:type=Broker,brokerName={brokerName},destinationType=Queue,destinationName={queueName}"; Name = queueName; }