Package org.infinispan.cli.connection.jmx

Examples of org.infinispan.cli.connection.jmx.JMXUrl


@Test(groups="functional", testName="cli.JMXRemotingUrlTest")
public class JMXRemotingUrlTest {

   public void testValidJMXUrl() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345");
      assert "service:jmx:remoting-jmx://localhost:12345".equals(jmxUrl.getJMXServiceURL());
   }
View Full Code Here


      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345");
      assert "service:jmx:remoting-jmx://localhost:12345".equals(jmxUrl.getJMXServiceURL());
   }

   public void testValidJMXUrlWithContainer() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345/container");
      assert "service:jmx:remoting-jmx://localhost:12345".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
   }
View Full Code Here

      assert "service:jmx:remoting-jmx://localhost:12345".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
   }

   public void testValidJMXUrlWithContainerAndCache() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345/container/cache");
      assert "service:jmx:remoting-jmx://localhost:12345".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
      assert "cache".equals(jmxUrl.getCache());
   }
View Full Code Here

@Test(groups="functional", testName="cli.JMXRMIUrlTest")
public class JMXRMIUrlTest {

   public void testValidJMXUrl() {
      JMXUrl jmxUrl = new JMXRMIUrl("jmx://localhost:12345");
      assert "service:jmx:rmi:///jndi/rmi://localhost:12345/jmxrmi".equals(jmxUrl.getJMXServiceURL());
   }
View Full Code Here

      JMXUrl jmxUrl = new JMXRMIUrl("jmx://localhost:12345");
      assert "service:jmx:rmi:///jndi/rmi://localhost:12345/jmxrmi".equals(jmxUrl.getJMXServiceURL());
   }

   public void testValidJMXUrlWithContainer() {
      JMXUrl jmxUrl = new JMXRMIUrl("jmx://localhost:12345/container");
      assert "service:jmx:rmi:///jndi/rmi://localhost:12345/jmxrmi".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
   }
View Full Code Here

      assert "service:jmx:rmi:///jndi/rmi://localhost:12345/jmxrmi".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
   }

   public void testValidJMXUrlWithContainerAndCache() {
      JMXUrl jmxUrl = new JMXRMIUrl("jmx://localhost:12345/container/cache");
      assert "service:jmx:rmi:///jndi/rmi://localhost:12345/jmxrmi".equals(jmxUrl.getJMXServiceURL());
      assert "container".equals(jmxUrl.getContainer());
      assert "cache".equals(jmxUrl.getCache());
   }
View Full Code Here

@Test(groups="functional", testName="cli.JMXRemotingUrlTest")
public class JMXRemotingUrlTest {

   public void testValidJMXUrl() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345");
      assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
   }
View Full Code Here

      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345");
      assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
   }

   public void testValidJMXUrlWithContainer() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345/container");
      assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
      assertEquals("container", jmxUrl.getContainer());
   }
View Full Code Here

      assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
      assertEquals("container", jmxUrl.getContainer());
   }

   public void testValidJMXUrlWithContainerAndCache() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://localhost:12345/container/cache");
      assertEquals("service:jmx:remoting-jmx://localhost:12345", jmxUrl.getJMXServiceURL());
      assertEquals("container", jmxUrl.getContainer());
      assertEquals("cache", jmxUrl.getCache());
   }
View Full Code Here

      assertEquals("container", jmxUrl.getContainer());
      assertEquals("cache", jmxUrl.getCache());
   }

   public void testValidIPV6JMXUrl() {
      JMXUrl jmxUrl = new JMXRemotingUrl("remoting://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:12345");
      assertEquals("service:jmx:remoting-jmx://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:12345", jmxUrl.getJMXServiceURL());
   }
View Full Code Here

TOP

Related Classes of org.infinispan.cli.connection.jmx.JMXUrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.