You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by yu...@apache.org on 2017/01/12 10:19:34 UTC
reef git commit: [REEF-1698] implement FileResource.toString()
Repository: reef
Updated Branches:
refs/heads/master 3b5a60a6c -> 6ebeff444
[REEF-1698] implement FileResource.toString()
Add `.toString()` method to the `FileResourceImpl` class
JIRA: [REEF-1698](https://issues.apache.org/jira/browse/REEF-1698)
Closes PR #1214
Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/6ebeff44
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/6ebeff44
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/6ebeff44
Branch: refs/heads/master
Commit: 6ebeff4441ce3e39cdbeefb6c1bfd9ec0aa80726
Parents: 3b5a60a
Author: Sergiy Matusevych <mo...@apache.org>
Authored: Wed Jan 11 17:52:38 2017 -0800
Committer: Yunseong Lee <yu...@apache.org>
Committed: Thu Jan 12 19:18:02 2017 +0900
----------------------------------------------------------------------
.../org/apache/reef/runtime/common/files/FileResourceImpl.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/reef/blob/6ebeff44/lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/FileResourceImpl.java
----------------------------------------------------------------------
diff --git a/lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/FileResourceImpl.java b/lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/FileResourceImpl.java
index d691ce2..35f103e 100644
--- a/lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/FileResourceImpl.java
+++ b/lang/java/reef-common/src/main/java/org/apache/reef/runtime/common/files/FileResourceImpl.java
@@ -50,6 +50,11 @@ public final class FileResourceImpl implements FileResource {
return path;
}
+ @Override
+ public String toString() {
+ return String.format("FileResource: {%s:%s=%s}", this.name, this.type, this.path);
+ }
+
public static Builder newBuilder() {
return new Builder();
}