Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

InvocationService Class Reference

#include <coherence/net/InvocationService.hpp>

Inherits Service.

List of all members.


Detailed Description

The InvocationService is a Service for delivering executable objects to the cluster member to which the client is connected.

The executable objects must implement the Invocable interface, which extends the Runnable interface. Using this interface, application code can cause execution of an Invocable object to occur within the cluster.

Author:
jh 2007.12.21
 

Public Types

typedef spec::Handle  Handle
  InvocationService Handle definition.
typedef spec::View  View
  InvocationService View definition.
typedef spec::Holder  Holder
  InvocationService Holder definition.

Public Member Functions

virtual Map::View  query (Invocable::Handle hTask, Set::View vSetMembers)=0
  Synchronously invoke the specified task on each of the specified members.

Member Function Documentation

virtual Map::View query ( Invocable::Handle  hTask,
    Set::View  vSetMembers  
  )     [pure virtual]

Synchronously invoke the specified task on each of the specified members.

This method will not return until the specified members have completed their processing, failed in their processing, or died trying.

Currently, the client implementation of this interface only supports invocation on the cluster member to which the client is connected. Therefore, the specified Set of Member objects must be NULL.

Parameters:
  hTask  the Invocable object to distribute to the specified members in order to be invoked on those members
  vSetMembers  must be NULL (future use)
Returns:
a Map of result objects keyed by Member object

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

Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.