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

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


      clusterCF.closeCallback(false);

      ServerManagement.kill(1);

      //Restart the server on the same place
      ServiceAttributeOverrides attr = new ServiceAttributeOverrides();
      attr.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI",delegates[1].getServerLocatorURI());
      ServerManagement.start(1,config,attr,false);

      // The server back on the same remoting port as before
      startDefaultServer(1, attr, false);
View Full Code Here


      for (int i = 0; i < nodeCount; i++)
      {
         //https://issues.jboss.org/browse/JBMESSAGING-1866
         if (withNewFailoverModel)
         {
            overrides = new ServiceAttributeOverrides();
            overrides.put(new ObjectName("jboss.messaging:service=PostOffice"),
                       "NodeStateRefreshInterval", overrideNodeStateRefreshInterval);
         }
        
         startDefaultServer(i, overrides, i == 0);
View Full Code Here

      clusterCF.closeCallback(false);

      ServerManagement.kill(1);

      //Restart the server on the same place
      ServiceAttributeOverrides attr = new ServiceAttributeOverrides();
      attr.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI",delegates[1].getServerLocatorURI());
      ServerManagement.start(1,config,attr,false);

      // The server back on the same remoting port as before
      startDefaultServer(1, attr, false);
View Full Code Here

         ServerManagement.stop();
      }

      // start a "standard" (messaging-enabled) remoting, we need to strip off the
      // marshaller/unmarshaller, though, since it can only bring trouble to this test ...
      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME,
              ServiceContainer.DO_NOT_USE_MESSAGING_MARSHALLERS, Boolean.TRUE);
     
     
      JMSWireFormat wf = new JMSWireFormat();
     
View Full Code Here

            "marshaller=org.jboss.jms.wireformat.JMSWireFormat&" +
            "serializationtype=jboss&" +
            "socket.check_connection=false&" +
            "unmarshaller=org.jboss.jms.wireformat.JMSWireFormat";

      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI", serviceLocatorString);

      ServerManagement.start(0, "remoting", sao, true, false);

      // obtain the server locator from the service itself, so we won't have any doubts we use
      // the right one
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

   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

      clusterCF.closeCallback();

      ServerManagement.kill(1);

      //Restart the server on the same place
      ServiceAttributeOverrides attr = new ServiceAttributeOverrides();
      attr.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI",delegates[1].getServerLocatorURI());
      ServerManagement.start(1,config,attr,false);

      // The server back on the same remoting port as before
      startDefaultServer(1, attr, false);
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", "65535");
     
      try
      {
         server.start("all", overrides, false, true);
      }
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.