Package org.apache.accumulo.core.constraints

Examples of org.apache.accumulo.core.constraints.Violations


  public CommitSession prepareMutationsForCommit(TservConstraintEnv cenv, List<Mutation> mutations) throws TConstraintViolationException {
   
    ConstraintChecker cc = constraintChecker.get();
   
    List<Mutation> violators = null;
    Violations violations = new Violations();
    cenv.setExtent(extent);
    for (Mutation mutation : mutations) {
      Violations more = cc.check(cenv, mutation);
      if (more != null) {
        violations.add(more);
        if (violators == null)
          violators = new ArrayList<Mutation>();
        violators.add(mutation);
View Full Code Here


    this.maxLatency = config.getMaxLatency(TimeUnit.MILLISECONDS) <= 0 ? Long.MAX_VALUE : config.getMaxLatency(TimeUnit.MILLISECONDS);
    this.credentials = credentials;
    this.timeout = config.getTimeout(TimeUnit.MILLISECONDS);
    mutations = new MutationSet();
   
    violations = new Violations();
   
    authorizationFailures = new HashMap<KeyExtent,Set<SecurityErrorCode>>();
    serverSideErrors = new HashSet<String>();
   
    lastProcessingStartTime = System.currentTimeMillis();
View Full Code Here

      security.authenticateUser(credentials, credentials);
      if (updateMetrics.isEnabled())
        updateMetrics.add(TabletServerUpdateMetrics.permissionErrors, 0);
     
      UpdateSession us = new UpdateSession();
      us.violations = new Violations();
      us.credentials = credentials;
      us.cenv = new TservConstraintEnv(security, us.credentials);
     
      long sid = sessionManager.createSession(us, false);
     
View Full Code Here

  public CommitSession prepareMutationsForCommit(TservConstraintEnv cenv, List<Mutation> mutations) throws TConstraintViolationException {
   
    ConstraintChecker cc = constraintChecker.get();
   
    List<Mutation> violators = null;
    Violations violations = new Violations();
    cenv.setExtent(extent);
    for (Mutation mutation : mutations) {
      Violations more = cc.check(cenv, mutation);
      if (more != null) {
        violations.add(more);
        if (violators == null)
          violators = new ArrayList<Mutation>();
        violators.add(mutation);
View Full Code Here

      } catch (AccumuloSecurityException e) {
        throw e.asThriftException();
      }

      UpdateSession us = new UpdateSession();
      us.violations = new Violations();
      us.credentials = credentials;
      us.cenv = new TservConstraintEnv(authenticator, credentials);

      long sid = sessionManager.createSession(us, false);
View Full Code Here

    this.maxMem = maxMemory;
    this.maxLatency = maxLatency <= 0 ? Long.MAX_VALUE : maxLatency;
    this.credentials = credentials;
    mutations = new MutationSet();
   
    violations = new Violations();
   
    authorizationFailures = new HashSet<KeyExtent>();
    serverSideErrors = new HashSet<String>();
   
    lastProcessingStartTime = System.currentTimeMillis();
View Full Code Here

  public CommitSession prepareMutationsForCommit(TservConstraintEnv cenv, List<Mutation> mutations) throws TConstraintViolationException {
   
    ConstraintChecker cc = constraintChecker.get();
   
    List<Mutation> violators = null;
    Violations violations = new Violations();
    cenv.setExtent(extent);
    for (Mutation mutation : mutations) {
      Violations more = cc.check(cenv, mutation);
      if (more != null) {
        violations.add(more);
        if (violators == null)
          violators = new ArrayList<Mutation>();
        violators.add(mutation);
View Full Code Here

      security.authenticateUser(credentials, credentials);
      if (updateMetrics.isEnabled())
        updateMetrics.add(TabletServerUpdateMetrics.permissionErrors, 0);
     
      UpdateSession us = new UpdateSession();
      us.violations = new Violations();
      us.credentials = credentials;
      us.cenv = new TservConstraintEnv(security, us.credentials);
     
      long sid = sessionManager.createSession(us, false);
     
View Full Code Here

  public CommitSession prepareMutationsForCommit(TservConstraintEnv cenv, List<Mutation> mutations) throws TConstraintViolationException {

    ConstraintChecker cc = constraintChecker.get();

    List<Mutation> violators = null;
    Violations violations = new Violations();
    cenv.setExtent(extent);
    for (Mutation mutation : mutations) {
      Violations more = cc.check(cenv, mutation);
      if (more != null) {
        violations.add(more);
        if (violators == null)
          violators = new ArrayList<Mutation>();
        violators.add(mutation);
View Full Code Here

      security.authenticateUser(credentials, credentials);
      if (updateMetrics.isEnabled())
        updateMetrics.add(TabletServerUpdateMetrics.permissionErrors, 0);

      UpdateSession us = new UpdateSession();
      us.violations = new Violations();
      us.credentials = credentials;
      us.cenv = new TservConstraintEnv(security, us.credentials);

      long sid = sessionManager.createSession(us, false);
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.constraints.Violations

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.