/** * Create DatanodeID * @param name (hostname:portNumber) * @param storageID data storage ID * @param infoPort info server port * @param ipcPort ipc server port */ @ThriftConstructor public DatanodeID(@ThriftField(1) String name, @ThriftField(2) String storageID, @ThriftField(3) int infoPort, @ThriftField(4) int ipcPort) { this.name = name; this.storageID = storageID; this.infoPort = infoPort; this.ipcPort = ipcPort; }
@ThriftConstructor public CloseRecoverLeaseRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo, @ThriftField(2) String src, @ThriftField(3) String clientName, @ThriftField(4) boolean discardLastBlock) { super(requestMetaInfo, src, clientName); this.discardLastBlock = discardLastBlock; }
@ThriftConstructor public LocatedBlocks(@ThriftField(1) long fileLength, @ThriftField(2) List<LocatedBlock> locatedBlocks, @ThriftField(3) boolean isUnderConstuction) { this.fileLength = fileLength; blocks = locatedBlocks; underConstruction = isUnderConstuction; }
@ThriftConstructor public LocatedBlockWithFileName(@ThriftField(1) Block block, @ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset, @ThriftField(4) boolean corrupt, @ThriftField(5) String fileName) { super(block, datanodes, startOffset, corrupt); this.fullPath = fileName; }
@ThriftConstructor public GetBlockLocationsRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo, @ThriftField(2) String src, @ThriftField(3) long offset, @ThriftField(4) long length) { super(requestMetaInfo, src); this.offset = offset; this.length = length; }
@ThriftConstructor public SetPermissionRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo, @ThriftField(2) String src, @ThriftField(3) @NotNull FsPermission permission) { super(requestMetaInfo, src); notNull(permission); this.permission = permission; }
@ThriftConstructor public LocatedBlockWithOldGS(@ThriftField(1) Block block, @ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset, @ThriftField(4) boolean corrupt, @ThriftField(5) int dataProtocolVersion, @ThriftField(6) int namespaceId, @ThriftField(7) int methodFingerPrint, @ThriftField(8) long oldGenerationStamp) { super(block, datanodes, startOffset, corrupt, dataProtocolVersion, namespaceId, methodFingerPrint); this.oldGenerationStamp = oldGenerationStamp; }
@ThriftField(1) public long getId() { return id; }
@ThriftField(2) public String getDate() { return date; }
public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException{ //ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-04"); return collection; }
public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection){ //ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-05"); return collection; }
@ThriftField(1) public String getCategory() { return category; }
@ThriftField(2) public String getMessage() { return message; }
@ThriftMethod public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException;
@ThriftMethod public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection);
@ThriftMethod(value = "Log") ListenableFuture<ResultCode> log( @ThriftField(value = 1) List<LogEntry> messages);
@ThriftConstructor public UnixUserGroupInformation(@ThriftField(1) String userName, @ThriftField(2) List<String> groups) { this(userName, groups.toArray(new String[groups.size()])); }
/** Return the user's name */ @ThriftField(1) public String getUserName() { return userName; }
@ThriftField(2) public List<String> getGroups() { return Arrays.asList(groupNames); }
@ThriftField(2) public String getSrc() { return super.getSrc(); }
@ThriftField(1) public RequestMetaInfo getRequestMetaInfo() { return super.getRequestMetaInfo(); }
/** @return the file count */ @ThriftField(2) public long getFileCount() {return fileCount;}
/** Return the directory quota */ @ThriftField(4) public long getQuota() {return quota;}
@ThriftField(2) public List<LocatedBlock> getBlocks() { return blocks; }
@ThriftField(2) public String getClientName() { return super.getClientName(); }
@ThriftField(2) public String getMsg() { return getMessage(); }
@ThriftConstructor public PingRequest(@ThriftField(1) RequestMetaInfo metaInfo) { super(metaInfo); }
@ThriftField(1) public List<HdfsFileStatus> getFileStatusList() { return Arrays.asList(partialListing); }
@ThriftConstructor public AppendRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo, @ThriftField(2) String src, @ThriftField(3) String clientName) { super(requestMetaInfo, src, clientName); }
@ThriftField(3) public short getReplication() { return replication; }
@ThriftConstructor public GetBlockInfoRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo, @ThriftField(2) long blockId) { super(requestMetaInfo); this.blockId = blockId; }