Package org.jboss.deployers.spi.management

Examples of org.jboss.deployers.spi.management.ManagementView.updateComponent()


      ManagedProperty minSize = props.get("min-pool-size");
      minSize.setValue(SimpleValueSupport.wrap(new Integer(13)));
      ManagedProperty maxSize = props.get("max-pool-size");
      maxSize.setValue(SimpleValueSupport.wrap(new Integer(53)));

      mgtView.updateComponent(hsqldb);

      // TODO: Query the mbeans to validate the change
      // TODO: Query the profile service repository for the overriden data
   }
View Full Code Here


      assertTrue("MapCompositeMetaType", value.getMetaType() instanceof MapCompositeMetaType);
     
      MapCompositeValueSupport cValue = (MapCompositeValueSupport) value;
      cValue.put("testKey", new SimpleValueSupport(SimpleMetaType.STRING, "testValue"));
     
      mgtView.updateComponent(dsMC);

      mgtView = getManagementView();
      dsMC = getManagedComponent(mgtView, compType, jndiName);
      configProperty = dsMC.getProperty("config-property");
      assertNotNull(configProperty);
View Full Code Here

         assertNotNull(property);
         assertEquals(property.getValue(), SimpleValueSupport.wrap(2000));
        
         property.setValue(SimpleValueSupport.wrap(3000));
        
         mgtView.updateComponent(component);

         // Remove
         component = md.getComponent("testRemoveQueue");
         assertNotNull(component);
        
View Full Code Here

      assertNotNull(queue);
      assertEquals("testQueueTemplate", queue.getName());
     
      // Test with a empty value
      queue.getProperty("securityConfig").setValue(new MapCompositeValueSupport(new HashMap<String, MetaValue>(), securityConfType));
      mgtView.updateComponent(queue);
     
      //
      mgtView = getManagementView();
      queue = mgtView.getComponent("testQueueTemplate", type);
     
View Full Code Here

      values.put("user", createCompositeValue(false, false, false));
      MapCompositeValueSupport map= new MapCompositeValueSupport(values, securityConfType);

      // Test a normal value
      queue.getProperty("securityConfig").setValue(map);
      mgtView.updateComponent(queue);

      mgtView = getManagementView();
      queue = mgtView.getComponent("testQueueTemplate", type);
      MapCompositeValueSupport securityConfig = (MapCompositeValueSupport) queue.getProperty("securityConfig").getValue();
      assertEquals(map, securityConfig);
View Full Code Here

      assertEquals(map, securityConfig);
     
      securityConfig.remove("publisher");
     
      // Test remove
      mgtView.updateComponent(queue);
      securityConfig = (MapCompositeValueSupport) queue.getProperty("securityConfig").getValue();
      assertNotNull(securityConfig);
      assertNull(securityConfig.get("publisher"));
     
   }
View Full Code Here

         assertNotNull(property);
         assertEquals(property.getValue(), SimpleValueSupport.wrap(2000));
        
         property.setValue(SimpleValueSupport.wrap(3000));
        
         mgtView.updateComponent(component);
        
         // Remove
         component = md.getComponent("testRemoveTopic");
         assertNotNull(component);
        
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.