/** {@inheritDoc} */ @Override public CassandraFijiTable openTable(String tableName) throws IOException { final State state = mState.get(); Preconditions.checkState(state == State.OPEN, "Cannot open table in Fiji instance %s in state %s.", this, state); return new CassandraFijiTable( this, tableName, mAdmin, mInstanceMonitor.getTableLayoutMonitor(tableName)); }
mInstanceMonitor = new InstanceMonitor( mSystemVersion, mURI, mMetaTable, mZKClient); mInstanceMonitor.start();
final FijiMetaTable metaTable, final CuratorFramework zkClient) { mUserID = generateInstanceUserID(); mInstanceURI = instanceURI; mSchemaTable = schemaTable;
mInstanceMonitor = new InstanceMonitor( mSystemVersion, mURI, mMetaTable, mZKClient); mInstanceMonitor.start();
/** {@inheritDoc} */ @Override public HBaseFijiTable openTable(String tableName) throws IOException { final State state = mState.get(); Preconditions.checkState(state == State.OPEN, "Cannot open table in Fiji instance %s in state %s.", this, state); if (!getTableNames().contains(tableName)) { throw new FijiTableNotFoundException( FijiURI.newBuilder(mURI).withTableName(tableName).build()); } return new HBaseFijiTable( this, tableName, mConf, mHTableFactory, mInstanceMonitor.getTableLayoutMonitor(tableName)); }