aboutsummaryrefslogtreecommitdiffstats
path: root/jrt/src/com/yahoo/jrt/Supervisor.java
diff options
context:
space:
mode:
Diffstat (limited to 'jrt/src/com/yahoo/jrt/Supervisor.java')
-rw-r--r--jrt/src/com/yahoo/jrt/Supervisor.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/jrt/src/com/yahoo/jrt/Supervisor.java b/jrt/src/com/yahoo/jrt/Supervisor.java
index 09360c2da7b..92c0208b493 100644
--- a/jrt/src/com/yahoo/jrt/Supervisor.java
+++ b/jrt/src/com/yahoo/jrt/Supervisor.java
@@ -1,7 +1,6 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jrt;
-
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicReference;
@@ -103,19 +102,6 @@ public class Supervisor {
}
/**
- * Remove a method from the set of methods held by this Supervisor
- *
- * @param methodName name of the method to remove
- **/
- public void removeMethod(String methodName) {
- synchronized (methodMapLock) {
- HashMap<String, Method> newMap = new HashMap<>(methodMap());
- newMap.remove(methodName);
- methodMap.setRelease(newMap);
- }
- }
-
- /**
* Remove a method from the set of methods held by this
* Supervisor. Use this if you know exactly which method to remove
* and not only the name.
@@ -169,23 +155,6 @@ public class Supervisor {
}
/**
- * Convenience method for connecting to a peer, invoking a method
- * and disconnecting.
- *
- * @param spec the address to connect to
- * @param req the invocation request
- * @param timeout request timeout in seconds
- **/
- public void invokeBatch(Spec spec, Request req, double timeout) {
- Target target = connect(spec);
- try {
- target.invokeSync(req, timeout);
- } finally {
- target.close();
- }
- }
-
- /**
* This method is invoked when a new target is created
*
* @param target the target