public void handleRouteAssignmentEvent(String srcCluster, String dstCluster, String routePartition, String toState) {
synchronized (_handlerLock) {
if (toState.equals("ONLINE")) {
handleRouteAssignmentOnline(srcCluster, dstCluster, routePartition);
} else if (toState.equals("OFFLINE")) {
handleRouteAssignmentOffline(srcCluster, dstCluster, routePartition);
} else if (toState.equals("DROPPED")) {
handleRouteAssignmentDropped(srcCluster, dstCluster, routePartition);
} else {
LOGGER.error("Invalid route assignement state {}", toState);
}
}
}