jgAddress = (org.jgroups.Address)channel.down(new Event(Event.GET_PHYSICAL_ADDRESS, jgAddress));
}
if (jgAddress instanceof IpAddress)
{
String address = ((IpAddress)jgAddress).getIpAddress().getHostAddress();
RSyncJob rSyncJob =
new RSyncJob(String.format(urlFormatString, address), indexPath, rsyncUserName, rsyncPassword);
try
{
// synchronizing access to RSync Job.
// No parallel jobs allowed
synchronized (this)
{
rSyncJob.execute();
}
}
catch (IOException e)
{
LOG.error("Failed to retrieve index using RSYNC", e);