Package org.jboss.as.arquillian.container

Examples of org.jboss.as.arquillian.container.CommonContainerConfiguration


      }

      RemoteInfinispanServer server = null;


      CommonContainerConfiguration conf;
      try
      {
         conf = (CommonContainerConfiguration) event.getContainer().createDeployableConfiguration();
         server = (RemoteInfinispanServer) infinispanContext.get().get(RemoteInfinispanServer.class, event.getContainer().getContainerConfiguration().getContainerName());
         if (server != null)
         {
            if (server instanceof InfinispanServer)
            {
               InfinispanServer orig = (InfinispanServer) server;
               orig.setManagementAddress(conf.getManagementAddress());
               orig.setManagementPort(conf.getManagementPort());
               return;
            }
            else
            {
               throw new RuntimeException("Cannot override properties of a server of different type");
            }
         }
         else
         {
            server = new InfinispanServer(conf.getManagementAddress(), conf.getManagementPort());
         }
      }
      catch (Exception e)
      {
         throw new RuntimeException("Could not create deployable configuration", e);
View Full Code Here


      }

      RemoteInfinispanServer server = null;


      CommonContainerConfiguration conf;
      try
      {
         conf = (CommonContainerConfiguration) event.getContainer().createDeployableConfiguration();
         server = (RemoteInfinispanServer) infinispanContext.get().get(RemoteInfinispanServer.class, event.getContainer().getContainerConfiguration().getContainerName());
         if (server != null)
         {
            if (server instanceof InfinispanServer)
            {
               InfinispanServer orig = (InfinispanServer) server;
               orig.setManagementAddress(conf.getManagementAddress());
               orig.setManagementPort(conf.getManagementPort());
               return;
            }
            else
            {
               throw new RuntimeException("Cannot override properties of a server of different type");
            }
         }
         else
         {
            server = new InfinispanServer(conf.getManagementAddress(), conf.getManagementPort());
         }
      }
      catch (Exception e)
      {
         throw new RuntimeException("Could not create deployable configuration", e);
View Full Code Here

TOP

Related Classes of org.jboss.as.arquillian.container.CommonContainerConfiguration

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.