IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::core::RemoteActionProvider Class Reference

Class allowing to provide actions from a remote machine. More...

#include <RemoteActionProvider.h>

Inheritance diagram for ipsdk::core::RemoteActionProvider:
ipsdk::core::BaseActionProvider

Public Member Functions

BoolResult init (const Guid &socketGuid, const ePriority &actionPriority, const Guid &sourceProviderGuid)
 object initialization method More...
 
const GuidgetSocketGuid () const
 retrieve socket guid used to ask for pending actions More...
 
Constructors and destructors
 RemoteActionProvider ()
 
 ~RemoteActionProvider ()
 
- Public Member Functions inherited from ipsdk::core::BaseActionProvider
bool isInit () const
 retrieve object initialization flag
 
const GuidgetGuid () const
 retrieve guid associated to provider More...
 
const ePrioritygetActionsPriority () const
 retrieve priority associated to provided actions More...
 
eExecutionStatus getStatus () const
 check for provider execution status More...
 
void addCompletionCB (const ProviderCompletionCB &completionCB)
 add a completion callback associated to action provider More...
 
bool areActionsPending () const
 check whether additional actions potentially are pending More...
 
void waitForCompletion ()
 method allowing to wait for execution completion More...
 
bool waitForCompletion (const boost::chrono::milliseconds &duration)
 method allowing to wait for a given duration for execution completion More...
 
bool waitForCompletion (const boost::chrono::system_clock::time_point &deadLineTime)
 method allowing to wait until a given time point for execution completion More...
 
void requestCancellation ()
 method allowing to request cancellation More...
 
bool isCancellationRequested () const
 check whether a cancellation has been requested More...
 
ExecResult getGlobalResult () const
 retrieve execution global result More...
 
double getFullExecutionDuration () const
 retrieve full execution time More...
 
void clear ()
 clear of object data More...
 
 BaseActionProvider ()
 
virtual ~BaseActionProvider ()=0
 

Protected Member Functions

QueryResult queryNextAction (const BaseRequestOrigin &requestOrigin, ActionRequestPtr &pActionRequest, bool &bProcessCompletionCheck, SerializationObjectPtr &pCbAdditionalData)
 query for next action to be processed in derived class More...
 
bool hasPendingAction () const
 method allowing to check whether actions are pending in derived class
 
BoolResult notifyDerived (const ActionRequestPtr &pActionRequest, const SerializationObjectConstPtr &pCbAdditionalData, bool &bRestartProvider)
 method used to notify of execution completion for a given request More...
 
- Protected Member Functions inherited from ipsdk::core::BaseActionProvider
BoolResult initBase (const BasePriority &actionsPriority, const Guid &providerGuid=Guid())
 base class initialization method More...
 
bool existsRemoteProvider (const Guid &socketGuid)
 check whether a remote provider exists for a given socket guid More...
 
void addRemoteProvider (const Guid &socketGuid)
 define a new remote provider for a given socket guid More...
 
bool unRegisterRemoteProvider (const Guid &socketGuid)
 un register a remote provider for a given socket guid More...
 
BoolResult registerRemoteProvider (const Guid &socketGuid)
 instantly register a new remote provider for a given socket guid More...
 
BoolResult registerRemoteProviders ()
 register remote providers associated to object More...
 
virtual void clearDerived ()
 clear of data in derived class
 
virtual void requestCancellationDerived ()
 method allowing to request cancellation in derived classes
 

Protected Attributes

Guid _socketGuid
 socket guid used to ask for pending actions
 
bool _bNoMoreActionDetected
 flag indicating whether a no more action case has been detected
 

Detailed Description

Class allowing to provide actions from a remote machine.

Author
E. Noirfalise
Date
2013/12/18

Member Function Documentation

◆ init()

BoolResult ipsdk::core::RemoteActionProvider::init ( const Guid socketGuid,
const ePriority actionPriority,
const Guid sourceProviderGuid 
)

object initialization method

Returns
false in case of failure

◆ getSocketGuid()

const Guid& ipsdk::core::RemoteActionProvider::getSocketGuid ( ) const

retrieve socket guid used to ask for pending actions

Exceptions
ipsdk::core::IPSDKCoreExceptionif isInit() == false

◆ queryNextAction()

QueryResult ipsdk::core::RemoteActionProvider::queryNextAction ( const BaseRequestOrigin requestOrigin,
ActionRequestPtr pActionRequest,
bool &  bProcessCompletionCheck,
SerializationObjectPtr pCbAdditionalData 
)
protectedvirtual

query for next action to be processed in derived class

Note
this method is protected against concurrent accesses
Returns
query result. Returned action request must not be null nor uninitialized
Exceptions
ipsdk::core::IPSDKCoreExceptionif requestOrigin.getRequestOrigin() != eRequestOrigin::eRO_Local

Implements ipsdk::core::BaseActionProvider.

◆ notifyDerived()

BoolResult ipsdk::core::RemoteActionProvider::notifyDerived ( const ActionRequestPtr pActionRequest,
const SerializationObjectConstPtr pCbAdditionalData,
bool &  bRestartProvider 
)
protectedvirtual

method used to notify of execution completion for a given request

Returns
should return false is execution may be stopped for an other reason than execution failure

Reimplemented from ipsdk::core::BaseActionProvider.


The documentation for this class was generated from the following file: