public static void dispatchAssignAddress(Address address, VmInstance vm) { try { AssignAddressCallback callback = new AssignAddressCallback(address, vm); Clusters.dispatchClusterEvent(address.getCluster(), callback); } catch (Throwable e) { LOG.debug(e, e); } }
public static void dispatchUnassignAddress(Address address) { if (VmInstance.DEFAULT_IP.equals(address.getInstanceAddress())) { return; } try { UnassignAddressCallback callback = new UnassignAddressCallback(address); Clusters.dispatchClusterEvent(address.getCluster(), callback); } catch (Throwable e) { LOG.debug(e, e); } }