Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore ListLoad Dict Str Str Str Num Str Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return TupleLoad Call AttributeLoad NameLoad attr Num Num NameLoad decorator_list decorator_list
N/A N/A random N/A threading N/A time N/A urllib N/A weakref N/A re N/A traceback dbconstants * N/A ZOO_ACL_OPEN N/A N/A perms scheme id 31 world anyone N/A LOCK_TIMEOUT 30 N/A TX_TIMEOUT 30 N/A GC_INTERVAL 30 N/A ID_BLOCK 1000 N/A DEFAULT_HOST localhost:2181 N/A GLOBAL_LOCK_KEY __global__ N/A GLOBAL_ID_KEY __global__ N/A PATH_SEPARATOR / N/A APPS_PATH /appscale/apps N/A APP_TX_PATH txids N/A APP_LOCK_PATH locks N/A APP_ID_PATH ids N/A APP_TX_PREFIX tx N/A APP_LOCK_PREFIX lk N/A APP_ID_PREFIX id N/A TX_LOCK_PATH lockpath N/A TX_BLACKLIST_PATH blacklist N/A TX_VALIDLIST_PATH validlist N/A TX_UPDATEDKEY_PREFIX ukey N/A GC_LOCK_PATH gclock N/A GC_TIME_PATH gclasttime ZKTransactionException N/A Exception N/A N/A TYPE_UNKNOWN 0 N/A TYPE_NO_CONNECTION 1 N/A TYPE_INVALID 2 N/A TYPE_EXPIRED 3 N/A TYPE_DIFFERENT_ROOTKEY 4 __init__ N/A N/A self type message N/A N/A N/A N/A N/A Exception __init__ self message N/A N/A self type type N/A getType N/A N/A self N/A N/A N/A N/A self type N/A N/A ZKTransaction N/A N/A N/A STATE_REGISTERED 0 N/A STATE_MODIFIED 1 N/A STATE_FAILED 2 N/A STATE_DONE 3 __init__ N/A N/A self host startgc N/A DEFAULT_HOST True N/A N/A N/A self connectcv N/A N/A threading Condition N/A N/A self connected False N/A N/A self gcrunning False N/A N/A self gccv N/A N/A threading Condition N/A N/A self __rollbackFunc None N/A getTransactionID N/A N/A self app_id N/A N/A N/A  Get new transaction ID for transaction.

    This function only create transaction ID, and you must lock
    particular root entity using acquireLock().
    The ID is long number.
    The transaction will expire in 30 seconds.
     N/A N/A N/A random randint 0 100000000 N/A checkTransaction N/A N/A self app_id txid N/A N/A N/A  Get status of specified transaction.

    Returns: True - If transaction is alive.
    Raises: ZKTransactionException - If transaction is timeout or not exist.
     N/A True N/A acquireLock N/A N/A self app_id txid entity_key N/A GLOBAL_LOCK_KEY N/A N/A  Acquire lock for transaction.

    You must call getTransactionID() first to obtain transaction ID.
    You could call this method anytime if the root entity key is same.
    If you could not get lock, this returns False.
     N/A True N/A getUpdatedKeyList N/A N/A self app_id txid N/A N/A N/A  Get the list of updated key.

    This method just return updated key list which is registered using
    registUpdatedKey().
    This method doesn't check transaction state, so
    you can use this method for rollback.
     N/A N/A N/A releaseLock N/A N/A self app_id txid key N/A None N/A N/A  Release acquired lock.

    You must call acquireLock() first.
    if the transaction is not valid or it is expired, this raises Exception.
    After the release lock, you could not use transaction ID again.
    If there is no lock, this method returns False.
     N/A True N/A isBlacklisted N/A N/A self app_id txid entity_key N/A None N/A N/A  This validate transaction id with black list.

    The PB server logic should use getValidTransactionID().
     N/A False N/A getValidTransactionID N/A N/A self app_id target_txid entity_key N/A N/A N/A  This returns valid transaction id for the entity key.

    If the specified transaction id is black-listed,
    this returns latest valid transaction id.
    If there is no valid transaction id, this returns 0.
     N/A N/A long target_txid N/A registUpdatedKey N/A N/A self app_id current_txid target_txid entity_key N/A N/A N/A  Regist valid transaction id for entity.

    target_txid must be the latest valid transaction id for the entity.
     N/A N/A notifyFailedTransaction N/A N/A self app_id txid N/A N/A N/A  Notify failed transaction id.

    This method will add the transaction id into black list.
    After this call, the transaction becomes invalid.
     N/A N/A setRollbackFunction N/A N/A self func N/A N/A N/A  Set rollback function for gc.
    <Obsolete>

    The function must have following 4 arguments.
    - Application ID
    - Transaction ID
    - Root key
    - Updated key array

    You could not use acquireLock() and releaseLock()
    in rollback function because the transaction is already timeout.
    The specified transaction already have lock, so you don't have to call
    acquireLock() in rollback.
    You should raise any Exception if rollback is failed.
     N/A N/A self __rollbackFunc func N/A generateIDBlock N/A N/A self app_id entity_key N/A GLOBAL_ID_KEY N/A N/A  Generate ID block for specific key.

    This generates ID block that is unique in specified key.
    If the key doesn't specify, this generates global ID.
    This method returns long start ID and block length tuple.
     N/A N/A N/A N/A random randint 0 10000000000 ID_BLOCK N/A N/A