eu.transformproject.provenance.ws
public class ProvenanceWS_MiddlewareTool extends CommonInstantiation implements ProvenanceWS_middleware_Interface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MIDDLEWARE_GRAPH_PROJECT_NAME_IN_MIDDLEWARE |
MIDDLEWARE_GRAPH_PROJECT_NAME, server
Constructor and Description |
---|
ProvenanceWS_MiddlewareTool() |
ProvenanceWS_MiddlewareTool(java.lang.String localZoneName,
java.lang.String fxmlConfig,
boolean isResource) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
aggregateResultsForMultiSourceQuery(java.lang.String aggregationQueryA,
java.lang.String dataSourceAgentName,
java.lang.Object[] dataSourcesA,
java.lang.Object aggregatedResults,
java.util.Date start)
aggregateResultsForMultiSourceQuery, annotates the aggregation result process at the moment it finishes.
|
java.lang.String[] |
analizeMultiSourceQuery(java.lang.String decryptedQueryA,
java.lang.String[] subqueries,
java.lang.String aggregatedQuery,
java.util.Date start)
analizeMultiSourceQuery, annotates the process of analyzing multisource queries at the moment the analysis has finished.
|
void |
endsPackageData(java.lang.Object signedDetails,
java.lang.Object encryptedPackage)
Ends of the packaging process.
|
java.lang.String |
receiveData(java.lang.String receptorQueueName,
java.lang.Object encryptedReceivedData)
Reception of an encrypted data.
|
void |
sendData(java.lang.String receptorQueueName,
java.lang.String encryptedDataA)
Send an encrypted data.
|
java.lang.String |
startPackageData(java.lang.String uriDataToPackage,
java.util.Date start)
Starts of the packaging processing.
|
java.lang.String |
unpackageData(java.lang.String encryptedReceivedDataA,
java.lang.String provenanceA,
java.lang.Object decryptedDataA,
java.util.Date start)
Decryptation of an encrypted data.
|
closeSession, createSession, finalize, getSyncDateTime, login, logout
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, createSession, getSyncDateTime, login, logout
public static java.lang.String MIDDLEWARE_GRAPH_PROJECT_NAME_IN_MIDDLEWARE
public ProvenanceWS_MiddlewareTool(java.lang.String localZoneName, java.lang.String fxmlConfig, boolean isResource) throws java.lang.Exception
java.lang.Exception
public ProvenanceWS_MiddlewareTool() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] analizeMultiSourceQuery(java.lang.String decryptedQueryA, java.lang.String[] subqueries, java.lang.String aggregatedQuery, java.util.Date start) throws java.lang.Exception
ProvenanceWS_middleware_Interface
analizeMultiSourceQuery
in interface ProvenanceWS_middleware_Interface
start
- date time when the analysis beginsjava.lang.Exception
public java.lang.String aggregateResultsForMultiSourceQuery(java.lang.String aggregationQueryA, java.lang.String dataSourceAgentName, java.lang.Object[] dataSourcesA, java.lang.Object aggregatedResults, java.util.Date start) throws java.lang.Exception
ProvenanceWS_middleware_Interface
aggregateResultsForMultiSourceQuery
in interface ProvenanceWS_middleware_Interface
java.lang.Exception
public java.lang.String startPackageData(java.lang.String uriDataToPackage, java.util.Date start) throws java.lang.Exception
CommomInstantiationInterface
startPackageData
in interface CommomInstantiationInterface
startPackageData
in class CommonInstantiation
uriDataToPackage
- the uri of the artifact associated to the object to be transmitted. This value needs to be obtained
through any of the provenance server method.start
- the time in which the packaging process started.java.lang.Exception
public void endsPackageData(java.lang.Object signedDetails, java.lang.Object encryptedPackage) throws java.lang.Exception
CommomInstantiationInterface
endsPackageData
in interface CommomInstantiationInterface
endsPackageData
in class CommonInstantiation
signedDetails
- sign object created during encryptation.encryptedPackage
- the encrypted object.java.lang.Exception
public void sendData(java.lang.String receptorQueueName, java.lang.String encryptedDataA) throws java.lang.Exception
CommomInstantiationInterface
sendData
in interface CommomInstantiationInterface
sendData
in class CommonInstantiation
receptorQueueName
- an string that identifies the queue that controls the sent data messages (e.g. "QW2MW", "MW2DC", etc.).encryptedDataA
- identifier of the encryptedData artifact, as returned by the packageData method.java.lang.Exception
public java.lang.String receiveData(java.lang.String receptorQueueName, java.lang.Object encryptedReceivedData) throws java.lang.Exception
CommomInstantiationInterface
receiveData
in interface CommomInstantiationInterface
receiveData
in class CommonInstantiation
receptorQueueName
- an string that identifies the queue that controls the reception of data messages (e.g. "QW2MW", "MW2DC", etc.).encryptedReceivedData
- an object describing the data recovered from the queue.java.lang.Exception
public java.lang.String unpackageData(java.lang.String encryptedReceivedDataA, java.lang.String provenanceA, java.lang.Object decryptedDataA, java.util.Date start) throws java.lang.Exception
CommomInstantiationInterface
unpackageData
in interface CommomInstantiationInterface
unpackageData
in class CommonInstantiation
encryptedReceivedDataA
- identifier of the generated encrypted received data artifact, as returned by receiveData or packageData methodsprovenanceA
- identifier of the provenance artifact from which the encrypted received data comes from. This data needs to be extracted
from the transmitted package, and should contain the artifact identifier of the transmitted data.decryptedDataA
- an object describing the data decrypted data.start
- the time when the unpackage process starts.java.lang.Exception