@Override public void start(CoprocessorEnvironment env) throws IOException { // At start, we get base CoprocessorEnvironment Type, not RegionCoprocessorEnvironment, checkShared(((RegionCoprocessorEnvironment) env).getConnection()); checkShortCircuit( ((RegionCoprocessorEnvironment) env).createConnection(env.getConfiguration())); } }
@Override public Connection createConnection(Configuration conf) throws IOException { return delegate.createConnection(conf); }
@Override public Connection apply(ConnectionType t) { try { return env.createConnection(getTypeSpecificConfiguration(connectionType, env.getConfiguration())); } catch (IOException e) { throw new RuntimeException(e); } } });
@Override public Connection createConnection(Configuration conf) throws IOException { return delegate.createConnection(conf); }
@Override public Connection createConnection(Configuration conf) throws IOException { return delegate.createConnection(conf); }
@Override public Connection apply(ConnectionType t) { try { return env.createConnection(getTypeSpecificConfiguration(connectionType, env.getConfiguration())); } catch (IOException e) { throw new RuntimeException(e); } } });
@Override public Connection apply(ConnectionType t) { try { return env.createConnection(getTypeSpecificConfiguration(connectionType, env.getConfiguration())); } catch (IOException e) { throw new RuntimeException(e); } } });
@Override public void start(CoprocessorEnvironment env) throws IOException { // At start, we get base CoprocessorEnvironment Type, not RegionCoprocessorEnvironment, checkShared(((RegionCoprocessorEnvironment) env).getConnection()); checkShortCircuit( ((RegionCoprocessorEnvironment) env).createConnection(env.getConfiguration())); } }