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 )