diff options
3 files changed, 0 insertions, 24 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java index 429346c..70da4af 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java @@ -89,9 +89,6 @@ public class Agent { Thread eventBusThread = new Thread(eventBus); System.out.println("Initializing event bus"); eventBusThread.start(); - - // System.out.println("Closing executors"); - // closeExecutors(executorThreads); } private static void initZones() { diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementation.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementation.java index a146eb6..def1d72 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementation.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementation.java @@ -15,7 +15,6 @@ import java.util.Set; import java.util.regex.Pattern; import java.util.regex.Matcher; - import pl.edu.mimuw.cloudatlas.agent.messages.RequestStateMessage; import pl.edu.mimuw.cloudatlas.agent.messages.ResponseMessage; import pl.edu.mimuw.cloudatlas.agent.messages.SetAttributeMessage; diff --git a/src/test/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementationTests.java b/src/test/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementationTests.java index 6f6bd0f..6330648 100644 --- a/src/test/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementationTests.java +++ b/src/test/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementationTests.java @@ -195,24 +195,4 @@ public class NewApiImplementationTests { assertTrue(timeBefore <= timestamp); assertTrue(timestamp <= timeAfter); } - - /* - @Test - public void testSetAttributeValueAdd() throws Exception { - Value numProcesses = new ValueInt(42l); - api.setAttributeValue("/uw/khaki13", "an_attribute", numProcesses); - AttributesMap attributes = api.getZoneAttributeValues("/uw/khaki13"); - assertEquals(numProcesses, attributes.get("an_attribute")); - } - - @Test - public void testSetAttributeValueRunsQueries() throws Exception { - api.installQuery("&query", "SELECT sum(num_processes) AS num_processes"); - Value numProcesses = new ValueInt(42l); - api.setAttributeValue("/uw/khaki13", "num_processes", numProcesses); - assertAttributeInZmiEquals("num_processes", new ValueInt(297l), "/uw"); - assertAttributeInZmiEquals("num_processes", new ValueInt(437l), "/pjwstk"); - assertAttributeInZmiEquals("num_processes", new ValueInt(734l), "/"); - } - */ } |