public static void setLocation(ServerContext context, Assignment assignment) throws DistributedStoreException { getStoreForTablet(assignment.tablet, context) .setLocations(Collections.singletonList(assignment)); }
public static void setLocation(AccumuloServerContext context, Assignment assignment) throws DistributedStoreException { getStoreForTablet(assignment.tablet, context) .setLocations(Collections.singletonList(assignment)); }
public static void setLocation(Assignment assignment) throws DistributedStoreException { TabletStateStore store; if (assignment.tablet.isRootTablet()) { store = new ZooTabletStateStore(); } else { store = new MetaDataStateStore(); } store.setLocations(Collections.singletonList(assignment)); }