use of org.apache.accumulo.core.clientImpl.ClientInfoImpl in project accumulo by apache.
the class ZooKeeperInstance method getConnector.
@Override
public Connector getConnector(String principal, AuthenticationToken token) throws AccumuloException, AccumuloSecurityException {
Properties properties = ClientConfConverter.toProperties(clientConf);
properties.setProperty(ClientProperty.AUTH_PRINCIPAL.getKey(), principal);
properties.setProperty(ClientProperty.INSTANCE_NAME.getKey(), getInstanceName());
ClientInfo info = new ClientInfoImpl(properties, token);
AccumuloConfiguration serverConf = ClientConfConverter.toAccumuloConf(properties);
return new org.apache.accumulo.core.clientImpl.ConnectorImpl(new ClientContext(SingletonReservation.noop(), info, serverConf));
}
Aggregations