GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::proxy_aggregator Class Reference

#include <graphlab/jni/org_graphlab_Aggregator.hpp>

List of all members.

Public Member Functions

 proxy_aggregator (JNIEnv *env, jobject &java_aggregator)
 proxy_aggregator ()
 proxy_aggregator (const proxy_aggregator &other)
proxy_aggregatoroperator= (const proxy_aggregator &other)
 ~proxy_aggregator ()
void operator() (icontext_type &context)
void operator+= (const proxy_aggregator &other)
void finalize (iglobal_context &context)
jobject & obj ()
const jobject & obj () const

Static Public Attributes

static jmethodID java_exec = 0
static jmethodID java_add = 0
static jmethodID java_finalize = 0
static jmethodID java_clone = 0

Protected Member Functions

void set_obj (jobject obj)
bool handle_exception (JNIEnv *env) const

Detailed Description

Proxy aggregator. Mirrors and forwards calls to the corresponding Java aggregator. The constructor creates a new reference to the Java object (so that it doesn't get garbage collected.) The destructor will delete the reference to allow the corresponding Java object to be garbaged collected. The copy constructor clones the Java object.

Definition at line 48 of file org_graphlab_Aggregator.hpp.


Constructor & Destructor Documentation

proxy_aggregator::proxy_aggregator ( JNIEnv *  env,
jobject &  java_aggregator 
)

Constructor for proxy aggregator. Initializes this object with the associated Java org.graphlab.Updater object.

Parameters:
[in]envJNI environment - used to create a new reference to javaUpdater.
[in]java_aggregatorJava org.graphlab.Aggregator object. This constructor will create a new reference to the object to prevent garbage collection.

Definition at line 63 of file org_graphlab_Aggregator.cpp.

proxy_aggregator::proxy_aggregator ( )

The default constructor does nothing

Definition at line 66 of file org_graphlab_Aggregator.cpp.

proxy_aggregator::proxy_aggregator ( const proxy_aggregator other)

Copy constructor for proxy_aggregator. If other has a mobj, creates a new reference to it.

Definition at line 70 of file org_graphlab_Aggregator.cpp.

proxy_aggregator::~proxy_aggregator ( )

Deletes the reference to the Java object so that it may be garbage collected.

Definition at line 92 of file org_graphlab_Aggregator.cpp.


Member Function Documentation

bool java_any::handle_exception ( JNIEnv *  env) const
protectedinherited

Checks for and rethrows Java exceptions.

Parameters:
[in]envJNI environment
Returns:
true if exception was found; false otherwise

Definition at line 117 of file java_any.cpp.

jobject & java_any::obj ( )
inherited

Retrieves the associated Java object

Definition at line 46 of file java_any.cpp.

proxy_aggregator & proxy_aggregator::operator= ( const proxy_aggregator other)

Copy assignment operator for proxy_aggregator. If other has a mobj, creates a new reference to it.

Definition at line 84 of file org_graphlab_Aggregator.cpp.

void java_any::set_obj ( jobject  obj)
protectedinherited

Deletes the current ref (if any) and creates a new ref if obj is not null.

Parameters:
[in]objreplaces current object ref

Definition at line 93 of file java_any.cpp.


Member Data Documentation

jmethodID proxy_aggregator::java_add = 0
static

Method ID of org.graphlab.Aggregator::add.

Definition at line 66 of file org_graphlab_Aggregator.hpp.

jmethodID proxy_aggregator::java_clone = 0
static

Method ID of org.graphlab.Aggregator::clone

Definition at line 76 of file org_graphlab_Aggregator.hpp.

jmethodID proxy_aggregator::java_exec = 0
static

Method ID of org.graphlab.Aggregator::exec.

Definition at line 61 of file org_graphlab_Aggregator.hpp.

jmethodID proxy_aggregator::java_finalize = 0
static

Method ID of org.graphlab.Aggregator::finalize.

Definition at line 71 of file org_graphlab_Aggregator.hpp.


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