org.gcube.application.enm.service.conn
Class PersistenceClient

java.lang.Object
  extended by org.gcube.application.enm.service.conn.PersistenceClient

public class PersistenceClient
extends Object

Persistence client.

Author:
Erik Torres

Field Summary
protected  org.gcube.common.core.utils.logging.GCUBELog logger
           
static String LOGS_FILENAME
           
static File PERSISTENCE_ROOT
           
static String PERSISTENCE_ROOT_PATH
           
static String REQUEST_FILENAME
           
static String RESULTS_FILENAME
           
static String STATUS_FILENAME
           
 
Constructor Summary
PersistenceClient()
           
 
Method Summary
 void delete(GenericJob job)
           
 String findCredentials(UUID experimentId)
           
 org.gcube.application.enm.common.xml.resumes.ExperimentResumes getUserExperimentResumes(String credentials)
           
 void loadJobs(ConcurrentMap<UUID,GenericJob> jobsMap)
           
 void loadJobs(ConcurrentMap<UUID,GenericJob> jobsMap, boolean pending)
           
 GenericJob read(String credentials, UUID experimentId)
           
 void write(GenericJob job)
           
 void write(GenericJob job, JobUpdate updates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

REQUEST_FILENAME

public static final String REQUEST_FILENAME
See Also:
Constant Field Values

STATUS_FILENAME

public static final String STATUS_FILENAME
See Also:
Constant Field Values

RESULTS_FILENAME

public static final String RESULTS_FILENAME
See Also:
Constant Field Values

LOGS_FILENAME

public static final String LOGS_FILENAME
See Also:
Constant Field Values

PERSISTENCE_ROOT

public static final File PERSISTENCE_ROOT

PERSISTENCE_ROOT_PATH

public static String PERSISTENCE_ROOT_PATH
Constructor Detail

PersistenceClient

public PersistenceClient()
Method Detail

write

public void write(GenericJob job)
           throws IOException
Throws:
IOException

write

public void write(GenericJob job,
                  JobUpdate updates)
           throws IOException
Throws:
IOException

read

public GenericJob read(String credentials,
                       UUID experimentId)
                throws IOException
Throws:
IOException

delete

public final void delete(GenericJob job)
                  throws IOException
Throws:
IOException

findCredentials

public String findCredentials(UUID experimentId)

loadJobs

public void loadJobs(ConcurrentMap<UUID,GenericJob> jobsMap)

loadJobs

public void loadJobs(ConcurrentMap<UUID,GenericJob> jobsMap,
                     boolean pending)

getUserExperimentResumes

public org.gcube.application.enm.common.xml.resumes.ExperimentResumes getUserExperimentResumes(String credentials)
                                                                                        throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.