Package org.jboss.test.messaging.tools.container

Examples of org.jboss.test.messaging.tools.container.ServiceAttributeOverrides


   {
      nodeCount = 2;
     
      //make the failover follow new behavior
      //https://issues.jboss.org/browse/JBMESSAGING-1842
      overrides = new ServiceAttributeOverrides();
      overrides.put(ServiceContainer.POSTOFFICE_OBJECT_NAME, "KeepOldFailoverModel", Boolean.FALSE);
      overrides.put(ServiceContainer.POSTOFFICE_OBJECT_NAME, "NodeStateRefreshInterval", new Long(REFRESH_INTERVAL));
     
      super.setUp();
   }
View Full Code Here


   }
  
   public void testCannotSetNegativeServerPeerID() throws Exception
   {
      LocalTestServer server = new LocalTestServer();
      ServiceAttributeOverrides overrides = new ServiceAttributeOverrides();
      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "-10");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Should have thrown an exception when setting ServerPeerID to a negative value");
View Full Code Here

   }
  
   public void testServerPeerIDLimit() throws Exception
   {
      LocalTestServer server = new LocalTestServer();
      ServiceAttributeOverrides overrides = new ServiceAttributeOverrides();
      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "1023");
     
      try
      {
         server.start("all", overrides, false, true);
      }
View Full Code Here

   }

   public void testServerPeerIDLimit2() throws Exception
   {
      LocalTestServer server = new LocalTestServer();
      ServiceAttributeOverrides overrides = new ServiceAttributeOverrides();
      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "ServerPeerID", "1024");
     
      try
      {
         server.start("all", overrides, false, true);
         fail("Largest ServerPeerID should be less than 1024");
View Full Code Here

   private void testStartupOnlyAttribute(String attributeName,
         Object initialAttributeValue, Object anotherAttributeValue) throws Exception
   {
      MyLocalTestServer server = new MyLocalTestServer();
      ServiceAttributeOverrides overrides = new ServiceAttributeOverrides();
      // Can't use server.getServerPeerObjectName() here since it's not known to the server yet.
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, attributeName, initialAttributeValue.toString());
     
      server.start("all", overrides, false, true);
      try
      {
         ObjectName sp = server.getServerPeerObjectName();
View Full Code Here

  
   // protected ----------------------------------------------------
  
   protected void setUp() throws Exception
   {
      this.overrides = new ServiceAttributeOverrides();
     
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "UseXAForMessagePull", "true");
         
      super.setUp();
   }
View Full Code Here

  
   // protected ----------------------------------------------------
  
   protected void setUp() throws Exception
   {
      this.overrides = new ServiceAttributeOverrides();
     
      overrides.put(ServiceContainer.SERVER_PEER_OBJECT_NAME, "UseXAForMessagePull", "false");
    
      super.setUp();
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.messaging.tools.container.ServiceAttributeOverrides

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.