コード例 #1
0
ファイル: TabletStateStore.java プロジェクト: harayz/accumulo
 public static void setLocation(Assignment assignment) throws DistributedStoreException {
   TabletStateStore store;
   if (assignment.tablet.isRootTablet()) {
     store = new ZooTabletStateStore();
   } else if (assignment.tablet.isMeta()) {
     store = new RootTabletStateStore();
   } else {
     store = new MetaDataStateStore();
   }
   store.setLocations(Collections.singletonList(assignment));
 }
コード例 #2
0
ファイル: TabletStateStore.java プロジェクト: harayz/accumulo
 public static void unassign(TabletLocationState tls) throws DistributedStoreException {
   TabletStateStore store;
   if (tls.extent.isRootTablet()) {
     store = new ZooTabletStateStore();
   } else if (tls.extent.isMeta()) {
     store = new RootTabletStateStore();
   } else {
     store = new MetaDataStateStore();
   }
   store.unassign(Collections.singletonList(tls));
 }