assertDataInSite(NYC);
}
protected void startStateTransfer(Cache<?, ?> coordinator, String toSite) {
XSiteAdminOperations operations = extractComponent(coordinator, XSiteAdminOperations.class);
assertEquals(XSiteAdminOperations.SUCCESS, operations.pushState(toSite));
}
protected void takeSiteOffline(String localSite, String remoteSite) {
XSiteAdminOperations operations = extractComponent(cache(localSite, 0), XSiteAdminOperations.class);
assertEquals(XSiteAdminOperations.SUCCESS, operations.takeSiteOffline(remoteSite));