question: public static boolean isAvailable ( URL url ) throws Exception { if ( ( config == null ) || ( keepMonitoring == false ) ) { return true ; } String serverID = null ; try { serverID = getServerID ( url . getProtocol ( ) , url . getHost ( ) , Integer . toString ( url . getPort ( ) ) , url . getPath ( ) , false ) ; } catch ( ServerEntryNotFoundException e ) { if ( debug . messageEnabled ( ) ) { debug . message ( "URL is not part of AM setup." ) ; } return true ; } Vector sites = getAvailableSites ( ) ; boolean available = false ; Iterator it = sites . iterator ( ) ; while ( it . hasNext ( ) ) { String server = ( String ) it . next ( ) ; if ( serverID . equalsIgnoreCase ( server ) ) { available = true ; break ; } } if ( debug . messageEnabled ( ) ) { debug . message ( "In SiteMonitor.isAvailable()" ) ; if ( available ) { debug . message ( "SiteID " + url . toString ( ) + " is UP." ) ; } else { debug . message ( "SiteID " + url . toString ( ) + " is DOWN." ) ; } } return available ; }
target:  Checks if the site of the url is up.