m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-03 16:51:37 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-03 16:51:37 +0100
commit6a4ac32a2bb28fb0a5781d6756fe2be3ccc3a41c (patch)
tree7be44823b24f8b4f498d7885bad4b60f1b59b333 /src
parent2b480eed536c61a5188bf671641971211269e949 (diff)
Cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/Agent.java3
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementation.java1
-rw-r--r--src/test/java/pl/edu/mimuw/cloudatlas/agent/NewApiImplementationTests.java20
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), "/");
- }
- */
}