public class AiravataJPARegistry extends AiravataRegistry2
SERVICE_TTL| Constructor and Description |
|---|
AiravataJPARegistry() |
getGateway, getUser, preInitialize, setGateway, setUseraddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected void initialize()
throws RegistryException
initialize in class AiravataRegistry2RegistryExceptionpublic boolean isActive()
public Object getConfiguration(String key)
public void removeAllConfiguration(String key)
public URI getEventingServiceURI()
public URI getMessageBoxURI()
public void addGFacURI(URI uri)
public void addWorkflowInterpreterURI(URI uri)
public void setEventingURI(URI uri)
public void setMessageBoxURI(URI uri)
public void removeGFacURI(URI uri)
public void removeWorkflowInterpreterURI(URI uri)
public void removeAllGFacURI()
public void removeAllWorkflowInterpreterURI()
public void unsetEventingURI()
public void unsetMessageBoxURI()
public boolean isHostDescriptorExists(String descriptorName) throws RegistryException
RegistryExceptionpublic void addHostDescriptor(HostDescription descriptor) throws RegistryException
RegistryExceptionpublic void updateHostDescriptor(HostDescription descriptor) throws RegistryException
RegistryExceptionpublic HostDescription getHostDescriptor(String hostName) throws RegistryException
RegistryExceptionpublic void removeHostDescriptor(String hostName) throws RegistryException
RegistryExceptionpublic List<HostDescription> getHostDescriptors() throws MalformedDescriptorException, RegistryException
public ResourceMetadata getHostDescriptorMetadata(String hostName) throws RegistryException
RegistryExceptionpublic boolean isServiceDescriptorExists(String descriptorName) throws RegistryException
RegistryExceptionpublic void addServiceDescriptor(ServiceDescription descriptor) throws RegistryException
RegistryExceptionpublic void updateServiceDescriptor(ServiceDescription descriptor) throws RegistryException
RegistryExceptionpublic ServiceDescription getServiceDescriptor(String serviceName) throws RegistryException, MalformedDescriptorException
public void removeServiceDescriptor(String serviceName) throws RegistryException
RegistryExceptionpublic List<ServiceDescription> getServiceDescriptors() throws MalformedDescriptorException, RegistryException
public ResourceMetadata getServiceDescriptorMetadata(String serviceName) throws RegistryException
RegistryExceptionpublic boolean isApplicationDescriptorExists(String serviceName, String hostName, String descriptorName) throws RegistryException
RegistryExceptionpublic void addApplicationDescriptor(ServiceDescription serviceDescription, HostDescription hostDescriptor, ApplicationDescription descriptor) throws RegistryException
RegistryExceptionpublic void addApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException
RegistryExceptionpublic void udpateApplicationDescriptor(ServiceDescription serviceDescription, HostDescription hostDescriptor, ApplicationDescription descriptor) throws RegistryException
RegistryExceptionpublic void updateApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegistryException
RegistryExceptionpublic ApplicationDescription getApplicationDescriptor(String serviceName, String hostname, String applicationName) throws DescriptorDoesNotExistsException, MalformedDescriptorException, RegistryException
public ApplicationDescription getApplicationDescriptors(String serviceName, String hostname) throws RegistryException
RegistryExceptionpublic Map<String,ApplicationDescription> getApplicationDescriptors(String serviceName) throws RegistryException
RegistryExceptionpublic Map<String[],ApplicationDescription> getApplicationDescriptors() throws MalformedDescriptorException, RegistryException
public void removeApplicationDescriptor(String serviceName, String hostName, String applicationName) throws RegistryException
RegistryExceptionpublic ResourceMetadata getApplicationDescriptorMetadata(String serviceName, String hostName, String applicationName) throws RegistryException
RegistryExceptionpublic boolean isWorkspaceProjectExists(String projectName) throws RegistryException
RegistryExceptionpublic boolean isWorkspaceProjectExists(String projectName, boolean createIfNotExists) throws RegistryException
RegistryExceptionpublic void addWorkspaceProject(WorkspaceProject project) throws RegistryException
RegistryExceptionpublic void updateWorkspaceProject(WorkspaceProject project) throws RegistryException
RegistryExceptionpublic void deleteWorkspaceProject(String projectName) throws RegistryException
RegistryExceptionpublic WorkspaceProject getWorkspaceProject(String projectName) throws RegistryException
RegistryExceptionpublic List<WorkspaceProject> getWorkspaceProjects() throws RegistryException
RegistryExceptionpublic void addExperiment(String projectName, AiravataExperiment experiment) throws RegistryException
RegistryExceptionpublic void removeExperiment(String experimentId) throws ExperimentDoesNotExistsException
ExperimentDoesNotExistsExceptionpublic List<AiravataExperiment> getExperiments() throws RegistryException
RegistryExceptionpublic List<AiravataExperiment> getExperiments(String projectName) throws RegistryException
RegistryExceptionpublic List<AiravataExperiment> getExperiments(Date from, Date to) throws RegistryException
RegistryExceptionpublic List<AiravataExperiment> getExperiments(String projectName, Date from, Date to) throws RegistryException
RegistryExceptionpublic boolean isPublishedWorkflowExists(String workflowName) throws RegistryException
RegistryExceptionpublic void publishWorkflow(String workflowName, String publishWorkflowName) throws RegistryException
RegistryExceptionpublic void publishWorkflow(String workflowName) throws RegistryException
RegistryExceptionpublic String getPublishedWorkflowGraphXML(String workflowName) throws RegistryException
RegistryExceptionpublic List<String> getPublishedWorkflowNames() throws RegistryException
RegistryExceptionpublic Map<String,String> getPublishedWorkflows() throws RegistryException
RegistryExceptionpublic void removePublishedWorkflow(String workflowName) throws RegistryException
RegistryExceptionpublic ResourceMetadata getPublishedWorkflowMetadata(String workflowName) throws RegistryException
RegistryExceptionpublic boolean isWorkflowExists(String workflowName) throws RegistryException
RegistryExceptionpublic void addWorkflow(String workflowName, String workflowGraphXml) throws RegistryException
RegistryExceptionpublic void updateWorkflow(String workflowName, String workflowGraphXml) throws RegistryException
RegistryExceptionpublic String getWorkflowGraphXML(String workflowName) throws RegistryException
RegistryExceptionpublic Map<String,String> getWorkflows() throws RegistryException
RegistryExceptionpublic void removeWorkflow(String workflowName) throws RegistryException
RegistryExceptionpublic ResourceMetadata getWorkflowMetadata(String workflowName) throws RegistryException
RegistryExceptionpublic void setAiravataRegistry(AiravataRegistry2 registry)
public void setAiravataUser(AiravataUser user)
public AiravataUser getAiravataUser()
public boolean isExperimentExists(String experimentId, boolean createIfNotPresent) throws RegistryException
RegistryExceptionpublic boolean isExperimentExists(String experimentId) throws RegistryException
RegistryExceptionpublic void updateExperimentExecutionUser(String experimentId, String user) throws RegistryException
RegistryExceptionpublic String getExperimentExecutionUser(String experimentId) throws RegistryException
RegistryExceptionpublic boolean isExperimentNameExist(String experimentName) throws RegistryException
RegistryExceptionpublic String getExperimentName(String experimentId) throws RegistryException
RegistryExceptionpublic void updateExperimentName(String experimentId, String experimentName) throws RegistryException
RegistryExceptionpublic String getExperimentMetadata(String experimentId) throws RegistryException
RegistryExceptionpublic void updateExperimentMetadata(String experimentId, String metadata) throws RegistryException
RegistryExceptionpublic String getWorkflowExecutionTemplateName(String workflowInstanceId) throws RegistryException
RegistryExceptionpublic void setWorkflowInstanceTemplateName(String workflowInstanceId, String templateName) throws RegistryException
RegistryExceptionpublic List<WorkflowExecution> getExperimentWorkflowInstances(String experimentId) throws RegistryException
RegistryExceptionpublic boolean isWorkflowInstanceExists(String instanceId, boolean createIfNotPresent) throws RegistryException
RegistryExceptionpublic boolean isWorkflowInstanceExists(String instanceId) throws RegistryException
RegistryExceptionpublic void updateWorkflowInstanceStatus(String instanceId, WorkflowExecutionStatus.State status) throws RegistryException
RegistryExceptionpublic void updateWorkflowInstanceStatus(WorkflowExecutionStatus status) throws RegistryException
RegistryExceptionpublic WorkflowExecutionStatus getWorkflowInstanceStatus(String instanceId) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeInput(WorkflowInstanceNode node, String data) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeOutput(WorkflowInstanceNode node, String data) throws RegistryException
RegistryExceptionpublic List<WorkflowNodeIOData> searchWorkflowInstanceNodeInput(String experimentIdRegEx, String workflowNameRegEx, String nodeNameRegEx) throws RegistryException
RegistryExceptionpublic List<WorkflowNodeIOData> searchWorkflowInstanceNodeOutput(String experimentIdRegEx, String workflowNameRegEx, String nodeNameRegEx) throws RegistryException
RegistryExceptionpublic List<WorkflowNodeIOData> getWorkflowInstanceNodeInput(String workflowInstanceId, String nodeType) throws RegistryException
RegistryExceptionpublic List<WorkflowNodeIOData> getWorkflowInstanceNodeOutput(String workflowInstanceId, String nodeType) throws RegistryException
RegistryException@Deprecated public void saveWorkflowExecutionOutput(String experimentId, String outputNodeName, String output) throws RegistryException
RegistryException@Deprecated public void saveWorkflowExecutionOutput(String experimentId, WorkflowIOData data) throws RegistryException
RegistryException@Deprecated public WorkflowIOData getWorkflowExecutionOutput(String experimentId, String outputNodeName) throws RegistryException
RegistryException@Deprecated public List<WorkflowIOData> getWorkflowExecutionOutput(String experimentId) throws RegistryException
RegistryException@Deprecated public String[] getWorkflowExecutionOutputNames(String exeperimentId) throws RegistryException
RegistryExceptionpublic ExperimentData getExperiment(String experimentId) throws RegistryException
RegistryExceptionpublic List<String> getExperimentIdByUser(String user) throws RegistryException
RegistryExceptionpublic List<ExperimentData> getExperimentByUser(String user) throws RegistryException
RegistryExceptionpublic List<ExperimentData> getExperimentByUser(String user, int pageSize, int pageNo) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeStatus(NodeExecutionStatus workflowStatusNode) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeStatus(String workflowInstanceId, String nodeId, WorkflowExecutionStatus.State status) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeStatus(WorkflowInstanceNode workflowNode, WorkflowExecutionStatus.State status) throws RegistryException
RegistryExceptionpublic NodeExecutionStatus getWorkflowNodeStatus(WorkflowInstanceNode workflowNode) throws RegistryException
RegistryExceptionpublic Date getWorkflowNodeStartTime(WorkflowInstanceNode workflowNode) throws RegistryException
RegistryExceptionpublic Date getWorkflowStartTime(WorkflowExecution workflowInstance) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeGramData(WorkflowNodeGramData workflowNodeGramData) throws RegistryException
RegistryExceptionpublic WorkflowExecutionData getWorkflowInstanceData(String workflowInstanceId) throws RegistryException
RegistryExceptionpublic NodeExecutionData getWorkflowInstanceNodeData(String workflowInstanceId, String nodeId) throws RegistryException
RegistryExceptionpublic boolean isWorkflowInstanceNodePresent(String workflowInstanceId, String nodeId) throws RegistryException
RegistryExceptionpublic boolean isWorkflowInstanceNodePresent(String workflowInstanceId, String nodeId, boolean createIfNotPresent) throws RegistryException
RegistryExceptionpublic void addWorkflowInstance(String experimentId, String workflowInstanceId, String templateName) throws RegistryException
RegistryExceptionpublic void updateWorkflowNodeType(WorkflowInstanceNode node, WorkflowNodeType type) throws RegistryException
RegistryExceptionpublic void addWorkflowInstanceNode(String workflowInstanceId, String nodeId) throws RegistryException
RegistryExceptionpublic ExperimentData getExperimentMetaInformation(String experimentId) throws RegistryException
RegistryExceptionpublic List<ExperimentData> getAllExperimentMetaInformation(String user) throws RegistryException
RegistryExceptionpublic List<ExperimentData> searchExperiments(String user, String experimentNameRegex) throws RegistryException
RegistryExceptionpublic org.apache.airavata.common.utils.Version getVersion()
public void setConnectionURI(URI connectionURI)
public URI getConnectionURI()
public void setCallback(PasswordCallback callback)
public PasswordCallback getCallback()
public List<ExperimentExecutionError> getExperimentExecutionErrors(String experimentId) throws RegistryException
RegistryExceptionpublic List<WorkflowExecutionError> getWorkflowExecutionErrors(String experimentId, String workflowInstanceId) throws RegistryException
RegistryExceptionpublic List<NodeExecutionError> getNodeExecutionErrors(String experimentId, String workflowInstanceId, String nodeId) throws RegistryException
RegistryExceptionpublic List<ApplicationJobExecutionError> getApplicationJobErrors(String experimentId, String workflowInstanceId, String nodeId, String gfacJobId) throws RegistryException
RegistryExceptionpublic List<ApplicationJobExecutionError> getApplicationJobErrors(String gfacJobId) throws RegistryException
RegistryExceptionpublic List<ExecutionError> getExecutionErrors(String experimentId, String workflowInstanceId, String nodeId, String gfacJobId, ExecutionErrors.Source... filterBy) throws RegistryException
RegistryExceptionpublic int addExperimentError(ExperimentExecutionError error) throws RegistryException
RegistryExceptionpublic int addWorkflowExecutionError(WorkflowExecutionError error) throws RegistryException
RegistryExceptionpublic int addNodeExecutionError(NodeExecutionError error) throws RegistryException
RegistryExceptionpublic int addApplicationJobExecutionError(ApplicationJobExecutionError error) throws RegistryException
RegistryExceptionpublic void addApplicationJob(ApplicationJob job) throws RegistryException
RegistryExceptionpublic void updateApplicationJob(ApplicationJob job) throws RegistryException
RegistryExceptionpublic void updateApplicationJobStatus(String gfacJobId, ApplicationJob.ApplicationJobStatus status, Date statusUpdateTime) throws RegistryException
RegistryExceptionpublic void updateApplicationJobData(String gfacJobId, String jobdata) throws RegistryException
RegistryExceptionpublic void updateApplicationJobSubmittedTime(String gfacJobId, Date submitted) throws RegistryException
RegistryExceptionpublic void updateApplicationJobStatusUpdateTime(String gfacJobId, Date completed) throws RegistryException
RegistryExceptionpublic void updateApplicationJobMetadata(String gfacJobId, String metadata) throws RegistryException
RegistryExceptionpublic ApplicationJob getApplicationJob(String gfacJobId) throws RegistryException
RegistryExceptionpublic List<ApplicationJob> getApplicationJobsForDescriptors(String serviceDescriptionId, String hostDescriptionId, String applicationDescriptionId) throws RegistryException
RegistryExceptionpublic List<ApplicationJob> getApplicationJobs(String experimentId, String workflowExecutionId, String nodeId) throws RegistryException
RegistryExceptionpublic boolean isApplicationJobExists(String gfacJobId) throws RegistryException
RegistryExceptionpublic List<ApplicationJobStatusData> getApplicationJobStatusHistory(String jobId) throws RegistryException
RegistryExceptionCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.