// create our own comm so we ping in an isolated client - don't reuse the sender's comm for this
RemoteCommunicator comm = this.agent.createServerRemoteCommunicator(transport,
primaryAddress, primaryPort, transportParams);
if (ping(comm)) {
LOG.info(AgentI18NResourceKeys.PRIMARY_SERVER_UP, primaryAddress, primaryPort);
failoverList.resetIndex(); // so the failover method call starts at the top
this.agent.failoverToNewServer(sender.getRemoteCommunicator()); // note that we make sure we pass in the sender's comm
} else {
LOG.info(AgentI18NResourceKeys.PRIMARY_SERVER_STILL_DOWN, primaryAddress, primaryPort);
}
}