public abstract class ExecSession extends Object
Some methods, getInjector
, getModelManager
, and newPlugin
have been removed since v0.10.18
.
Accessing ExecSession
from plugins is however discouraged though ExecSession
is in embulk-spi
,
so accessible from plugins.
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanup()
Cleans up the session.
|
abstract ExecSession |
forPreview()
Clones this
ExecSession instance in a preview mode. |
abstract BufferAllocator |
getBufferAllocator()
Returns the
BufferAllocator instance. |
abstract Logger |
getLogger(Class<?> clazz)
Deprecated.
Call
LoggerFactory.getLogger(Class) directly, instead. |
abstract Logger |
getLogger(String name)
Deprecated.
Call
LoggerFactory.getLogger(String) directly, instead. |
abstract PageBuilder |
getPageBuilder(BufferAllocator allocator,
Schema schema,
PageOutput output)
Returns a
PageBuilder instance created for the parameters. |
abstract PageReader |
getPageReader(Schema schema)
Returns a
PageReader instance created for the parameter. |
abstract ConfigSource |
getSessionExecConfig()
Deprecated.
Plugins should no longer use it. It would be removed.
|
abstract TempFileSpace |
getTempFileSpace()
Returns a space for temporary files, a
TempFileSpace instance corresponding to the registered
ExecSession . |
abstract Timestamp |
getTransactionTime()
Deprecated.
Timestamp is deprecated. |
abstract Instant |
getTransactionTimeInstant()
Returns the transaction time in
Instant . |
abstract String |
getTransactionTimeString()
Returns the transaction time formatted as a
String . |
abstract boolean |
isPreview()
Returns
true if the execution is in a preview mode. |
abstract ConfigDiff |
newConfigDiff()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newConfigDiff . |
abstract ConfigSource |
newConfigSource()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newConfigSource . |
abstract TaskReport |
newTaskReport()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newTaskReport . |
abstract TaskSource |
newTaskSource()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newTaskSource . |
public abstract ExecSession forPreview()
ExecSession
instance in a preview mode.@Deprecated public abstract ConfigSource getSessionExecConfig()
@Deprecated public abstract Timestamp getTransactionTime()
Timestamp
is deprecated.Timestamp
.public abstract Instant getTransactionTimeInstant()
Instant
.public abstract String getTransactionTimeString()
String
.@Deprecated public abstract Logger getLogger(String name)
LoggerFactory.getLogger(String)
directly, instead.Logger
instance named according to the name parameter.@Deprecated public abstract Logger getLogger(Class<?> clazz)
LoggerFactory.getLogger(Class)
directly, instead.Logger
instance named corresponding to the class passed as parameter.public abstract BufferAllocator getBufferAllocator()
BufferAllocator
instance.public abstract PageBuilder getPageBuilder(BufferAllocator allocator, Schema schema, PageOutput output)
PageBuilder
instance created for the parameters.public abstract PageReader getPageReader(Schema schema)
PageReader
instance created for the parameter.@Deprecated public abstract TaskReport newTaskReport()
embulk-util-config
from plugins. Use its own newTaskReport
.TaskReport
instance.@Deprecated public abstract ConfigDiff newConfigDiff()
embulk-util-config
from plugins. Use its own newConfigDiff
.ConfigDiff
instance.@Deprecated public abstract ConfigSource newConfigSource()
embulk-util-config
from plugins. Use its own newConfigSource
.ConfigSource
instance.@Deprecated public abstract TaskSource newTaskSource()
embulk-util-config
from plugins. Use its own newTaskSource
.TaskSource
instance.public abstract TempFileSpace getTempFileSpace()
TempFileSpace
instance corresponding to the registered
ExecSession
.public abstract boolean isPreview()
true
if the execution is in a preview mode.public abstract void cleanup()