Package com.sun.appserv.management.j2ee

Examples of com.sun.appserv.management.j2ee.StateManageable


     
      if ( item.isstateManageable() )
      {
        assert( item instanceof StateManageable );
       
        final StateManageable  sm  = (StateManageable)item;
       
        final int  state  = sm.getstate();
        assert( state == StateManageable.STATE_STARTING ||
          state == StateManageable.STATE_RUNNING ||
          state == StateManageable.STATE_STOPPING ||
          state == StateManageable.STATE_STOPPED ||
          state == StateManageable.STATE_FAILED );
       
        if ( state == StateManageable.STATE_RUNNING )
        {
          try
          {
            final long  startTime  = sm.getstartTime();
         
            // assume it was started less than 30 days ago
            final long MILLIS_PER_DAY  = 24L * 60L * 60L * 1000L;
            final long days30  = 30L * MILLIS_PER_DAY;
            if ( startTime < now() - days30 )
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.j2ee.StateManageable

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.