Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
4497f980
Commit
4497f980
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
BIS-131 SP-214 : Added javadoc to IJavaDataSetRegistrationDropboxV2
SVN: 26218
parent
1ef230c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/IJavaDataSetRegistrationDropboxV2.java
+60
-3
60 additions, 3 deletions
...registrator/api/v2/IJavaDataSetRegistrationDropboxV2.java
with
60 additions
and
3 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/IJavaDataSetRegistrationDropboxV2.java
+
60
−
3
View file @
4497f980
...
...
@@ -20,22 +20,79 @@ import ch.systemsx.cisd.common.exceptions.NotImplementedException;
import
ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext
;
/**
* The interface that V2 dropboxes must implement. Defines the process method, which is called to
* handle new data in the dropbox's incoming folder, and various event methods called as the
* registration process progresses.
*
* @author Pawel Glyzewski
*/
public
interface
IJavaDataSetRegistrationDropboxV2
{
public
void
process
(
IDataSetRegistrationTransactionV2
transaction
);
public
void
postStorage
(
DataSetRegistrationContext
context
);
/**
* Invoked when new data is found in the incoming folder. Implements the logic of registering
* and modifying entities.
*
* @param transaction The transaction that offers methods for registering and modifying entities
* and performing operations on the file system.
*/
public
void
process
(
IDataSetRegistrationTransactionV2
transaction
);
/**
* Invoked just before the metadata is registered with the openBIS AS. Gives dropbox
* implementations an opportunity to perform additional operations. If an exception is thrown in
* this method, the transaction is rolledback.
*
* @param context Context of the registration. Offers access to the global state and persistent
* map.
*/
public
void
preMetadataRegistration
(
DataSetRegistrationContext
context
);
/**
* Invoked if the transaction is rolledback before the metadata is registered with the openBIS
* AS.
*
* @param context Context of the registration. Offers access to the global state and persistent
* map.
* @param throwable The throwable that triggered rollback.
*/
public
void
rollbackPreRegistration
(
DataSetRegistrationContext
context
,
Throwable
throwable
);
/**
* Invoked just after the metadata is registered with the openBIS AS. Gives dropbox
* implementations an opportunity to perform additional operations. If an exception is thrown in
* this method, it is logged but otherwise ignored.
*
* @param context Context of the registration. Offers access to the global state and persistent
* map.
*/
public
void
postMetadataRegistration
(
DataSetRegistrationContext
context
);
public
void
rollbackPreRegistration
(
DataSetRegistrationContext
context
,
Throwable
throwable
);
/**
* Invoked after the data has been stored in its final location on the file system and the
* storage has been confirmed with the AS.
*
* @param context Context of the registration. Offers access to the global state and persistent
* map.
*/
public
void
postStorage
(
DataSetRegistrationContext
context
);
/**
* Is a function defined that can be used to check if a failed registration should be retried?
* Primarily for use implementations of this interface that dispatch to dynamic languages.
*
* @return true shouldRetryProcessing is defined, false otherwise.
*/
public
boolean
isRetryFunctionDefined
();
/**
* Given the problem with registration, should it be retried?
*
* @param context Context of the registration. Offers access to the global state and persistent
* map.
* @param problem The exception that caused the registration to fail.
* @return true if the registration should be retried.
*/
public
boolean
shouldRetryProcessing
(
DataSetRegistrationContext
context
,
Exception
problem
)
throws
NotImplementedException
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment