public class ArchiveClientService extends Object
The service connects to the Imixs-Archive Service by a Rest Client to push and read data.
| Constructor and Description |
|---|
ArchiveClientService() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.melman.DocumentClient |
initWorkflowClient()
Helper method to initalize a Melman Workflow Client based on the current
archive configuration.
|
byte[] |
loadFileFromArchive(org.imixs.workflow.FileData fileData)
This method loads the file content for a given md5 checksum directly from the
cassandra archive using the resource
/archive/md5/{md5}
To activate this mechansim the environment variable ARCHIVE_SERVICE_ENDPOINT
must be set to a valid endpoint. |
void |
pushSnapshot(org.imixs.workflow.engine.jpa.EventLog eventLogEntry)
Thie method lookups the event log entries and pushes new snapshots into the
archvie service.
|
public void pushSnapshot(org.imixs.workflow.engine.jpa.EventLog eventLogEntry)
The method returns a AsyncResult to indicate the completion of the push. A client can use this information for further control.
ArchiveExceptionpublic byte[] loadFileFromArchive(org.imixs.workflow.FileData fileData)
throws org.imixs.melman.RestAPIException
/archive/md5/{md5}
To activate this mechansim the environment variable ARCHIVE_SERVICE_ENDPOINT must be set to a valid endpoint.
fileData - - fileData object providing the MD5 checksumorg.imixs.melman.RestAPIExceptionpublic org.imixs.melman.DocumentClient initWorkflowClient()
Copyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.