public class ActiveReportThreadManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CONCURRENT_THREADCOUNT |
static java.lang.String |
PROPERTY_MAXCONCURRENTRUN |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
addActiveThread(java.lang.String threadName,
java.lang.String reportName,
java.lang.String appName,
java.lang.String userName,
boolean scheduledJob) |
void |
cancelReportJob(long reportJobId) |
boolean |
cancelReportJobOnThisServer(long reportJobId) |
long |
createReportJob(UserInfo userInfo,
java.lang.String reportName,
java.lang.String appName,
java.lang.String userName,
boolean scheduledJob,
long startTime) |
static ActiveReportThreadManager |
getActiveReportThreadManager() |
int |
getMaxAllowedActiveReportThreads() |
int |
getNumberOfActiveReports() |
long |
getReportJobId(java.lang.String threadName) |
boolean |
isOverloaded() |
boolean |
isReportJobCancelled(long reportJobId) |
void |
removeActiveThread(java.lang.String threadName) |
void |
removeReportJob(UserInfo userInfo,
long reportJobId) |
void |
renewActiveThread(java.lang.String threadName) |
void |
updateActiveThread(java.lang.String threadName,
java.lang.String reportName,
java.lang.String appName,
java.lang.String userName,
boolean scheduledJob,
long scheduleJobId) |
public static final int DEFAULT_MAX_CONCURRENT_THREADCOUNT
public static final java.lang.String PROPERTY_MAXCONCURRENTRUN
public static ActiveReportThreadManager getActiveReportThreadManager()
public java.lang.Long addActiveThread(java.lang.String threadName, java.lang.String reportName, java.lang.String appName, java.lang.String userName, boolean scheduledJob)
public long createReportJob(UserInfo userInfo, java.lang.String reportName, java.lang.String appName, java.lang.String userName, boolean scheduledJob, long startTime) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public long getReportJobId(java.lang.String threadName)
public void removeActiveThread(java.lang.String threadName)
public void removeReportJob(UserInfo userInfo, long reportJobId) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void cancelReportJob(long reportJobId)
public boolean cancelReportJobOnThisServer(long reportJobId)
public boolean isReportJobCancelled(long reportJobId)
public void renewActiveThread(java.lang.String threadName)
public void updateActiveThread(java.lang.String threadName, java.lang.String reportName, java.lang.String appName, java.lang.String userName, boolean scheduledJob, long scheduleJobId)
public boolean isOverloaded()
public int getMaxAllowedActiveReportThreads()
public int getNumberOfActiveReports()