diff options
author | Harald Musum <musum@verizonmedia.com> | 2019-05-20 21:07:55 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2019-05-20 21:07:55 +0200 |
commit | a63726b6d2b00b16cd20ebac0bcf401fb51bfc45 (patch) | |
tree | 2084881d25989727dd385779e8739d7a3753c806 /node-admin | |
parent | ec9565be17e30c2d912d522b573e23ac1aa5a4e0 (diff) |
Add removeFile as well
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java | 9 | ||||
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java index de0339a02d2..8131691affa 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/ContainerData.java @@ -18,11 +18,18 @@ public interface ContainerData { void addFile(Path pathInContainer, String data); /** + * Remove file in container at path. + * + * @param pathInContainer The path to the file inside the container, absolute or relative root /. + */ + default void removeFile(Path pathInContainer) { /* TODO: Remove this when implementing classes have been updated */ } + + /** * Symlink to a file in container at path. * * @param symlink The path to the symlink inside the container, absolute or relative root /. * @param pathInContainer The path to the file inside the container, absolute or relative root /. */ - default void createSymlink(Path symlink, Path pathInContainer) { /* TODO: Remove this when implementators have been updated */ } + default void createSymlink(Path symlink, Path pathInContainer) { /* TODO: Remove this when implementing classes have been updated */ } } diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java index 8bfce18fc44..50bf57c78ff 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java @@ -711,6 +711,11 @@ public class NodeAgentImpl implements NodeAgent { } @Override + public void removeFile(Path pathInContainer) { + throw new UnsupportedOperationException("removeFile not implemented"); + } + + @Override public void createSymlink(Path symlink, Path pathInContainer) { throw new UnsupportedOperationException("createSymlink not implemented"); } |