class CumulusTorSwitchService implements ISwitchService {

    @Override
    public boolean isPoweredOn( SwitchNode switchNode )
    {
        // String timeoutStr = HmsConfigHolder.getHMSConfigProperty(HmsConfigHolder.HMS_SWITCH_CONNECTION_TIMEOUT);
        // int timeout = (timeoutStr != null) ? Integer.parseInt(timeoutStr) : 12000;
        String addr = switchNode.getIpAddress();
        boolean reachable = false;
        InetAddress ipAddress;

        try
        {
            ipAddress = Inet4Address.getByName( addr );
            reachable = ipAddress.isReachable( HMS_SWITCH_CONNECTION_TIMEOUT );
        }
        catch ( IOException ioe )
        {
            logger.debug( "Received exception while trying to reach " + addr, ioe );
        }

        return ( reachable );
    }

}