@PublicAPI public abstract class UserIdentification extends Object implements Serializable, Comparable<UserIdentification>
Modifier and Type | Field and Description |
---|---|
static int |
ASC_ORDER |
static int |
DESC_ORDER |
static int |
SORT_BY_CONNECTION |
static int |
SORT_BY_HOST |
static int |
SORT_BY_LASTSUBMIT |
static int |
SORT_BY_NAME
Value for
|
static int |
SORT_BY_SUBMIT |
protected boolean |
toRemove |
Constructor and Description |
---|
UserIdentification() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UserIdentification user) |
abstract long |
getConnectionTime()
Get the time of the connection of this user.
|
abstract Set<String> |
getGroups()
To get the groups associated with this user name
|
abstract String |
getHostName()
Get the host name of this user.
|
abstract long |
getLastSubmitTime()
Get the last time this user has submit a job.
|
abstract TimerTask |
getSession()
Get the session for this user (timer task)
|
abstract int |
getSubmitNumber()
Get the number of submit for this user.
|
abstract String |
getUsername()
To get the user name
|
abstract boolean |
isMyEventsOnly()
Get the myEventsOnly.
|
boolean |
isToRemove()
Returns true if this user has to be removed, false if not.
|
static void |
setSortingBy(int sortBy)
Set the field to sort on.
|
static void |
setSortingOrder(int order)
Set the order for the next sort.
|
public static final int SORT_BY_NAME
public static final int SORT_BY_SUBMIT
public static final int SORT_BY_HOST
public static final int SORT_BY_CONNECTION
public static final int SORT_BY_LASTSUBMIT
public static final int ASC_ORDER
public static final int DESC_ORDER
protected boolean toRemove
public abstract String getUsername()
public abstract Set<String> getGroups()
public abstract int getSubmitNumber()
public abstract String getHostName()
public abstract long getConnectionTime()
public abstract long getLastSubmitTime()
public abstract boolean isMyEventsOnly()
public abstract TimerTask getSession()
public static void setSortingBy(int sortBy)
sortBy
- the field on which the sort will be made.public static void setSortingOrder(int order)
order
- the new order to set.public int compareTo(UserIdentification user)
compareTo
in interface Comparable<UserIdentification>
user
- The user to compare to this user.Comparable.compareTo(java.lang.Object)
public boolean isToRemove()