Package com.alibaba.wasp

Examples of com.alibaba.wasp.TableLockedException


    super(tableName, server, fMasterServices, eventType);
    this.tableLockManager = fMasterServices.getTableLockManager();
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by DeleteIndexHandler");
    } else {
      throw new TableLockedException(tableNameStr + " has been locked. ");
    }
    this.indexName = indexName;
  }
View Full Code Here


      }
    }
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by DeleteTableHandler");
    } else {
      throw new TableLockedException(tableNameStr + " has been locked. ");
    }
  }
View Full Code Here

    super(tableName, server, fMasterServices, eventType);
    this.tableLockManager = fMasterServices.getTableLockManager();
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by CreateIndexHandler");
    } else {
      throw new TableLockedException(tableNameStr + " has been locked. ");
    }
    this.index = index;
  }
View Full Code Here

    this.table = table;
    this.tableLockManager = fMasterServices.getTableLockManager();
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by ModifyTableHandler");
    } else {
      throw new TableLockedException(tableNameStr + " has been locked. ");
    }
  }
View Full Code Here

      throw ex;
    }
    if (tableLockManager.lockTable(tableNameStr)) {
      LOG.info("lock table '" + tableNameStr + "' by TruncateTableHandler");
    } else {
      throw new TableLockedException(tableNameStr + " has been locked. ");
    }
  }
View Full Code Here

    try {
      this.tableLockManager = fMasterServices.getTableLockManager();
      if (tableLockManager.lockTable(tableNameStr)) {
        LOG.info("lock table '" + tableNameStr + "' by EnableTableHandler");
      } else {
        throw new TableLockedException(tableNameStr + " has been locked. ");
      }
      if (!skipTableStateCheck) {
        try {
          if (!this.assignmentManager.getZKTable()
              .checkDisabledAndSetEnablingTable(this.tableNameStr)) {
View Full Code Here

    try {
      this.tableLockManager = fMasterServices.getTableLockManager();
      if (tableLockManager.lockTable(tableName)) {
        LOG.info("lock table '" + tableName + "' by CreateIndexHandler");
      } else {
        throw new TableLockedException(tableName + " has been locked. ");
      }
      try {
        if (!this.assignmentManager.getZKTable().checkAndSetEnablingTable(
            tableName))
          throw new TableExistsException(tableName);
View Full Code Here

    try {
      this.tableLockManager = fMasterServices.getTableLockManager();
      if (tableLockManager.lockTable(tableNameStr)) {
        LOG.info("lock table '" + tableNameStr + "' by DisableTableHandler");
      } else {
        throw new TableLockedException(tableNameStr + " has been locked. ");
      }
      if (!skipTableStateCheck) {
        try {
          if (!this.assignmentManager.getZKTable()
              .checkEnabledAndSetDisablingTable(this.tableNameStr)) {
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.TableLockedException

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.