I was able to successfully start the Heartbeat application in the IotfFullScenario sample. I'm confused about how to stop the Heartbeat application once it is running. I understand that I need to change the job state, e.g., job.stateChange(Job.Action.CLOSE). My question is: how can I access the running application from a different Quarks application? Any tips or help would be appreciated!
-- Queenie On Mon, May 16, 2016 at 7:37 AM, Dan Debrunner <[email protected]> wrote: > On 5/16/2016 6:51 AM, Susan Cline wrote: > >> >> On May 10, 2016, at 3:58 PM, Dan Debrunner <[email protected] >>> >> > JsonControlService registers the MBeans and allows a JSON control >>> request object to invoke an operation. The JSON object format is >>> described (briefly) in the package for the JsonControlService but its >>> formatting was messed up so it doesn't appear in the Javadoc (I'll fix >>> that). The JSON control request object is passed directly into the >>> JsonControlService instance to invoke the method. >>> >> >> Has this been fixed yet? When I look at the javadoc for >> JsonControlService I see: >> >> A JSON object passed to |controlRequest| >> <file:///Users/susancline/new_git/incubator-quarks/target/docs/javadoc/quarks/runtime/jsoncontrol/JsonControlService.html#controlRequest-com.google.gson.JsonObject-> >> with >> these name/value pairs is handled as an operation resulting in a method >> call to a void method on a control service MBean interface. >> >> * |type=|/type/ - MBean type. >> * |alias=|/alias - Alias of the MBean./ >> * |op=|/name/ - Name of the operation to invoke, this is the method >> name on the MBean. >> * |arguments=|/optional list of arguments/ - Arguments passed to the >> operation (method). >> >> Is this correct now? >> > > The information was correct, the bug was only that it was not showing up > in the javadoc. > > Dan. >
