void setDataNodeInfo(DataNodeInfo info) { this.storageType = info.getStorageType(); this.storageClass = info.getStorageClass(); this.locationClass = info.getLocationClass(); for (int i = 0; i < ipAddress.length; i++){ this.ipAddress[i] = info.getIpAddress()[i]; } this.port = info.getPort(); }
public CreateFileReq(){ this.filename = new FileName(); this.type = CrailNodeType.DATAFILE; this.storageClass = 0; this.locationClass = 0; }
public void setFileBlock(BlockInfo blockInfo){ if (blockInfo != null){ this.fileBlock.setBlockInfo(blockInfo); } }
public void setFileInfo(FileInfo fileInfo) { if (fileInfo != null){ this.fileInfo.setFileInfo(fileInfo); this.shipToken = false; } }
public void setFileBlock(BlockInfo blockInfo){ if (blockInfo != null){ fileBlock.setBlockInfo(blockInfo); } }
public void setParentInfo(FileInfo parentInfo) { if (parentInfo != null){ this.parentInfo.setFileInfo(parentInfo); } }
public void setSrcParent(FileInfo srcParent) { if (srcParent != null){ this.srcParent.setFileInfo(srcParent); } }
public void setDstParent(FileInfo dstParent) { if (dstParent != null){ this.dstParent.setFileInfo(dstParent); } }
public void setFileInfo(FileInfo fileInfo) { if (fileInfo != null){ this.fileInfo.setFileInfo(fileInfo); } }
public void setFileInfo(FileInfo fileInfo) { if (fileInfo != null){ this.fileInfo.setFileInfo(fileInfo); this.shipToken = false; } }
public void setSrcFile(FileInfo srcFile) { if (srcFile != null){ this.srcFile.setFileInfo(srcFile); } }
public void setParentInfo(FileInfo parentInfo) { if (parentInfo != null){ this.parentInfo.setFileInfo(parentInfo); } }