it.eng.spagobi.tools.scheduler.utils
Class SchedulerUtilities

java.lang.Object
  extended by it.eng.spagobi.tools.scheduler.utils.SchedulerUtilities

public class SchedulerUtilities
extends java.lang.Object


Constructor Summary
SchedulerUtilities()
           
 
Method Summary
static boolean checkResultOfWSCall(it.eng.spago.base.SourceBean resultSB)
          Check result of ws call.
static SaveInfo fromSaveInfoString(java.lang.String saveinfostr)
          From save info string.
static JobInfo getJobInfoFromJobSourceBean(it.eng.spago.base.SourceBean jobDetSB)
          Gets the job info from job source bean.
static Snapshot getNamedHistorySnapshot(java.util.List allsnapshots, java.lang.String namesnap, int hist)
          Gets the named history snapshot.
static it.eng.spago.base.SourceBean getSBFromWebServiceResponse(java.lang.String response)
          Gets the sB from web service response.
static java.util.List getSnapshotsByName(java.util.List allsnapshots, java.lang.String namesnap)
          Gets the snapshots by name.
static TriggerInfo getTriggerInfoFromTriggerSourceBean(it.eng.spago.base.SourceBean triggerDetSB, it.eng.spago.base.SourceBean jobDetSB)
          Gets the trigger info from trigger source bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerUtilities

public SchedulerUtilities()
Method Detail

getNamedHistorySnapshot

public static Snapshot getNamedHistorySnapshot(java.util.List allsnapshots,
                                               java.lang.String namesnap,
                                               int hist)
                                        throws java.lang.Exception
Gets the named history snapshot.

Parameters:
allsnapshots - the allsnapshots
namesnap - the namesnap
hist - the hist
Returns:
the named history snapshot
Throws:
java.lang.Exception - the exception

getSnapshotsByName

public static java.util.List getSnapshotsByName(java.util.List allsnapshots,
                                                java.lang.String namesnap)
                                         throws java.lang.Exception
Gets the snapshots by name.

Parameters:
allsnapshots - the allsnapshots
namesnap - the namesnap
Returns:
the snapshots by name
Throws:
java.lang.Exception - the exception

getSBFromWebServiceResponse

public static it.eng.spago.base.SourceBean getSBFromWebServiceResponse(java.lang.String response)
Gets the sB from web service response.

Parameters:
response - the response
Returns:
the sB from web service response

checkResultOfWSCall

public static boolean checkResultOfWSCall(it.eng.spago.base.SourceBean resultSB)
Check result of ws call.

Parameters:
resultSB - the result sb
Returns:
true, if successful

getJobInfoFromJobSourceBean

public static JobInfo getJobInfoFromJobSourceBean(it.eng.spago.base.SourceBean jobDetSB)
Gets the job info from job source bean.

Parameters:
jobDetSB - the job det sb
Returns:
the job info from job source bean

getTriggerInfoFromTriggerSourceBean

public static TriggerInfo getTriggerInfoFromTriggerSourceBean(it.eng.spago.base.SourceBean triggerDetSB,
                                                              it.eng.spago.base.SourceBean jobDetSB)
Gets the trigger info from trigger source bean.

Parameters:
triggerDetSB - the trigger det sb
jobDetSB - the job det sb
Returns:
the trigger info from trigger source bean

fromSaveInfoString

public static SaveInfo fromSaveInfoString(java.lang.String saveinfostr)
From save info string.

Parameters:
saveinfostr - the saveinfostr
Returns:
the save info