@Override public void run() { boolean alreadyBound = false; try { alreadyBound = alreadyBound(); // If the ip is not bound, the registry could be stale. First sync up the registry from the // neighboring node before trying to bind the IP if (!alreadyBound) { registry.clearRegistry(); int count = registry.syncUp(); registry.openForTraffic(applicationInfoManager, count); } else { // An ip is already bound return; } bind(); } catch (Throwable e) { logger.error("Could not bind to IP", e); } finally { if (alreadyBound) { timer.schedule(new IPBindingTask(), serverConfig.getEIPBindingRetryIntervalMs()); } else { timer.schedule(new IPBindingTask(), serverConfig.getEIPBindingRetryIntervalMsWhenUnbound()); } } } }
@Override public void run() { boolean isEIPBound = false; try { isEIPBound = isEIPBound(); // If the EIP is not bound, the registry could be stale. First sync up the registry from the // neighboring node before trying to bind the EIP if (!isEIPBound) { registry.clearRegistry(); int count = registry.syncUp(); registry.openForTraffic(applicationInfoManager, count); } else { // An EIP is already bound return; } bindEIP(); } catch (Throwable e) { logger.error("Could not bind to EIP", e); } finally { if (isEIPBound) { timer.schedule(new EIPBindingTask(), serverConfig.getEIPBindingRetryIntervalMs()); } else { timer.schedule(new EIPBindingTask(), serverConfig.getEIPBindingRetryIntervalMsWhenUnbound()); } } } };
@Override public void run() { boolean isEIPBound = false; try { isEIPBound = isEIPBound(); // If the EIP is not bound, the registry could be stale. First sync up the registry from the // neighboring node before trying to bind the EIP if (!isEIPBound) { registry.clearRegistry(); int count = registry.syncUp(); registry.openForTraffic(applicationInfoManager, count); } else { // An EIP is already bound return; } bindEIP(); } catch (Throwable e) { logger.error("Could not bind to EIP", e); } finally { if (isEIPBound) { timer.schedule(new EIPBindingTask(), serverConfig.getEIPBindingRetryIntervalMs()); } else { timer.schedule(new EIPBindingTask(), serverConfig.getEIPBindingRetryIntervalMsWhenUnbound()); } } } };
@Override public void run() { boolean alreadyBound = false; try { alreadyBound = alreadyBound(); // If the ip is not bound, the registry could be stale. First sync up the registry from the // neighboring node before trying to bind the IP if (!alreadyBound) { registry.clearRegistry(); int count = registry.syncUp(); registry.openForTraffic(applicationInfoManager, count); } else { // An ip is already bound return; } bind(); } catch (Throwable e) { logger.error("Could not bind to IP", e); } finally { if (alreadyBound) { timer.schedule(new IPBindingTask(), serverConfig.getEIPBindingRetryIntervalMs()); } else { timer.schedule(new IPBindingTask(), serverConfig.getEIPBindingRetryIntervalMsWhenUnbound()); } } } }