Commit 5ea8de10 authored by Ryan Berkheimer's avatar Ryan Berkheimer

bugfixin

parent 62bbf257
......@@ -14,7 +14,7 @@ JNIEXPORT jobject JNICALL Java_gov_noaa_messageapi_endpoints_NativeEndpoint_proc
{
printf("In our test!\n");
printf("Hello, World\n");
struct record_list* default_record_list = getRecords(message);
/*struct record_list* default_record_list = getRecords(message);
//struct record_list* classifier_record_list = getRecordsByClassifier(message, "color", "blue");
//struct record_list* collection_record_list = getRecordsByCollection(message, "gold");
//struct record_list* transformation_record_list = getRecordsByTransformation(message, "combine-colors");
......@@ -66,7 +66,7 @@ JNIEXPORT jobject JNICALL Java_gov_noaa_messageapi_endpoints_NativeEndpoint_proc
} else {
printf("Field val 4 has a value!\n");
}
fflush(stdout);
fflush(stdout);*/
struct record *returnRecord = createRecord(message);
struct string_list *fieldIds = getFieldIds(message, returnRecord);
printf("field ids for return field follow. \n");
......
......@@ -98,6 +98,9 @@ void MessageApiEndpoint::loadProtocolRecordMethodIds()
jclass protocolRecordClass = this->getObjectClass(this->protocolRecord);
printf("Loaded protocolRecordClass..\n");
fflush(stdout);
this->getRecordsMethodId = this->getMethod(protocolRecordClass, "getRecords", this->getProtocolRecordMethodSignature("getRecords"), false);
this->getRecordsByCollectionMethodId = this->getMethod(protocolRecordClass, "getRecordsByCollection", this->getProtocolRecordMethodSignature("getRecordsByCollection"), false);
this->getRecordsByUUIDMethodId = this->getMethod(protocolRecordClass, "getRecordsByUUID", this->getProtocolRecordMethodSignature("getRecordsByUUID"), false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment