All pastes #1269 Raw Edit

wctest

public java v1 · immutable
#1269 ·published 2004-10-05 14:46 UTC
rendered paste body
    public synchronized boolean getStatus()    {        boolean retVal = true;        try        {            if(permanentlyDisable)            {                retVal = false;            }            Iterator it = dependents.keySet().iterator();            while(it.hasNext())            {                AbstractServiceMBean service = (AbstractServiceMBean)it.next();                if(!service.isHealthy() || !service.isStarted())                    retVal = false;            }        }        catch(Exception e)        {            permanentlyDisable = true;            retVal = false;        }        return retVal;    }