de.uplanet.lucy.server.datatrans.callable
Class DataTransferCallable

java.lang.Object
  extended by de.uplanet.lucy.server.datatrans.callable.DataTransferCallable

@Scriptable
@VelocityCallable(value="singelton")
public class DataTransferCallable
extends java.lang.Object

Version:
$Revision: 81388 $

Constructor Summary
DataTransferCallable()
           
 
Method Summary
 DataTransferJobListEntry[] getConnections()
          Returns the currently defined data transfer jobs.
 java.lang.String getJobMessages(java.lang.String p_strGuid)
          Returns the message for the job with the specified GUID.
 SchedulerJobRun[] getJobs(java.lang.String p_strJobGuid)
          Deprecated. Use getJobsHistory(String) instead.
 SchedulerJobRun[] getJobsHistory(java.lang.String p_strJobGuid)
          Returns the job history for the connection with the specified name.
 java.lang.String getLastJobMessage(java.lang.String p_strJobGuid)
          Returns the message of the last job executed for the specified connection.
 void startJob(java.lang.String p_strGuid)
          Starts the specified scheduler job.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransferCallable

public DataTransferCallable()
Method Detail

getConnections

public DataTransferJobListEntry[] getConnections()
Returns the currently defined data transfer jobs.

Returns:
A list of data transfer job enties.

getJobs

@Deprecated
public SchedulerJobRun[] getJobs(java.lang.String p_strJobGuid)
                          throws java.lang.Exception
Deprecated. Use getJobsHistory(String) instead.

Throws:
java.lang.Exception

getJobsHistory

public SchedulerJobRun[] getJobsHistory(java.lang.String p_strJobGuid)
                                 throws java.lang.Exception
Returns the job history for the connection with the specified name.

Parameters:
p_strJobGuid - The job GUID.
Returns:
The history as an array.
Throws:
java.lang.Exception - If an error occurred.

getLastJobMessage

public java.lang.String getLastJobMessage(java.lang.String p_strJobGuid)
                                   throws java.lang.Exception
Returns the message of the last job executed for the specified connection.

Parameters:
p_strJobGuid - The job GUID.
Throws:
java.lang.Exception - If an error occurred.

getJobMessages

public java.lang.String getJobMessages(java.lang.String p_strGuid)
                                throws java.io.IOException
Returns the message for the job with the specified GUID.

Parameters:
p_strGuid - The job GUID.
Returns:
The message.
Throws:
java.io.IOException - If an I/O error occurred.

startJob

public void startJob(java.lang.String p_strGuid)
              throws java.lang.Exception
Starts the specified scheduler job.

Parameters:
p_strGuid - The job GUID.
Throws:
java.lang.Exception - If an error occurred.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.