public class DataserviceConveyor extends Object implements StringConstants
data services
.Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE
Buffer size for the byte arrays
|
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
DataserviceConveyor(Repository repository,
MetadataInstance metadataInstance) |
Modifier and Type | Method and Description |
---|---|
DeployStatus |
deploy(Repository.UnitOfWork transaction,
Dataservice dataservice)
Deploy the
Dataservice to the teiid instance |
void |
dsImport(Repository.UnitOfWork transaction,
InputStream srcStream,
KomodoObject parent,
ImportOptions importOptions,
ImportMessages importMessages)
Import a
Dataservice from the given source InputStream |
byte[] |
export(Repository.UnitOfWork transaction,
Dataservice dataService,
Properties exportProperties)
Export the given data service
|
protected WorkspaceManager |
getWorkspaceManager(Repository.UnitOfWork transaction) |
static boolean |
handleExistingNode(Repository.UnitOfWork transaction,
KomodoObject parent,
ImportOptions importOptions,
ImportMessages importMessages) |
public static final int BUFFER_SIZE
public DataserviceConveyor(Repository repository, MetadataInstance metadataInstance)
repository
- the associated repository (cannot be null
)protected WorkspaceManager getWorkspaceManager(Repository.UnitOfWork transaction) throws KException
KException
public static boolean handleExistingNode(Repository.UnitOfWork transaction, KomodoObject parent, ImportOptions importOptions, ImportMessages importMessages) throws KException
KException
public void dsImport(Repository.UnitOfWork transaction, InputStream srcStream, KomodoObject parent, ImportOptions importOptions, ImportMessages importMessages) throws KException
Dataservice
from the given source InputStream
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)srcStream
- the source stream of the data serviceparent
- the parent of the imported data serviceimportOptions
- options for the import procedureimportMessages
- holder to contain any status messages from the import procedureKException
- if error occurspublic byte[] export(Repository.UnitOfWork transaction, Dataservice dataService, Properties exportProperties) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)dataService
- the data service to exportexportProperties
- export properties to be used during the export procedureKException
- if errors occurspublic DeployStatus deploy(Repository.UnitOfWork transaction, Dataservice dataservice)
Dataservice
to the teiid instancetransaction
- the transaction (cannot be null
and must have a state of Repository.UnitOfWork.State.NOT_STARTED
)dataservice
- the data service to be deployed (cannot be null
)teiid
- the Teiid being deployed to (cannot be null
)null
)Copyright © 2013–2019. All rights reserved.