@@ -0,0 +1,1094 @@
+package edu.brown.cs.systems.pivottracing.tools;%0A%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0A%0Aimport edu.brown.cs.systems.pivottracing.PTAgentProtos.AgentStatus;%0Aimport edu.brown.cs.systems.pivottracing.PTAgentProtos.PivotTracingCommand;%0Aimport edu.brown.cs.systems.pivottracing.PivotTracingConfig;%0Aimport edu.brown.cs.systems.pubsub.PubSub;%0Aimport edu.brown.cs.systems.pubsub.PubSubClient.Subscriber;%0A%0A/** Just subscribes and prints all query results to stdout */%0Apublic class GetAgentStatus extends Subscriber%3CAgentStatus%3E %7B%0A    %0A    @Override%0A    protected void OnMessage(AgentStatus message) %7B%0A        System.out.println(message);%0A    %7D%0A    %0A    public static void main(String%5B%5D args) throws FileNotFoundException, IOException, InterruptedException %7B%0A        PubSub.subscribe(PivotTracingConfig.STATUS_TOPIC, new GetAgentStatus());%0A        while (!Thread.currentThread().isInterrupted()) %7B%0A            PubSub.publish(PivotTracingConfig.COMMANDS_TOPIC, PivotTracingCommand.newBuilder().setSendStatus(true).build());%0A            Thread.sleep(10000);%0A        %7D%0A    %7D%0A%0A%7D%0A

Add tool to print agent status