@SimulationSupport public class HadoopFsMirror extends ResourceMirror
ResourceMirror directly using Hadoop File System.FileProcess| Constructor and Description |
|---|
HadoopFsMirror(org.apache.hadoop.conf.Configuration configuration,
HadoopFsProfile profile,
ParameterList arguments)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> DrainDriver<T> |
createDrain(ProcessScript<T> script)
Creates a new drain driver for this resource.
|
<T> SourceDriver<T> |
createSource(ProcessScript<T> script)
Creates a new source driver for this resource.
|
String |
getName()
Returns the name of this resource.
|
void |
prepare(GateScript script)
Prepares this resource for the specified execution.
|
isTransactional, onSessionCompleting, onSessionCreatedpublic HadoopFsMirror(org.apache.hadoop.conf.Configuration configuration,
HadoopFsProfile profile,
ParameterList arguments)
configuration - the hadoop configurationprofile - the profilearguments - the argumentsIllegalArgumentException - if any parameter is nullpublic String getName()
ResourceMirrorgetName in class ResourceMirrorpublic void prepare(GateScript script) throws IOException
ResourceMirrorprepare in class ResourceMirrorscript - target scriptIOException - if failed to prepare this resourcepublic <T> SourceDriver<T> createSource(ProcessScript<T> script) throws IOException
ResourceMirrorResourceMirror.prepare(GateScript) was completed.createSource in class ResourceMirrorT - target data model typescript - target processIOException - if failed to open this resourcepublic <T> DrainDriver<T> createDrain(ProcessScript<T> script) throws IOException
ResourceMirrorResourceMirror.prepare(GateScript) was completed.createDrain in class ResourceMirrorT - target data model typescript - target processIOException - if failed to open this resourcepublic void close()
throws IOException
IOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.