This operation is being executed asynchronously. On finish callback
will be called with the log resources that had changes as arguments.
@param log the log resource to synchronize
@param callback listener to be called upon completion
@throws CoreException if an error occurred
getSynchronizationTimeStamp
and getModificationTimeStamp
return the same value.
@param element the element
@exception CoreException if the synchronization could not be performed
JOB_IDS_SESSION_ALL
, then this method waits for all jobs submitted during this DRMAA session up to the moment synchronize() is called. To avoid thread race conditions in multithreaded applications, the DRMAA implementation user should explicitly synchronize this call with any other job submission or control calls that may change the number of remote jobs. To prevent blocking indefinitely in this call, the caller may use a timeout specifying how many seconds to block in this call. The value TIMEOUT_WAIT_FOREVER
may be specified to wait indefinitely for a result. The value TIMEOUT_NO_WAIT
may be specified to return immediately if no result is available. If the call exits before the timeout has elapsed, all the jobs have been waited on or there was an interrupt. If the invocation exits on timeout, an ExitTimeException is thrown. The caller should check system time before and after this call in order to be sure of how much time has passed.
The dispose parameter specifies how to treat the reaping of the remote jobs' internal data records, which includes a record of the jobs' consumption of system resources during their execution and other statistical information. If this parameter is set to true
, the DRM will dispose of the jobs' data records at the end of the synchroniize() call. If set to false
, the data records will be left for future access via the wait() method.
source
or a subdirectory of source
to the corresponding directory under target
. Files in under source
are not copied to target
if a file by the same name already exists in target
.
@param source source directory
@param target target directory
@throws ApplicationException if there is a problem copying files
null
, the EventList will be emptied.
|
|
|
|
|
|