@Override public PingCommand getCurrentStatus(final long id) { return new PingCommand(Host.Type.ExternalFirewall, id); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof PingNuageVspCommand)) return false; PingNuageVspCommand that = (PingNuageVspCommand) o; return super.equals(that) && shouldAudit == that.shouldAudit; }
@Override public int hashCode() { return new HashCodeBuilder() .appendSuper(super.hashCode()) .append(shouldAudit) .toHashCode(); } }
if (cmd.getContextParam("logid") != null) { MDC.put("logcontextid", cmd.getContextParam("logid"));
handleCommands(attache, request.getSequence(), new Command[] {cmd}); if (cmd instanceof PingCommand) { final long cmdHostId = ((PingCommand)cmd).getHostId();
@Override public PingCommand getCurrentStatus(final long id) { return new PingCommand(Host.Type.TrafficMonitor, id); }
@Override public PingCommand getCurrentStatus(long id) { return new PingCommand(Type.ConsoleProxy, id); }
@Override public PingCommand getCurrentStatus(long id) { return new PingCommand(_type, id); }
@Override public PingCommand getCurrentStatus(long id) { return new PingCommand(Host.Type.L2Networking, id); }
@Override public PingCommand getCurrentStatus(final long id) { return new PingCommand(Host.Type.ExternalLoadBalancer, id); }
@Override public PingCommand getCurrentStatus(long id) { pingCount++; if (pingCount > 10 && refreshNCCConnection()) { pingCount = 0; } return new PingCommand(Host.Type.NetScalerControlCenter, id); }
@Override public PingCommand getCurrentStatus(long id) { return new PingCommand(getType(), id); }
@Override public PingCommand getCurrentStatus(final long id) { try { final ControlClusterStatus ccs = niciraNvpApi.getControlClusterStatus(); getApiProviderMajorityVersion(ccs); if (!"stable".equals(ccs.getClusterStatus())) { s_logger.error("ControlCluster state is not stable: " + ccs.getClusterStatus()); return null; } } catch (final NiciraNvpApiException e) { s_logger.error("getControlClusterStatus failed", e); return null; } return new PingCommand(Host.Type.L2Networking, id); }
@Override public PingCommand getCurrentStatus(long id) { Output output; try { output = _brocadeVcsApi.getSwitchStatus(); } catch (BrocadeVcsApiException e) { s_logger.error("getSwitchStatus failed", e); return null; } List<VcsNodeInfo> vcsNodes = output.getVcsNodes().getVcsNodeInfo(); if (vcsNodes != null && !vcsNodes.isEmpty()) { for (VcsNodeInfo vcsNodeInfo : vcsNodes) { if (!"Online".equals(vcsNodeInfo.getNodeState())) { s_logger.error("Brocade Switch is not ready: " + id); return null; } } } return new PingCommand(Host.Type.L2Networking, id); }
s_logger.error("getCapabilities failed", e); return new PingCommand(Host.Type.L2Networking, id);