Skip to content

Commit

Permalink
Rename ClientDependencyInfo -> DependencyInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
gpang committed Aug 12, 2015
1 parent 4197db9 commit 3f52f38
Show file tree
Hide file tree
Showing 30 changed files with 95 additions and 95 deletions.
8 changes: 4 additions & 4 deletions clients/unshaded/src/main/java/tachyon/client/TachyonFS.java
Expand Up @@ -38,7 +38,7 @@
import tachyon.client.table.RawTable; import tachyon.client.table.RawTable;
import tachyon.conf.TachyonConf; import tachyon.conf.TachyonConf;
import tachyon.master.MasterClient; import tachyon.master.MasterClient;
import tachyon.thrift.ClientDependencyInfo; import tachyon.thrift.DependencyInfo;
import tachyon.thrift.FileInfo; import tachyon.thrift.FileInfo;
import tachyon.thrift.RawTableInfo; import tachyon.thrift.RawTableInfo;
import tachyon.thrift.ClientWorkerInfo; import tachyon.thrift.ClientWorkerInfo;
Expand Down Expand Up @@ -448,13 +448,13 @@ synchronized FileBlockInfo getClientBlockInfo(long blockId) throws IOException {
} }


/** /**
* Get a ClientDependencyInfo by the dependency id * Get a DependencyInfo by the dependency id
* *
* @param depId the dependency id * @param depId the dependency id
* @return the ClientDependencyInfo of the specified dependency * @return the DependencyInfo of the specified dependency
* @throws IOException * @throws IOException
*/ */
public synchronized ClientDependencyInfo getClientDependencyInfo(int depId) throws IOException { public synchronized DependencyInfo getClientDependencyInfo(int depId) throws IOException {
return mMasterClient.getClientDependencyInfo(depId); return mMasterClient.getClientDependencyInfo(depId);
} }


Expand Down
Expand Up @@ -41,7 +41,7 @@
import tachyon.client.UfsUtils; import tachyon.client.UfsUtils;
import tachyon.client.WriteType; import tachyon.client.WriteType;
import tachyon.conf.TachyonConf; import tachyon.conf.TachyonConf;
import tachyon.thrift.ClientDependencyInfo; import tachyon.thrift.DependencyInfo;
import tachyon.thrift.FileInfo; import tachyon.thrift.FileInfo;
import tachyon.thrift.FileBlockInfo; import tachyon.thrift.FileBlockInfo;
import tachyon.thrift.NetAddress; import tachyon.thrift.NetAddress;
Expand Down Expand Up @@ -148,7 +148,7 @@ public FSDataOutputStream create(Path cPath, FsPermission permission, boolean ov
depPath = path.getPath(); depPath = path.getPath();
depPath = depPath.substring(depPath.indexOf("part-") + 5); depPath = depPath.substring(depPath.indexOf("part-") + 5);
int index = Integer.parseInt(depPath); int index = Integer.parseInt(depPath);
ClientDependencyInfo info = mTFS.getClientDependencyInfo(depId); DependencyInfo info = mTFS.getClientDependencyInfo(depId);
int fileId = info.getChildren().get(index); int fileId = info.getChildren().get(index);
LOG.info("create(" + cPath + ") : " + depPath + " " + index + " " + info + " " + fileId); LOG.info("create(" + cPath + ") : " + depPath + " " + index + " " + info + " " + fileId);


Expand All @@ -168,7 +168,7 @@ public FSDataOutputStream create(Path cPath, FsPermission permission, boolean ov
depPath = path.getPath(); depPath = path.getPath();
depPath = depPath.substring(depPath.indexOf("part-") + 5); depPath = depPath.substring(depPath.indexOf("part-") + 5);
int index = Integer.parseInt(depPath); int index = Integer.parseInt(depPath);
ClientDependencyInfo info = mTFS.getClientDependencyInfo(depId); DependencyInfo info = mTFS.getClientDependencyInfo(depId);
int fileId = info.getChildren().get(index); int fileId = info.getChildren().get(index);
LOG.info("create(" + cPath + ") : " + depPath + " " + index + " " + info + " " + fileId); LOG.info("create(" + cPath + ") : " + depPath + " " + index + " " + info + " " + fileId);


Expand Down
6 changes: 3 additions & 3 deletions common/src/main/java/tachyon/master/MasterClient.java
Expand Up @@ -48,7 +48,7 @@
import tachyon.retry.ExponentialBackoffRetry; import tachyon.retry.ExponentialBackoffRetry;
import tachyon.retry.RetryPolicy; import tachyon.retry.RetryPolicy;
import tachyon.thrift.BlockInfoException; import tachyon.thrift.BlockInfoException;
import tachyon.thrift.ClientDependencyInfo; import tachyon.thrift.DependencyInfo;
import tachyon.thrift.FileInfo; import tachyon.thrift.FileInfo;
import tachyon.thrift.RawTableInfo; import tachyon.thrift.RawTableInfo;
import tachyon.thrift.ClientWorkerInfo; import tachyon.thrift.ClientWorkerInfo;
Expand Down Expand Up @@ -228,10 +228,10 @@ public synchronized void connect() throws IOException {
* Get the client dependency info from master server. * Get the client dependency info from master server.
* *
* @param did Dependency id. * @param did Dependency id.
* @return ClientDependencyInfo returned from master * @return DependencyInfo returned from master
* @throws IOException * @throws IOException
*/ */
public synchronized ClientDependencyInfo getClientDependencyInfo(int did) throws IOException { public synchronized DependencyInfo getClientDependencyInfo(int did) throws IOException {
while (!mIsClosed) { while (!mIsClosed) {
connect(); connect();


Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/src/main/java/tachyon/thrift/ClientWorkerInfo.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/src/main/java/tachyon/thrift/Command.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/src/main/java/tachyon/thrift/FileBlockInfo.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/src/main/java/tachyon/thrift/FileInfo.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f52f38

Please sign in to comment.