org.gcube.data.harmonization.occurrence.db.model
Class ExecutionReference

java.lang.Object
  extended by org.gcube.data.harmonization.occurrence.db.model.ExecutionReference
Direct Known Subclasses:
ImportReference, MergeReference

public abstract class ExecutionReference
extends Object

Author:
fabio

Nested Class Summary
static class ExecutionReference.ExecutionRequest
           
 
Field Summary
static String AUTHOR_FIELD
           
static String COMPLETION_FIELD
           
static String ID_FIELD
           
protected static org.gcube.common.core.utils.logging.GCUBELog logger
           
static String PROGRESS_FIELD
           
static String SCOPE_FIELD
           
static String START_FIELD
           
static String STATE_FIELD
           
static String SUBMISSION_FIELD
           
 
Constructor Summary
ExecutionReference()
           
ExecutionReference(ExecutionReference.ExecutionRequest request)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAuthor()
           
 Long getCompletionTime()
           
 String getId()
           
 Double getProgress()
           
 String getScope()
           
 Long getStartTime()
           
 ExecutionState getState()
           
 Long getSubmissionTime()
           
 int hashCode()
           
 void setAuthor(String author)
           
 void setCompletionTime(Long completionTime)
           
 void setId(String id)
           
 void setProgress(Double progress)
           
 void setScope(String scope)
           
 void setStartTime(Long startTime)
           
 void setState(ExecutionState state)
           
 void setSubmissionTime(Long submissionTime)
           
 String toString()
           
abstract  void updateStatus(ExecutionState toSet)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static org.gcube.common.core.utils.logging.GCUBELog logger

ID_FIELD

public static final String ID_FIELD
See Also:
Constant Field Values

SUBMISSION_FIELD

public static final String SUBMISSION_FIELD
See Also:
Constant Field Values

START_FIELD

public static final String START_FIELD
See Also:
Constant Field Values

COMPLETION_FIELD

public static final String COMPLETION_FIELD
See Also:
Constant Field Values

AUTHOR_FIELD

public static final String AUTHOR_FIELD
See Also:
Constant Field Values

STATE_FIELD

public static final String STATE_FIELD
See Also:
Constant Field Values

SCOPE_FIELD

public static final String SCOPE_FIELD
See Also:
Constant Field Values

PROGRESS_FIELD

public static final String PROGRESS_FIELD
See Also:
Constant Field Values
Constructor Detail

ExecutionReference

public ExecutionReference(ExecutionReference.ExecutionRequest request)

ExecutionReference

public ExecutionReference()
Method Detail

updateStatus

public abstract void updateStatus(ExecutionState toSet)
                           throws Exception
Throws:
Exception

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

getSubmissionTime

public Long getSubmissionTime()
Returns:
the submissionTime

setSubmissionTime

public void setSubmissionTime(Long submissionTime)
Parameters:
submissionTime - the submissionTime to set

getStartTime

public Long getStartTime()
Returns:
the startTime

setStartTime

public void setStartTime(Long startTime)
Parameters:
startTime - the startTime to set

getCompletionTime

public Long getCompletionTime()
Returns:
the completionTime

setCompletionTime

public void setCompletionTime(Long completionTime)
Parameters:
completionTime - the completionTime to set

getAuthor

public String getAuthor()
Returns:
the author

setAuthor

public void setAuthor(String author)
Parameters:
author - the author to set

getState

public ExecutionState getState()
Returns:
the state

setState

public void setState(ExecutionState state)
Parameters:
state - the state to set

getScope

public String getScope()
Returns:
the scope

setScope

public void setScope(String scope)
Parameters:
scope - the scope to set

getProgress

public Double getProgress()
Returns:
the progress

setProgress

public void setProgress(Double progress)
Parameters:
progress - the progress to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.