|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides metrics and administration for the Crystal Reports Cache Server. It stores information about the maximum processing threads, the maximum cache size, the minutes before an idle job is closed, the location of the cache files, the total threads running, the number of requests served, the number of bytes transferred, the cache hit rate, the number of current connections, and the number of requests that are queued. You can also retrieve the collection of Crystal Reports Page Servers that the Crystal Reports Cache Server has connections to, and the number of connections made to the Page Server(s). This interface allows you to set the directory for the Crystal Reports Cache Server, the maximum idle time before a job is closed, and the maximum number of simultaneous processing threads allowed by the Crystal Reports Cache Server.
| Method Summary | |
int |
getCacheSize()
Returns the current cache size in KB. |
int |
getCacheSizeUpdate()
Returns the cache size in KB. |
long |
getDriveSpaceUsed()
Returns the amount of disk space, in KB, used by the Crystal Reports Cache Server. |
double |
getHitRate()
Returns the rate at which requests can be fulfilled by the Crystal Reports Cache Server's cache. |
IPageServerConnection[] |
getPageServerConnection()
Returns the collection of Crystal Reports Page Servers connected to the current Crystal Reports Cache Server. |
int |
getRefresh()
Returns the amount of time in minutes before a shareable report will refresh from the database. |
int |
getRefreshUpdate()
Returns the amount of time in minutes before a shareable report will refresh from the database. |
boolean |
isDbAlwaysHitOnRefresh()
Returns whether or not a request to refresh the report from the viewer will always hit the database. |
boolean |
isDbAlwaysHitOnRefreshUpdate()
Returns whether or not a request to refresh the report from the viewer will always hit the database. |
void |
setCacheSizeUpdate(int n)
Sets the cache size in KB. |
void |
setDbAlwaysHitOnRefreshUpdate(boolean s)
Sets whether or not a request to refresh the report from the viewer will always hit the database. |
void |
setRefreshUpdate(int n)
Sets the amount of time in minutes before a shareable report will refresh from the database. |
| Methods inherited from interface com.crystaldecisions.sdk.plugin.admin.cachepageserveradmin.IPageServerAdmin |
commit, getBytesTransferred, getConnections, getDBRecordNum, getDBRecordNumUpdate, getDirectory, getDirectoryUpdate, getMaxIdleTime, getMaxIdleTimeUpdate, getMaxProcessingTime, getMaxProcessingTimeUpdate, getMaxThreads, getMaxThreadsUpdate, getQueuedRequests, getServerLoad, getThreads, getTotalRequests, isAutomaticDBDisconnect, isAutomaticDBDisconnectUpdate, isRefreshAlwaysHitsDB, isRefreshAlwaysHitsDBUpdate, setAutomaticDBDisconnectUpdate, setDBRecordNumUpdate, setDirectoryUpdate, setMaxIdleTimeUpdate, setMaxProcessingTimeUpdate, setMaxThreadsUpdate, setRefreshAlwaysHitsDBUpdate |
| Method Detail |
public int getCacheSizeUpdate()
throws SDKException
Returns the cache size in KB.
int specifying the cache size in KB.
SDKException - This is thrown if the process is unsuccessful.
public void setCacheSizeUpdate(int n)
throws SDKException
Sets the cache size in KB. This will take effect once the Crystal Reports Cache Server is restarted.
n - An int specifying the new cache size in KB.
SDKException - This is thrown if the process is unsuccessful.
public int getRefreshUpdate()
throws SDKException
Returns the amount of time in minutes before a shareable report will refresh from the database. This returns the value that will take effect once the Crystal Reports Cache Server is restarted.
getRefreshUpdate in interface IPageServerAdminint specifying the amount of time in minutes before a shareable report
will refresh from the database.
SDKException - This is thrown if the process is unsuccessful.
public void setRefreshUpdate(int n)
throws SDKException
Sets the amount of time in minutes before a shareable report will refresh from the database. This will take effect once the Crystal Reports Cache Server is restarted.
setRefreshUpdate in interface IPageServerAdminn - An int specifying the amount of time in minutes before a shareable
report will refresh from the database.
SDKException - This is thrown if the process is unsuccessful.
public boolean isDbAlwaysHitOnRefreshUpdate()
throws SDKException
Returns whether or not a request to refresh the report from the viewer will always hit the database. This returns the value that will take effect once the Crystal Reports Cache Server is restarted.
boolean specifying whether or not a request to refresh the report
from the viewer will always hit the database.
SDKException - This is thrown if the process is unsuccessful.
public void setDbAlwaysHitOnRefreshUpdate(boolean s)
throws SDKException
Sets whether or not a request to refresh the report from the viewer will always hit the database. This will take effect once the Crystal Reports Cache Server is restarted.
s - A boolean specifying whether or not a request to refresh the report
from the viewer will always hit the database. This will either be true or
false.
SDKException - This is thrown if the process is unsuccessful.
public int getCacheSize()
throws SDKException
Returns the current cache size in KB.
int specifying the current cache size in KB.
SDKException - This is thrown if the process is unsuccessful.
public int getRefresh()
throws SDKException
Returns the amount of time in minutes before a shareable report will refresh from the database.
getRefresh in interface IPageServerAdminint specifying the amount of time in minutes before a shareable report
will refresh from the database.
SDKException - This is thrown if the process is unsuccessful.
public boolean isDbAlwaysHitOnRefresh()
throws SDKException
Returns whether or not a request to refresh the report from the viewer will always hit the database.
boolean specifying whether or not a request to refresh the report from
the viewer will always hit the database.
SDKException - This is thrown if the process is unsuccessful.
public long getDriveSpaceUsed()
throws SDKException
Returns the amount of disk space, in KB, used by the Crystal Reports Cache Server.
long specifying the amount of disk space, in KB, used by the
Crystal Reports Cache Server.
SDKException - This is thrown if the process is unsuccessful.
public double getHitRate()
throws SDKException
Returns the rate at which requests can be fulfilled by the Crystal Reports Cache Server's cache.
double specifying the rate at which requests can be fulfilled by
the Crystal Reports Cache Server's cache.
SDKException - This is thrown if the process is unsuccessful.
public IPageServerConnection[] getPageServerConnection()
throws SDKException
Returns the collection of Crystal Reports Page Servers connected to the current Crystal Reports Cache Server.
SDKException - This is thrown if the process is unsuccessful.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||