java.lang.Object | ||||||
↳ | com.microstrategy.web.transform.AbstractTransform | |||||
↳ | com.microstrategy.web.transform.AbstractLayoutTransform | |||||
↳ | com.microstrategy.web.app.transforms.AbstractAppTransform | |||||
↳ | com.microstrategy.web.admin.transforms.AbstractAdminTransform | |||||
↳ | com.microstrategy.web.admin.transforms.AbstractDiagnosticsTransform | |||||
↳ | com.microstrategy.web.admin.transforms.DiagnosticsViewerTransform |
Title DiagnosticsViewerTransform This class is used to view diagnostic log contents which are applicable to all servers
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DiagnosticsViewerTransform()
Class constructor, initializes formal parameters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getDescription()
Returns the description of this transform
| ||||||||||
void |
initializeCss()
Initializes the Css Classes to use.
| ||||||||||
void |
renderDateComboBoxes(MarkupOutput out, LocaleInfo locale, String label, String paramDay, String paramMonth, String paramYear, int day, int month, int year, boolean hasError)
Display the requested date combo box inside two TD cells (therefore, the parent TR and TABLE
should be already opened).
| ||||||||||
void |
renderDateViewingOptionsRow(MarkupOutput out, WebEvent applyEvent)
Append to the MarkupOutput the rows and cells with the TO and FROM information
for filtering the log contents.
| ||||||||||
void |
renderDiagnosticOutput(MarkupOutput out)
Generates the graphical output for the DiagnosticsBean, which for this transform's definition,
will consist on an option box for the user to select which information s/he wants to read,
plus a list of the logs recorded that are within the search parameters specified.
| ||||||||||
void |
renderDisplayViewingOptionsRow(MarkupOutput out, WebEvent applyEvent)
Show the options for viewing the log: which type of messages to see and
from which date to which.
| ||||||||||
void |
renderFormHiddenInputs(MarkupOutput out, WebEvent applyEvent, WebEvent loadDefaults)
Add to the global output any hidden inputs that should be rendered for the
proper functionality of the form
| ||||||||||
void |
renderIncrementalFetch(MarkupOutput out, int pageNumber, int low, int up, int total, int pageSize)
Add the incremental fetch information given the information passed as parameters
| ||||||||||
boolean |
renderLogFile(MarkupOutput out, DOMSupport domSupport, Document errorsXML)
Show the log file contents, according to the specified filters and sorting
| ||||||||||
void |
renderViewerError(MarkupOutput out, String message)
Display any error message found while processing the log files
| ||||||||||
void |
renderViewerOptions(MarkupOutput out, WebEvent applyEvent, WebEvent loadDefaultsEvent, DiagnosticsBean bean)
Render the interface that shows the user the different options for viewing the log
contents: type of logs and dates to cover.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnchorTag |
generateAnchor(WebEvent event)
Overwrites the parent method by setting the typical url information on the link (thus
disabling any default onclick definition)
| ||||||||||
WebEvent |
getApplyDiagnosticsEvent(DiagnosticsBean bean)
Generate the event that will be used for applying or saving the diagnostics configuration
specified on the form.
| ||||||||||
WebEvent |
getSortEvent(DiagnosticsBean bean)
Get the event to use for sorting the contents of the diagnostics file.
| ||||||||||
String |
getSortImage(int sort)
This method is deprecated.
This method is no longer used. Use CSS classes via getSortImageCss(int sort)
| ||||||||||
String |
getSortImageCss(int sort)
Get the image css to render based on the current sort mode.
| ||||||||||
String |
getTitle()
Returns the title for the interface to display
| ||||||||||
void |
setSortOrderEvent(WebEvent event, int sortOrder)
Sets the event to execute the indicated sort if requested.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Class constructor, initializes formal parameters.
Returns the description of this transform
Initializes the Css Classes to use. For each one of the css classes to use, the prefix indicated on the formal parameter is added to the name of the class to use.
Display the requested date combo box inside two TD cells (therefore, the parent TR and TABLE should be already opened).
out | MarkupOutput instance to modify |
---|---|
locale | LocaleInfo instance, for getting the mm-dd-yy format (default) |
label | The label to display next to the combo boxes |
paramDay | name of the day parameter |
paramMonth | name of the month parameter |
paramYear | name of the year parameter |
day | current day |
month | current month |
year | current year |
hasError | boolean value indicating if the information to render has an error |
Append to the MarkupOutput the rows and cells with the TO and FROM information
for filtering the log contents.
The contents generated by this method are inside several TR tags with two columns, therefore
the parent TABLE should be already opened. By default the caller renderViewerOptions()
takes care of it.
out | the MarkupOutput to modify |
---|---|
applyEvent | WebEvent instance with the information for applying
the options displayed here
|
Generates the graphical output for the DiagnosticsBean, which for this transform's definition, will consist on an option box for the user to select which information s/he wants to read, plus a list of the logs recorded that are within the search parameters specified.
out | MarkupOutput instance where to create the HTML output
|
---|
Show the options for viewing the log: which type of messages to see and
from which date to which.
The contents generated by this method are inside several TR tags with two columns, therefore
the parent TABLE should be already opened. By default the caller renderViewerOptions()
takes care of it.
out | MarkupOutput instance that contains the HTML to display |
---|---|
applyEvent | WebEvent instance with the information for applying
the options displayed here
|
Add to the global output any hidden inputs that should be rendered for the proper functionality of the form
out | MarkupOutput instance where the HTML contents are to be saved. |
---|---|
applyEvent | WebEvent for applying the changes indicated on the form |
loadDefaults | WebEvent for loading the default values on the form
|
Add the incremental fetch information given the information passed as parameters
out | MarkupOutput instance to update |
---|---|
pageNumber | number of page currently displayed |
low | Lower limit on the display |
up | Upper limit on the display |
total | Total number of records to display |
pageSize | Size of the page to display |
Show the log file contents, according to the specified filters and sorting
out | the MarkupOutput instance to modify with the HTML to be displayed |
---|---|
domSupport | DOMSupport instance for processing the
Document instance to render |
errorsXML | Document instance with the logging information to render to the user |
True
if the execution of the method ended in error (therefore the out
parameter contains the error message, not the log display). False
if no errors happened.
Display any error message found while processing the log files
out | MarkupOutput instance |
---|---|
message | string with message to show to the user |
Render the interface that shows the user the different options for viewing the log contents: type of logs and dates to cover.
out | MarkupOutput instance where the HTML to render is to be saved |
---|---|
applyEvent | WebEvent used for submitting the form changes |
loadDefaultsEvent | WebEvent used for loading the default values on the form |
bean | DiagnosticsBean instance being transformed
|
Overwrites the parent method by setting the typical url information on the link (thus disabling any default onclick definition)
event | WebEvent base information for the link |
---|
AnchorTag
instance initializedGenerate the event that will be used for applying or saving the diagnostics configuration specified on the form. Overwrites the original method for generating one that will make the log files from the selected date to be loaded.
bean | DiagnosticsBean being transformed |
---|
WebEvent
with the corresponding event, null
if the application
does not support it.
Get the event to use for sorting the contents of the diagnostics file.
bean | DiagnosticsBean currently being transformed. |
---|
WebEvent
initialized with the event, but without specifying which
sorting will be executed if requested.
This method is deprecated.
This method is no longer used. Use CSS classes via getSortImageCss(int sort)
Get the image to render based on the current sort mode.
sort | int value indicating the type of sorting. For example:
SORT_BY_LEVEL_DESCENDING , SORT_BY_TIMESTAMP_DESCENDING , etc. |
---|
Get the image css to render based on the current sort mode.
sort | int value indicating the type of sorting. For example:
SORT_BY_LEVEL_DESCENDING , SORT_BY_TIMESTAMP_DESCENDING , etc. |
---|
Returns the title for the interface to display
Sets the event to execute the indicated sort if requested.
event | a not-null WebEvent instance, where to set the
sort order requested |
---|---|
sortOrder | int indicating the sort order to request if
the event is called. Valid values include SORT_BY_TIMESTAMP_DESCENDING , etc.
|