Constructor and Description |
---|
Category(APIConnection connection,
org.json.simple.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Category other) |
boolean |
equals(java.lang.Object o) |
java.util.List<Category> |
getChildren()
Returns a list of categories that are direct children of this category
|
int |
getDepth()
Returns the depth of this category in the site tree.
|
java.util.Date |
getFirstEntered()
Returns the first time a thread entered this category
|
long |
getId()
Returns the ID of the category
|
java.util.Date |
getLastEntry()
Returns the last time this category was entered.
|
java.util.Date |
getLastSuccessfulEntryAndExit()
Returns the last time this category was entered and exited successfully.
|
java.util.Date |
getLastSuccessfulExit()
Returns the last time this category was exited successfully.
|
java.util.Date |
getLastUpdated()
Returns the last time this category was updated
|
java.lang.String |
getName()
Returns the name of this category
|
java.lang.Long |
getParentId()
Returns the id of the parent category, or null if this category has no parent
|
java.util.Date |
getPreviousLastEntry()
Returns the last time this category was entered prior to the most recent entry.
|
java.util.Date |
getPreviousLastSuccessfulExit()
Returns the last time this category was exited successfully prior to the most recent successful exit.
|
int |
getRecords()
Returns the number of records found in this category
|
Site |
getSite()
Returns the site this category is part of
|
long |
getSiteId()
Returns the id of the site
|
RunState |
getStatus()
Returns the current status of this category
|
int |
getThreadCount()
Returns the number of threads in this category.
|
java.util.Collection<ExecutionThread> |
getThreads()
Returns a list of threads that are currently running in this category
|
int |
hashCode() |
Category(APIConnection connection, @NotNull org.json.simple.JSONObject json)
@Nullable public java.util.Date getLastEntry()
@Nullable public java.util.Date getPreviousLastEntry()
@Nullable public java.util.Date getLastSuccessfulExit()
@Nullable public java.util.Date getPreviousLastSuccessfulExit()
@Nullable public java.util.Date getLastSuccessfulEntryAndExit()
public java.util.List<Category> getChildren()
public java.util.Collection<ExecutionThread> getThreads()
public java.util.Date getFirstEntered()
public java.util.Date getLastUpdated()
public long getId()
@Nullable public java.lang.Long getParentId()
public java.lang.String getName()
public int getDepth()
public RunState getStatus()
public int getThreadCount()
public int getRecords()
@Nullable public Site getSite()
public long getSiteId()
public int compareTo(Category other)
compareTo
in interface java.lang.Comparable<Category>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object