public final class DirectIoTransactionEditor
extends org.apache.hadoop.conf.Configured
Modifier and Type | Class and Description |
---|---|
static class |
DirectIoTransactionEditor.TransactionInfo
Represents a tranaction info.
|
Constructor and Description |
---|
DirectIoTransactionEditor()
Creates a new instance.
|
DirectIoTransactionEditor(DirectDataSourceRepository repository)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
abort(String executionId)
Aborts Direct I/O transaction for an execution.
|
boolean |
apply(String executionId)
Applies Direct I/O transaction for an execution.
|
DirectIoTransactionEditor.TransactionInfo |
get(String executionId)
Returns the corresponded transaction information to the execution ID.
|
List<DirectIoTransactionEditor.TransactionInfo> |
list()
Lists Direct I/O transaction information.
|
public DirectIoTransactionEditor()
public DirectIoTransactionEditor(DirectDataSourceRepository repository)
repository
- repository, or null
if create repository from Configurationpublic DirectIoTransactionEditor.TransactionInfo get(String executionId) throws IOException
executionId
- target IDnull
if does not existIOException
- if failed to obtain informationIllegalArgumentException
- if some parameters were null
public List<DirectIoTransactionEditor.TransactionInfo> list() throws IOException
IOException
- if failed to obtain transactions informationIllegalArgumentException
- if some parameters were null
public boolean apply(String executionId) throws IOException, InterruptedException
executionId
- target execution IDtrue
if successfully applied, or false
if nothing to doIOException
- if failed to apply by I/O errorInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
public boolean abort(String executionId) throws IOException, InterruptedException
executionId
- target execution IDtrue
if successfully aborted, or false
if nothing to doIOException
- if failed to abort by I/O errorInterruptedException
- if interruptedIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.