7 #ifndef __FASP_MANAGER_H__
8 #define __FASP_MANAGER_H__
79 #define FASP_MGR_IDLE 0x01
80 #define FASP_MGR_STARTED 0x02
82 #define FASP_MGR_STOPPED 0x03
84 #define FASP_MGR_ERROR 0x04
96 CTRL_UPDATE_RATE = 0x08,
97 CTRL_UPDATE_MIN = 0x10,
98 CTRL_UPDATE_POLICY = 0x20,
99 CTRL_UPDATE = CTRL_UPDATE_RATE | CTRL_UPDATE_MIN | CTRL_UPDATE_POLICY,
105 {
return (a = (a | b)); }
126 FASP_MANAGER_API
static void Destroy( );
163 FASP_MANAGER_API
virtual void AddSourcePath(
char const* jobid,
char const* src_path,
char const* dst_path, u_int64_t start=0, u_int64_t end=0 ) = 0;
172 FASP_MANAGER_API
virtual void CancelJob(
char const* jobid ) = 0;
204 FASP_MANAGER_API
virtual void RemoveJob(
char const* jobid ) = 0;
241 FASP_MANAGER_API
virtual char const*
const*
GetJobIdList( ) = 0;
271 FASP_MANAGER_API
virtual ~Manager( );
virtual FASP_MANAGER_API void SetDebugLevel(int level)=0
A class providing an abstract base for FASP functors.
Definition: FaspManagerFunctor.h:23
virtual FASP_MANAGER_API void RemoveGlobalCallback(Functor *fnctr)=0
virtual FASP_MANAGER_API void RemoveJob(char const *jobid)=0
A structure of update parameters.
Definition: FaspManagerTypes.h:347
A structure of FASP Job job level statistics.
Definition: FaspManagerTypes.h:358
virtual FASP_MANAGER_API void AddGlobalCallback(Functor *fnctr)=0
virtual FASP_MANAGER_API void LockPersistentJob(char const *jobid)=0
virtual FASP_MANAGER_API ~Manager()
Destructs this FASP Manager.
virtual FASP_MANAGER_API bool ListenForServerSessions(bool On)=0
A structure of the components that define a FASP Job transfer.
Definition: FaspManagerTypes.h:227
virtual FASP_MANAGER_API void CancelJob(char const *jobid)=0
virtual FASP_MANAGER_API void StopPersistentJob(char const *jobid)=0
virtual FASP_MANAGER_API char const * LaunchJob(JobOrder *order, Functor *fnctr)=0
C++ namespace for Aspera, Inc.
Definition: Environment.h:10
A class to manage FASP jobs.
Definition: FaspManager.h:115
static FASP_MANAGER_API void Destroy()
Stops and destructs a singleton reference to a FASP Manager.
static FASP_MANAGER_API Manager * GetInstance(bool owns_log=true)
virtual FASP_MANAGER_API void AddSourcePath(char const *jobid, char const *src_path, char const *dst_path, u_int64_t start=0, u_int64_t end=0)=0
FASP_MANAGER_API Manager()
Constructs this FASP Manager.
virtual FASP_MANAGER_API void AddCallback(char const *jobid, Functor *fnctr)=0
virtual FASP_MANAGER_API void ControlJob(mgr_ctrl_t ctrl, UpdateParams *up_prms, char const *jobid)=0
mgr_ctrl_t
An enumeration of FASP Manager control types.
Definition: FaspManager.h:90
virtual FASP_MANAGER_API char const *const * GetJobIdList()=0
virtual FASP_MANAGER_API JobStats GetJobStats(char const *jobid)=0