<?php grokit\create_message_type('ConfigureExecEngineMessage', [], ['newGraph' => 'DataPathGraph', 'configs' => 'WayPointConfigurationList', 'tasks' => 'TaskList']); ?> // this is the message that is sent to the execution engine by a worker to send a hopping // data message through the graph. The secod param ("token") is the work token that was used // to authorize the actual work that was done. The first param is the return value from the // function that was called to produce the data... <?php grokit\create_message_type('HoppingDataMsgMessage', ['returnVal' => 'int'], ['token' => 'GenericWorkToken', 'message' => 'HoppingDataMsg']); ?> //////////// QUERIES DONE MESSAGE ///////////// /** When the execution engine has determined that some queries have completed execution, it sends the following message to the controller, which lists all of the query/exit combos for which work has been completed. Arguments: completedQueries: the set of completed queries */ <?php grokit\create_message_type('QueriesDoneMessage', [], ['completedQueries' => 'QueryExitContainer']); ?> #endif
<?php // Copyright 2013 Tera Insights, LLC. All Rights Reserved. require_once 'MessagesFunctions.php'; ?> #ifndef _TEST_MESSAGES_H_ #define _TEST_MESSAGES_H_ <?php grokit\create_message_type('TestMessage', ['id' => 'int'], ['msg' => 'Json::Value'], true); ?> #endif // _TEST_MESSAGES_H_
<?php // Copyright 2013 Tera Insights, LLC. All Rights Reserved. require_once 'MessagesFunctions.php'; ?> #ifndef _CATALOG_MESSAGES_H_ #define _CATALOG_MESSAGES_H_ #include "SerializeJson.h" <?php grokit\create_message_type('CatalogUpdateMessage', [], ['catalog' => 'Json::Value'], true); ?> #endif //_CATALOG_MESSAGES_H_
//////////// WORK TO DO MESSAGE ///////////// /** Message sent by ExecutionEngine to request work to be done by a Worker. Arguments: workUnit: work to be done myName: handle for the Worker */ <?php grokit\create_message_type('WorkToDoMessage', [], ['workUnit' => 'WorkUnit', 'myName' => 'Worker']); ?> //////////// WORK DONE MESSAGE ///////////// /** Message sent by Worker to the ExecutionEngine when the work is done. Arguments: timeS: how long did it take to execute the work runThis: work that has been done sentFrom: Worker who did the work and sent the message */ <?php grokit\create_message_type('WorkDoneMessage', ['timeS' => 'double'], ['runThis' => 'WorkUnit', 'sentFrom' => 'Worker']); ?> #endif // _WORK_MESSAGES_H_
* "ready" The service is ready to begin processing requests. * "stopping" The service is now stopping, and will reject any further * requests. Any requests still being processed will be finished. * "stopped" The service has completely stopped, requests are being processed * and no requests will be accepted. */ <?php grokit\create_message_type("ServiceInfoMessage", ['service' => 'std::string', 'status' => 'std::string', 'data' => 'Json::Value'], [], true); ?> <?php grokit\create_message_type("ServiceControlMessage", [], ['control' => 'ServiceData'], true); ?> /* * Message containing a reply to a request. There are many kinds of replies, indicated * by the "kind" value: * * "received" The request has been successfully received and has been queued for * processing. * "processing" The request is now being processed * "result" This message contains a result produced in response to the request. * "error" The request was unable to be serviced for some reason, and * information about the error will be available in "data" */ <?php grokit\create_message_type("ServiceReplyMessage", [], ['reply' => 'ServiceData'], true); ?> #endif // SERVICE_MESSAGES_H_
// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // require_once 'MessagesFunctions.php'; ?> #ifndef _DUMPREQUESTMESSAGE_H_ #define _DUMPREQUESTMESSAGE_H_ ///////////// DUMP REQUEST MESSAGE //////////// /** Message send by the Diagnose to SqliteDumper Arguments: msgContainer, killMe */ <?php grokit\create_message_type('DumpRequestMessage', ['killMe' => 'bool'], ['msgContainer' => 'MessageContainer']); ?> #endif
#include <string> #include "Message.h" #include "SymbolicWaypointConfig.h" #include "WayPointConfigureData.h" /** Message sent to the code loader to ask for new code to be loaded. Arguments: dirName: directory where the new code is (previously generated) configs: configuration for existing waypoints */ <?php grokit\create_message_type('LoadNewCodeMessage', ['dirName' => 'std::string'], ['configs' => 'WayPointConfigurationList']); ?> /** Message sent by the code loader when the new code was loaded. Arguments: code: new configuration objects for the waypoints */ <?php grokit\create_message_type('LoadedCodeMessage', [], ['configs' => 'WayPointConfigurationList']); ?> #endif // _CL_MESSAGES_H_
#include "WorkDescription.h" #include "ExecEngineData.h" #include "Tokens.h" #include "History.h" #include "Message.h" #include "WorkFuncs.h" #ifndef _CPU_WORKER_MESSAGES_H_ #define _CPU_WORKER_MESSAGES_H_ // this is the message sent to a CPU worker to get it to do its job... it includes // (1) currentPos, the waypoint who is making the request; (2) the function myFunc that // the CPU worker will be asked to execute; (3) dest, which is the set of query-exit // pairs where the result of the work will be sent; (4) lineage, which is the history // that will be sent along with the completed data; (5) token, which is the token that // enabled someone to request the CPU work in the first place, and (5) workDescription, // which tells the CPU worker what to actually do // note that this message is internal in the sense that all CPU workers are managed as // part of a CPUWorkerPool object; all requests for work should go to that object and // NOT directly to some CPU worker <?php grokit\create_message_type('WorkRequestMsg', ['currentPos' => 'WayPointID', 'myFunc' => 'WorkFunc'], ['dest' => 'QueryExitContainer', 'lineage' => 'HistoryList', 'token' => 'GenericWorkToken', 'workDescription' => 'WorkDescription']); ?> #endif
<?php // // Copyright 2013 Tera Insights LLC. All Rights Reserved. // Author: Christopher Dudley require_once 'MessagesFunctions.php'; ?> #ifndef _SCHEDULER_MESSAGES_H_ #define _SCHEDULER_MESSAGES_H_ #include "TimePoint.h" /*********** Single-Run Scheduler Events **********/ // Register a timer that does not repeat and expires `delay` // after the timer is registered <?php grokit\create_message_type('SchedulerRegisterSingleRelative', ['delay' => 'TimePoint'], ['dest' => 'EventProcessor', 'payload' => 'Data']); ?> // Register a timer that does not repeat and expires at the specified // time <?php grokit\create_message_type('SchedulerRegisterSingleAbsolute', ['time' => 'TimePoint'], ['dest' => 'EventProcessor', 'payload' => 'Data']); ?> #endif // _SCHEDULER_MESSAGES_H_
// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // require_once 'MessagesFunctions.php'; ?> #ifndef _DP_MESSAGES_H_ #define _DP_MESSAGES_H_ #include <string> ////////// NEW PLAN ////////////////////// /** Message is sent by the main program to the coordinator with new xml files containing plans. */ <?php grokit\create_message_type('NewPlan', ['confFile' => 'std::string'], []); ?> #endif // _TRANS_MESSAGES_H_
?> ///// LEMON TRANSLATOR MESSAGES ////// /** Message is only used to implement the SimpleTranslator. It is going to be changed for the full translator. The message is sent by the Coordinator to the SimpleTranslator. Arguments: file: full path to the file with instructions for translator. dp file */ <?php grokit\create_message_type('TranslationMessage', ['confFile' => 'std::string'], [], true); ?> /** Message to specify that a set of queries have finished Arguments: queries: the set of queries that finished */ <?php grokit\create_message_type('DeleteQueriesMessage', ['queries' => 'QueryIDSet'], [], true); ?> #endif // _TRANS_MESSAGES_H_
<?php // // Copyright 2013 Tera Insights LLC. All Rights Reserved. // Author: Christopher Dudley require_once 'MessagesFunctions.php'; ?> #ifndef _SCHEDULER_CLOCK_MESSAGES_H_ #define _SCHEDULER_CLOCK_MESSAGES_H_ /*********** Common Messages **********/ <?php grokit\create_message_type('SchedulerHeartbeat', [], []); ?> <?php grokit\create_message_type('SchedulerClockRegister', []); ?> #endif // _SCHEDULER_CLOCK_MESSAGES_H_
<?php // Copyright 2013 Tera Insights, LLC. All Rights Reserved. require_once 'MessagesFunctions.php'; ?> #ifndef _PERF_PROF_MSG_H_ #define _PERF_PROF_MSG_H_ #include "SerializeJson.h" #include <cinttypes> <?php grokit\create_message_type('PerfTopMessage', ['wallTime' => 'int64_t'], ['info' => 'Json::Value'], true); ?> #endif // _PERF_PROF_MSG_H_
requestor: the event processor that gets the ACK */ <?php grokit\create_message_type('CommitMetadata', ['requestID' => 'off_t', 'append' => 'bool'], ['requestor' => 'EventProcessor']); ?> <?php grokit\create_message_type('Flush', [], []); ?> <?php grokit\create_message_type('DeleteContent', [], []); ?> ///////////// CHUNK CLUSTER UPDATE /////////////// /* Message sent to the ChunkReaderWrite to tell it to update the clustering range for the given chunk. Arguments: requestor: The WayPoint sending the update chunkID: The ID of the chunk to update range: The new clustering range */ <?php grokit\create_message_type('ChunkClusterUpdate', ['requestor' => 'WayPointID', 'chunkID' => 'ChunkID', 'range' => 'std::pair<int64_t, int64_t>'], []); ?> #endif // _DISKIO_MESSAGES_H_
<?php // Copyright 2013 Tera Insights, LLC. All Rights Reserved. // Author: Christopher Dudley require_once 'MessagesFunctions.php'; ?> #ifndef _QUERY_PLAN_MESSAGES_H_ #define _QUERY_PLAN_MESSAGES_H_ #include "SerializeJson.h" <?php grokit\create_message_type('QueryPlanMessage', [], ['info' => 'Json::Value'], true); ?> #endif // _QUERY_PLAN_MESSAGES_H_
// Message with no duration <?php grokit\create_message_type('ProfileInstantMessage', ['wallTime' => 'int64_t'], ['counter' => 'PCounter'], true, true); ?> // Message with a single progress counter <?php grokit\create_message_type('ProfileProgressMessage', ['wallTime' => 'int64_t'], ['counter' => 'PCounter'], true, true); ?> // Message with multiple progress counters <?php grokit\create_message_type('ProfileProgressSetMessage', ['wallTime' => 'int64_t'], ['counters' => 'PCounterList'], true, true); ?> // message stating that the current time interval has elapsed <?php grokit\create_message_type('ProfileIntervalMessage', ['wallTime' => 'int64_t', 'cTime' => 'int64_t', 'cTime' => 'int64_t'], ['statInfo' => 'Json::Value']); ?> // message sent by the profiler to the frontend, holding aggregate information about // performance counters for the previous second. // times are in milliseconds since the epoch <?php grokit\create_message_type('ProfileAggregateMessage', ['wallStart' => 'int64_t', 'wallEnd' => 'int64_t'], ['counters' => 'Json::Value', 'progress' => 'Json::Value'], true); ?> #endif // _PROF_MSG_H_