public abstract class ResourceMirror extends Object implements Closeable
Constructor and Description |
---|
ResourceMirror() |
Modifier and Type | Method and Description |
---|---|
abstract <T> DrainDriver<T> |
createDrain(ProcessScript<T> script)
Creates a new drain driver for this resource.
|
abstract <T> SourceDriver<T> |
createSource(ProcessScript<T> script)
Creates a new source driver for this resource.
|
abstract String |
getName()
Returns the name of this resource.
|
boolean |
isTransactional()
Returns whether this resource is transactional.
|
void |
onSessionCompleting()
Invoke before the session was completed.
|
void |
onSessionCreated()
Invoke after the session was created.
|
abstract void |
prepare(GateScript script)
Prepares this resource for the specified execution.
|
public abstract String getName()
public boolean isTransactional()
onSessionCreated()
before the other resources,
and onSessionCompleting()
after the other resources.
The default implementation always returns false
.true
if this resource is transactional, otherwise false
public void onSessionCreated() throws IOException
IOException
- if failed to executepublic void onSessionCompleting() throws IOException
IOException
- if failed to executepublic abstract void prepare(GateScript script) throws IOException
script
- target scriptIOException
- if failed to prepare this resourceIllegalArgumentException
- if any parameter is null
public abstract <T> SourceDriver<T> createSource(ProcessScript<T> script) throws IOException
prepare(GateScript)
was completed.T
- target data model typescript
- target processIOException
- if failed to open this resourceIllegalArgumentException
- if any parameter is null
public abstract <T> DrainDriver<T> createDrain(ProcessScript<T> script) throws IOException
prepare(GateScript)
was completed.T
- target data model typescript
- target processIOException
- if failed to open this resourceIllegalArgumentException
- if any parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.