gemfire::ManagedFixedPartitionResolverGeneric Class Reference


Detailed Description

Wraps the managed GemStone.GemFire.Cache.IFixedPartitionResolver object and implements the native gemfire::FixedPartitionResolver interface.

Public Member Functions

virtual const char * getName ()
virtual const char * getPartitionName (const EntryEvent &opDetails, CacheableHashSetPtr targetPartitions)
virtual CacheableKeyPtr getRoutingObject (const EntryEvent &key)
 ManagedFixedPartitionResolverGeneric (Object^ userptr)
IFixedPartitionResolverProxy^ ptr () const
virtual ~ManagedFixedPartitionResolverGeneric ()

Static Public Member Functions

static
PartitionResolver * 
create (const char *assemblyPath, const char *factoryFunctionName)

Constructor & Destructor Documentation

gemfire::ManagedFixedPartitionResolverGeneric::ManagedFixedPartitionResolverGeneric ( Object^   userptr  )  [inline]

Constructor to initialize with the provided managed object.

Parameters:
userptr The managed object.

virtual gemfire::ManagedFixedPartitionResolverGeneric::~ManagedFixedPartitionResolverGeneric (  )  [inline, virtual]

Destructor -- does nothing.


Member Function Documentation

static PartitionResolver* gemfire::ManagedFixedPartitionResolverGeneric::create ( const char *  assemblyPath,
const char *  factoryFunctionName 
) [static]

Static function to create a ManagedFixedPartitionResolver using given managed assembly path and given factory function.

Parameters:
assemblyPath The path of the managed assembly that contains the IFixedPartitionResolver factory function.
factoryFunctionName The name of the factory function of the managed class for creating an object that implements IFixedPartitionResolver. This should be a static function of the format {Namespace}.{Class Name}.{Method Name}.
Exceptions:
IllegalArgumentException If the managed library cannot be loaded or the factory function fails.

virtual const char* gemfire::ManagedFixedPartitionResolverGeneric::getName (  )  [virtual]

Returns the name of the FixedPartitionResolver.

This function does not throw any exception.

Returns:
the name of the FixedPartitionResolver

virtual const char* gemfire::ManagedFixedPartitionResolverGeneric::getPartitionName ( const EntryEvent opDetails,
CacheableHashSetPtr  targetPartitions 
) [virtual]

This method is used to get the name of the partition for the given entry operation.

Parameters:
opDetails the details of the entry event e.g. Region#get(Object)
targetPartitions represents all the available primary partitions on the nodes
Returns:
partition-name associated with node which allows mapping of given data to user defined partition.

virtual CacheableKeyPtr gemfire::ManagedFixedPartitionResolverGeneric::getRoutingObject ( const EntryEvent key  )  [virtual]

return object associated with entry event which allows the Partitioned Region to store associated data together.

throws RuntimeException - any exception thrown will terminate the operation and the exception will be passed to the calling thread.

Parameters:
key key the detail of the entry event.

IFixedPartitionResolverProxy ^ gemfire::ManagedFixedPartitionResolverGeneric::ptr (  )  const [inline]

Returns the wrapped managed object reference.


GemFire C++ Cache .NET API Documentation