|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.blackboard.impl.TransientBlackboardImpl
org.eclipse.smila.blackboard.impl.PersistingBlackboardImpl
public class PersistingBlackboardImpl
The Class BlackboardServiceImpl.
| Constructor Summary | |
|---|---|
PersistingBlackboardImpl(RecordFilterHelper filterHelper,
java.io.File attachmentsTempDir)
create instance. |
|
| Method Summary | |
|---|---|
void |
commit(Id id)
All changes are written to the storages before the record is removed. |
byte[] |
getAttachment(Id id,
java.lang.String name)
Gets the attachment. |
java.io.InputStream |
getAttachmentAsStream(Id id,
java.lang.String name)
Gets the attachment as stream. |
void |
invalidate(Id id)
The record is removed from the blackboard. |
void |
load(Id id)
Loads record data for the given ID from persistence (or prepare it to be loaded). |
void |
removeAttachment(Id id,
java.lang.String name)
Removes the attachment. |
void |
setAttachment(Id id,
java.lang.String name,
byte[] attachment)
Sets the attachment. |
void |
setAttachmentFromFile(Id id,
java.lang.String name,
java.io.File attachmentFile)
Sets attachment from file. |
void |
setAttachmentFromStream(Id id,
java.lang.String name,
java.io.InputStream attachmentStream)
Sets the attachment from stream. |
void |
setBinaryStorage(BinaryStorageService binaryStorage)
Set the binary service for blackboard. |
void |
setRecord(Record record)
Adds a record to the blackboard. |
void |
setRecordStorage(RecordStorage recordStorage)
Set the record service for blackboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistingBlackboardImpl(RecordFilterHelper filterHelper,
java.io.File attachmentsTempDir)
filterHelper - record filtersattachmentsTempDir - directory for temp files for file based access to attachment.| Method Detail |
|---|
public void setRecordStorage(RecordStorage recordStorage)
recordStorage - RecordStorage - the record storage service interfacepublic void setBinaryStorage(BinaryStorageService binaryStorage)
binaryStorage - BinaryStorageService - the binary storage service interface
public void load(Id id)
throws BlackboardAccessException
load in interface Blackboardload in class TransientBlackboardImplid - the id
BlackboardAccessException - the blackboard access exception
public void setRecord(Record record)
throws BlackboardAccessException
setRecord in interface BlackboardsetRecord in class TransientBlackboardImplrecord - the record
BlackboardAccessException - the blackboard access exception
public void commit(Id id)
throws BlackboardAccessException
commit in interface Blackboardcommit in class TransientBlackboardImplid - the id
BlackboardAccessException - the blackboard access exceptionpublic void invalidate(Id id)
invalidate in interface Blackboardinvalidate in class TransientBlackboardImplid - the id
public byte[] getAttachment(Id id,
java.lang.String name)
throws BlackboardAccessException
getAttachment in interface BlackboardgetAttachment in class TransientBlackboardImplid - the idname - the name
BlackboardAccessException - the blackboard access exception
public java.io.InputStream getAttachmentAsStream(Id id,
java.lang.String name)
throws BlackboardAccessException
getAttachmentAsStream in interface BlackboardgetAttachmentAsStream in class TransientBlackboardImplid - the idname - the name
BlackboardAccessException - the blackboard access exception
public void setAttachment(Id id,
java.lang.String name,
byte[] attachment)
throws BlackboardAccessException
setAttachment in interface BlackboardsetAttachment in class TransientBlackboardImplid - the idname - the nameattachment - the attachment
BlackboardAccessException - the blackboard access exception
public void setAttachmentFromStream(Id id,
java.lang.String name,
java.io.InputStream attachmentStream)
throws BlackboardAccessException
setAttachmentFromStream in interface BlackboardsetAttachmentFromStream in class TransientBlackboardImplid - the idname - the nameattachmentStream - the attachment stream
BlackboardAccessException - the blackboard access exception
public void setAttachmentFromFile(Id id,
java.lang.String name,
java.io.File attachmentFile)
throws BlackboardAccessException
setAttachmentFromFile in interface BlackboardsetAttachmentFromFile in class TransientBlackboardImplid - the idname - the nameattachmentFile - attachment file
BlackboardAccessException - BlackboardAccessException
public void removeAttachment(Id id,
java.lang.String name)
throws BlackboardAccessException
removeAttachment in interface BlackboardremoveAttachment in class TransientBlackboardImplid - the idname - the name
BlackboardAccessException - the blackboard access exceptionBlackboard.removeAttachment(org.eclipse.smila.datamodel.id.Id, java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||