Package org.jboss.managed.api

Examples of org.jboss.managed.api.RunState


            nullStats.add(stat.getName());
      }
      assertTrue("There are no null stats: "+nullStats, nullStats.size() == 0);
     
      // Validate the component run state
      RunState state = hsqldb.getRunState();
      assertEquals("DefaultDS is running", RunState.RUNNING, state);
   }
View Full Code Here


         ManagedProperty property = mc.getProperty("prepared-statement-cache-size");
         assertEquals("prepared-statement-cache-size: "+ property.getValue(), SimpleValueSupport.wrap(34), property.getValue());
        
         property = mc.getProperty("max-pool-size");
         assertEquals("max-pool-size: "+ property.getValue(), SimpleValueSupport.wrap(34), property.getValue());
         RunState state = mc.getRunState();
         assertEquals(RunState.RUNNING, state);

         // This should work too
         ManagedComponent comp = getManagedComponent(mgtView, "ChangedDsJNDIName");
         assertNotNull(comp);
View Full Code Here

    * Update the cached run state
    * @return the updated cache state
    */
   public RunState updateRunState()
   {
      RunState state = RunState.UNKNOWN;
      if(stateMapper != null && stateProperty != null)
      {
         MetaValue value = stateProperty.getValue();
         state = stateMapper.getRunState(stateProperty, value);
         this.runState = state;
View Full Code Here

      this.valueMapping = valueMapping;
   }

   public RunState getRunState(ManagedProperty property, MetaValue value)
   {
      RunState state = RunState.UNKNOWN;
      if ( value.getMetaType().isSimple() )
      {
         SimpleValue sv = SimpleValue.class.cast(value);
         String s = sv.getValue().toString();
         String es = valueMapping.get(s);
View Full Code Here

    * Update the cached run state
    * @return the updated cache state
    */
   public RunState updateRunState()
   {
      RunState state = RunState.UNKNOWN;
      if(stateMapper != null && stateProperty != null)
      {
         MetaValue value = stateProperty.getValue();
         state = stateMapper.getRunState(stateProperty, value);
         this.runState = state;
View Full Code Here

      ComponentType type = new ComponentType("JMSDestination", "queue");
      RunStateMapper stateMapper = null;
      ManagedComponentImpl mc = new ManagedComponentImpl(type, md, q1MO, stateMapper);
      md.addComponent(q1MO.getName(), mc);

      RunState state = mc.getRunState();
      assertEquals(RunState.RUNNING, state);
   }
View Full Code Here

    * Update the cached run state
    * @return the updated cache state
    */
   public RunState updateRunState()
   {
      RunState state = RunState.UNKNOWN;
      if(stateMapper != null && stateProperty != null)
      {
         MetaValue value = stateProperty.getValue();
         state = stateMapper.getRunState(stateProperty, value);
         this.runState = state;
View Full Code Here

TOP

Related Classes of org.jboss.managed.api.RunState

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.