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 RegException
initialize in class AiravataRegistry2RegExceptionpublic boolean isActive()
public Object getConfiguration(String key) throws RegException
RegExceptionpublic List<Object> getConfigurationList(String key) throws RegException
RegExceptionpublic void setConfiguration(String key, String value, Date expire) throws RegException
RegExceptionpublic void addConfiguration(String key, String value, Date expire) throws RegException
RegExceptionpublic void removeAllConfiguration(String key) throws RegException
RegExceptionpublic void removeConfiguration(String key, String value) throws RegException
RegExceptionpublic List<URI> getGFacURIs() throws RegException
RegExceptionpublic List<URI> getWorkflowInterpreterURIs() throws RegException
RegExceptionpublic URI getEventingServiceURI() throws RegException
RegExceptionpublic URI getMessageBoxURI() throws RegException
RegExceptionpublic void addGFacURI(URI uri) throws RegException
RegExceptionpublic void addWorkflowInterpreterURI(URI uri) throws RegException
RegExceptionpublic void setEventingURI(URI uri) throws RegException
RegExceptionpublic void setMessageBoxURI(URI uri) throws RegException
RegExceptionpublic void addGFacURI(URI uri, Date expire) throws RegException
RegExceptionpublic void addWorkflowInterpreterURI(URI uri, Date expire) throws RegException
RegExceptionpublic void setEventingURI(URI uri, Date expire) throws RegException
RegExceptionpublic void setMessageBoxURI(URI uri, Date expire) throws RegException
RegExceptionpublic void removeGFacURI(URI uri) throws RegException
RegExceptionpublic void removeWorkflowInterpreterURI(URI uri) throws RegException
RegExceptionpublic void removeAllGFacURI()
throws RegException
RegExceptionpublic void removeAllWorkflowInterpreterURI()
throws RegException
RegExceptionpublic void unsetEventingURI()
throws RegException
RegExceptionpublic void unsetMessageBoxURI()
throws RegException
RegExceptionpublic boolean isHostDescriptorExists(String descriptorName) throws RegException
RegExceptionpublic void addHostDescriptor(HostDescription descriptor) throws RegException
RegExceptionpublic void updateHostDescriptor(HostDescription descriptor) throws RegException
RegExceptionpublic HostDescription getHostDescriptor(String hostName) throws RegException
RegExceptionpublic void removeHostDescriptor(String hostName) throws RegException
RegExceptionpublic List<HostDescription> getHostDescriptors() throws MalformedDescriptorException, RegException
public ResourceMetadata getHostDescriptorMetadata(String hostName) throws RegException
RegExceptionpublic boolean isServiceDescriptorExists(String descriptorName) throws RegException
RegExceptionpublic void addServiceDescriptor(ServiceDescription descriptor) throws RegException
RegExceptionpublic void updateServiceDescriptor(ServiceDescription descriptor) throws RegException
RegExceptionpublic ServiceDescription getServiceDescriptor(String serviceName) throws RegException, MalformedDescriptorException
public void removeServiceDescriptor(String serviceName) throws RegException
RegExceptionpublic List<ServiceDescription> getServiceDescriptors() throws MalformedDescriptorException, RegException
public ResourceMetadata getServiceDescriptorMetadata(String serviceName) throws RegException
RegExceptionpublic boolean isApplicationDescriptorExists(String serviceName, String hostName, String descriptorName) throws RegException
RegExceptionpublic void addApplicationDescriptor(ServiceDescription serviceDescription, HostDescription hostDescriptor, ApplicationDescription descriptor) throws RegException
RegExceptionpublic void addApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegException
RegExceptionpublic void udpateApplicationDescriptor(ServiceDescription serviceDescription, HostDescription hostDescriptor, ApplicationDescription descriptor) throws RegException
RegExceptionpublic void updateApplicationDescriptor(String serviceName, String hostName, ApplicationDescription descriptor) throws RegException
RegExceptionpublic ApplicationDescription getApplicationDescriptor(String serviceName, String hostname, String applicationName) throws DescriptorDoesNotExistsException, MalformedDescriptorException, RegException
public ApplicationDescription getApplicationDescriptors(String serviceName, String hostname) throws RegException
RegExceptionpublic Map<String,ApplicationDescription> getApplicationDescriptors(String serviceName) throws RegException
RegExceptionpublic Map<String[],ApplicationDescription> getApplicationDescriptors() throws MalformedDescriptorException, RegException
public void removeApplicationDescriptor(String serviceName, String hostName, String applicationName) throws RegException
RegExceptionpublic ResourceMetadata getApplicationDescriptorMetadata(String serviceName, String hostName, String applicationName) throws RegException
RegExceptionpublic boolean isWorkspaceProjectExists(String projectName) throws RegException
RegExceptionpublic boolean isWorkspaceProjectExists(String projectName, boolean createIfNotExists) throws RegException
RegExceptionpublic void addWorkspaceProject(WorkspaceProject project) throws RegException
RegExceptionpublic void updateWorkspaceProject(WorkspaceProject project) throws RegException
RegExceptionpublic void deleteWorkspaceProject(String projectName) throws RegException
RegExceptionpublic WorkspaceProject getWorkspaceProject(String projectName) throws RegException
RegExceptionpublic List<WorkspaceProject> getWorkspaceProjects() throws RegException
RegExceptionpublic void addExperiment(String projectName, AiravataExperiment experiment) throws RegException
RegExceptionpublic void removeExperiment(String experimentId) throws ExperimentDoesNotExistsException
ExperimentDoesNotExistsExceptionpublic List<AiravataExperiment> getExperiments() throws RegException
RegExceptionpublic List<AiravataExperiment> getExperiments(String projectName) throws RegException
RegExceptionpublic List<AiravataExperiment> getExperiments(Date from, Date to) throws RegException
RegExceptionpublic List<AiravataExperiment> getExperiments(String projectName, Date from, Date to) throws RegException
RegExceptionpublic boolean isPublishedWorkflowExists(String workflowName) throws RegException
RegExceptionpublic void publishWorkflow(String workflowName, String publishWorkflowName) throws RegException
RegExceptionpublic void publishWorkflow(String workflowName) throws RegException
RegExceptionpublic String getPublishedWorkflowGraphXML(String workflowName) throws RegException
RegExceptionpublic List<String> getPublishedWorkflowNames() throws RegException
RegExceptionpublic Map<String,String> getPublishedWorkflows() throws RegException
RegExceptionpublic void removePublishedWorkflow(String workflowName) throws RegException
RegExceptionpublic ResourceMetadata getPublishedWorkflowMetadata(String workflowName) throws RegException
RegExceptionpublic boolean isWorkflowExists(String workflowName) throws RegException
RegExceptionpublic void addWorkflow(String workflowName, String workflowGraphXml) throws RegException
RegExceptionpublic void updateWorkflow(String workflowName, String workflowGraphXml) throws RegException
RegExceptionpublic String getWorkflowGraphXML(String workflowName) throws RegException
RegExceptionpublic Map<String,String> getWorkflows() throws RegException
RegExceptionpublic void removeWorkflow(String workflowName) throws RegException
RegExceptionpublic ResourceMetadata getWorkflowMetadata(String workflowName) throws RegException
RegExceptionpublic void setAiravataRegistry(AiravataRegistry2 registry)
public void setAiravataUser(AiravataUser user)
public AiravataUser getAiravataUser()
public boolean isExperimentExists(String experimentId, boolean createIfNotPresent) throws RegException
RegExceptionpublic boolean isExperimentExists(String experimentId) throws RegException
RegExceptionpublic void updateExperimentExecutionUser(String experimentId, String user) throws RegException
RegExceptionpublic String getExperimentExecutionUser(String experimentId) throws RegException
RegExceptionpublic boolean isExperimentNameExist(String experimentName) throws RegException
RegExceptionpublic String getExperimentName(String experimentId) throws RegException
RegExceptionpublic void updateExperimentName(String experimentId, String experimentName) throws RegException
RegExceptionpublic String getExperimentMetadata(String experimentId) throws RegException
RegExceptionpublic void updateExperimentMetadata(String experimentId, String metadata) throws RegException
RegExceptionpublic String getWorkflowExecutionTemplateName(String workflowInstanceId) throws RegException
RegExceptionpublic void setWorkflowInstanceTemplateName(String workflowInstanceId, String templateName) throws RegException
RegExceptionpublic List<WorkflowExecution> getExperimentWorkflowInstances(String experimentId) throws RegException
RegExceptionpublic boolean isWorkflowInstanceExists(String instanceId, boolean createIfNotPresent) throws RegException
RegExceptionpublic boolean isWorkflowInstanceExists(String instanceId) throws RegException
RegExceptionpublic void updateWorkflowInstanceStatus(String instanceId, WorkflowExecutionStatus.State status) throws RegException
RegExceptionpublic void updateWorkflowInstanceStatus(WorkflowExecutionStatus status) throws RegException
RegExceptionpublic WorkflowExecutionStatus getWorkflowInstanceStatus(String instanceId) throws RegException
RegExceptionpublic void updateWorkflowNodeInput(WorkflowInstanceNode node, String data) throws RegException
RegExceptionpublic void updateWorkflowNodeOutput(WorkflowInstanceNode node, String data) throws RegException
RegExceptionpublic List<WorkflowNodeIOData> searchWorkflowInstanceNodeInput(String experimentIdRegEx, String workflowNameRegEx, String nodeNameRegEx) throws RegException
RegExceptionpublic List<WorkflowNodeIOData> searchWorkflowInstanceNodeOutput(String experimentIdRegEx, String workflowNameRegEx, String nodeNameRegEx) throws RegException
RegExceptionpublic List<WorkflowNodeIOData> getWorkflowInstanceNodeInput(String workflowInstanceId, String nodeType) throws RegException
RegExceptionpublic List<WorkflowNodeIOData> getWorkflowInstanceNodeOutput(String workflowInstanceId, String nodeType) throws RegException
RegException@Deprecated public void saveWorkflowExecutionOutput(String experimentId, String outputNodeName, String output) throws RegException
RegException@Deprecated public void saveWorkflowExecutionOutput(String experimentId, WorkflowIOData data) throws RegException
RegException@Deprecated public WorkflowIOData getWorkflowExecutionOutput(String experimentId, String outputNodeName) throws RegException
RegException@Deprecated public List<WorkflowIOData> getWorkflowExecutionOutput(String experimentId) throws RegException
RegException@Deprecated public String[] getWorkflowExecutionOutputNames(String exeperimentId) throws RegException
RegExceptionpublic ExperimentData getExperiment(String experimentId) throws RegException
RegExceptionpublic List<String> getExperimentIdByUser(String user) throws RegException
RegExceptionpublic List<ExperimentData> getExperimentByUser(String user) throws RegException
RegExceptionpublic List<ExperimentData> getExperiments(HashMap<String,String> params) throws RegException
RegExceptionpublic List<ExperimentData> getExperimentByUser(String user, int pageSize, int pageNo) throws RegException
RegExceptionpublic void updateWorkflowNodeStatus(NodeExecutionStatus workflowStatusNode) throws RegException
RegExceptionpublic void updateWorkflowNodeStatus(String workflowInstanceId, String nodeId, WorkflowExecutionStatus.State status) throws RegException
RegExceptionpublic void updateWorkflowNodeStatus(WorkflowInstanceNode workflowNode, WorkflowExecutionStatus.State status) throws RegException
RegExceptionpublic NodeExecutionStatus getWorkflowNodeStatus(WorkflowInstanceNode workflowNode) throws RegException
RegExceptionpublic Date getWorkflowNodeStartTime(WorkflowInstanceNode workflowNode) throws RegException
RegExceptionpublic Date getWorkflowStartTime(WorkflowExecution workflowInstance) throws RegException
RegExceptionpublic void updateWorkflowNodeGramData(WorkflowNodeGramData workflowNodeGramData) throws RegException
RegExceptionpublic WorkflowExecutionData getWorkflowInstanceData(String workflowInstanceId) throws RegException
RegExceptionpublic NodeExecutionData getWorkflowInstanceNodeData(String workflowInstanceId, String nodeId) throws RegException
RegExceptionpublic boolean isWorkflowInstanceNodePresent(String workflowInstanceId, String nodeId) throws RegException
RegExceptionpublic boolean isWorkflowInstanceNodePresent(String workflowInstanceId, String nodeId, boolean createIfNotPresent) throws RegException
RegExceptionpublic void addWorkflowInstance(String experimentId, String workflowInstanceId, String templateName) throws RegException
RegExceptionpublic void updateWorkflowNodeType(WorkflowInstanceNode node, WorkflowNodeType type) throws RegException
RegExceptionpublic void addWorkflowInstanceNode(String workflowInstanceId, String nodeId) throws RegException
RegExceptionpublic ExperimentData getExperimentMetaInformation(String experimentId) throws RegException
RegExceptionpublic List<ExperimentData> getAllExperimentMetaInformation(String user) throws RegException
RegExceptionpublic List<ExperimentData> searchExperiments(String user, String experimentNameRegex) throws RegException
RegExceptionpublic 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 RegException
RegExceptionpublic List<WorkflowExecutionError> getWorkflowExecutionErrors(String experimentId, String workflowInstanceId) throws RegException
RegExceptionpublic List<NodeExecutionError> getNodeExecutionErrors(String experimentId, String workflowInstanceId, String nodeId) throws RegException
RegExceptionpublic List<ApplicationJobExecutionError> getApplicationJobErrors(String experimentId, String workflowInstanceId, String nodeId, String gfacJobId) throws RegException
RegExceptionpublic List<ApplicationJobExecutionError> getApplicationJobErrors(String gfacJobId) throws RegException
RegExceptionpublic List<ExecutionError> getExecutionErrors(String experimentId, String workflowInstanceId, String nodeId, String gfacJobId, ExecutionErrors.Source... filterBy) throws RegException
RegExceptionpublic int addExperimentError(ExperimentExecutionError error) throws RegException
RegExceptionpublic int addWorkflowExecutionError(WorkflowExecutionError error) throws RegException
RegExceptionpublic int addNodeExecutionError(NodeExecutionError error) throws RegException
RegExceptionpublic int addApplicationJobExecutionError(ApplicationJobExecutionError error) throws RegException
RegExceptionpublic void addApplicationJob(ApplicationJob job) throws RegException
RegExceptionpublic void updateApplicationJob(ApplicationJob job) throws RegException
RegExceptionpublic void updateApplicationJobStatus(String gfacJobId, ApplicationJob.ApplicationJobStatus status, Date statusUpdateTime) throws RegException
RegExceptionpublic void updateApplicationJobData(String gfacJobId, String jobdata) throws RegException
RegExceptionpublic void updateApplicationJobSubmittedTime(String gfacJobId, Date submitted) throws RegException
RegExceptionpublic void updateApplicationJobStatusUpdateTime(String gfacJobId, Date completed) throws RegException
RegExceptionpublic void updateApplicationJobMetadata(String gfacJobId, String metadata) throws RegException
RegExceptionpublic ApplicationJob getApplicationJob(String gfacJobId) throws RegException
RegExceptionpublic List<ApplicationJob> getApplicationJobsForDescriptors(String serviceDescriptionId, String hostDescriptionId, String applicationDescriptionId) throws RegException
RegExceptionpublic List<ApplicationJob> getApplicationJobs(String experimentId, String workflowExecutionId, String nodeId) throws RegException
RegExceptionpublic boolean isApplicationJobExists(String gfacJobId) throws RegException
RegExceptionpublic List<ApplicationJobStatusData> getApplicationJobStatusHistory(String jobId) throws RegException
RegExceptionpublic List<AiravataUser> getUsers() throws RegException
RegExceptionpublic boolean isCredentialExist(String gatewayId, String tokenId) throws RegException
RegExceptionpublic String getCredentialPublicKey(String gatewayId, String tokenId) throws RegException
RegExceptionpublic String createCredential(String gatewayId, String tokenId) throws RegException
RegExceptionpublic String createCredential(String gatewayId, String tokenId, String username) throws RegException
RegExceptionpublic List<URI> getLiveGFacURIs() throws RegException
RegExceptionpublic Map<String,Integer> getGFACNodeList() throws RegException
RegExceptionpublic boolean addGFACNode(String uri, int nodeID) throws RegException
RegExceptionpublic boolean changeStatus(String experimentID, org.apache.airavata.common.utils.AiravataJobState.State state) throws RegException
RegExceptionpublic boolean changeStatus(String experimentID, org.apache.airavata.common.utils.AiravataJobState.State state, String gfacEPR) throws RegException
RegExceptionpublic org.apache.airavata.common.utils.AiravataJobState getState(String experimentID) throws RegException
RegExceptionpublic List<String> getAllJobsWithState(org.apache.airavata.common.utils.AiravataJobState state) throws RuntimeException
RuntimeExceptionpublic List<String> getAllAcceptedJobs() throws RegException
RegExceptionpublic List<String> getAllHangedJobs() throws RegException
RegExceptionpublic int getHangedJobCount()
throws RegException
RegExceptionpublic boolean resetHangedJob(String experimentID) throws RegException
RegExceptionCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.