public class Users extends Object
Users represents and manages all users contacting to a worker.| Modifier and Type | Field and Description |
|---|---|
static int |
sCHECKPOINT_USER_ID |
static int |
sDATASERVER_USER_ID |
| Constructor and Description |
|---|
Users(String userfolder,
String userUnderfsFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOwnBytes(long userId,
long newBytes) |
List<Long> |
checkStatus()
Check the status of the users pool.
|
String |
getUserTempFolder(long userId) |
String |
getUserUnderfsTempFolder(long userId) |
long |
ownBytes(long userId)
Get how much space quote does a user own.
|
long |
removeUser(long userId)
Remove
userId from user pool. |
void |
userHeartbeat(long userId) |
public static final int sDATASERVER_USER_ID
public static final int sCHECKPOINT_USER_ID
public void addOwnBytes(long userId,
long newBytes)
public long ownBytes(long userId)
userId - The queried user.public List<Long> checkStatus()
public String getUserTempFolder(long userId)
public String getUserUnderfsTempFolder(long userId)
public long removeUser(long userId)
userId from user pool.userId - The user to be removed.public void userHeartbeat(long userId)
Copyright © 2014. All rights reserved.