com.plumtree.portalpages.admin.serversettings.search
Class SearchServerSettingsPopUpView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.portalpages.admin.serversettings.search.SearchServerSettingsPopUpView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class SearchServerSettingsPopUpView
extends EditorView

Section class to display search server status in a popup window. Typically there is one search server used as the "query host" and "index host", and the view will show uptime and other information from that server, or an error message if we fail to connect.

Less typically, there will be separate servers configured for query, index, and failover host, and this view shows status info for each server in that case.

Author:
OlegS

Field Summary
static java.lang.String HTMLBUTTON_CLOSE
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_asOwner, m_model, SPACE
 
Constructor Summary
SearchServerSettingsPopUpView()
           
 
Method Summary
static void AddSearchServerStatusHTML(HTMLElementCollection _result, HTMLTable _currentTable, ISearchServerSettingsEditorModelRO _model, AActivitySpace _asOwner)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          Display html for the search status info.
protected static void DisplayClusterStatus(HTMLElementCollection result, HTMLTable myTable, java.lang.String title, SearchClusterStatusInfo statusInfo, AActivitySpace _asOwner)
          Display a single property bag's worth of status info.
protected  void DisplayEmptyRow(HTMLElementCollection result, HTMLTable myTable)
           
protected static void DisplayMultiLineStatusEntry(HTMLElementCollection result, HTMLTable myTable, java.lang.String name, java.lang.String[] values, PTStyleClass _styleListItem, PTStyleClass _styleItemText)
           
protected static void DisplayStatus(HTMLElementCollection result, HTMLTable myTable, java.lang.String title, java.lang.String host, java.lang.String port, SearchServerStatusInfo statusInfo, AActivitySpace _asOwner)
          Display a single property bag's worth of status info.
protected static void DisplayStatusEntry(HTMLElementCollection result, HTMLTable myTable, java.lang.String name, java.lang.String value, PTStyleClass _styleListItem)
           
protected static PTStyleClass flipRowStyle(PTStyleClass _styleListItem)
           
protected  ISearchServerSettingsEditorModelRO GetModel()
           
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorView
AddEmptyCellToRow, AddEmptyCellToRow, AddEmptyRowToTable, AddEmptyRowToTable, DisplayJavascript, GetHeaderView, GetHeaderViewHelper, GetShortSpacerTable, GetSpacerTable, Init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values

HTMLBUTTON_CLOSE

public static final java.lang.String HTMLBUTTON_CLOSE
See Also:
Constant Field Values
Constructor Detail

SearchServerSettingsPopUpView

public SearchServerSettingsPopUpView()
Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorView
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class EditorView
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Display

public HTMLElement Display()
Display html for the search status info.

Specified by:
Display in interface IView
Specified by:
Display in class EditorView
Returns:
HTMLElement

AddSearchServerStatusHTML

public static void AddSearchServerStatusHTML(HTMLElementCollection _result,
                                             HTMLTable _currentTable,
                                             ISearchServerSettingsEditorModelRO _model,
                                             AActivitySpace _asOwner)

GetName

public java.lang.String GetName()
Description copied from class: EditorView
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:

GetModel

protected ISearchServerSettingsEditorModelRO GetModel()
Returns:

DisplayEmptyRow

protected void DisplayEmptyRow(HTMLElementCollection result,
                               HTMLTable myTable)
Parameters:
result -
myTable -
Throws:
HTMLException

DisplayStatus

protected static void DisplayStatus(HTMLElementCollection result,
                                    HTMLTable myTable,
                                    java.lang.String title,
                                    java.lang.String host,
                                    java.lang.String port,
                                    SearchServerStatusInfo statusInfo,
                                    AActivitySpace _asOwner)
Display a single property bag's worth of status info. This method is called separately for query, indexing, and failover hosts.


DisplayClusterStatus

protected static void DisplayClusterStatus(HTMLElementCollection result,
                                           HTMLTable myTable,
                                           java.lang.String title,
                                           SearchClusterStatusInfo statusInfo,
                                           AActivitySpace _asOwner)
Display a single property bag's worth of status info. This method is called separately for query, indexing, and failover hosts.


DisplayStatusEntry

protected static void DisplayStatusEntry(HTMLElementCollection result,
                                         HTMLTable myTable,
                                         java.lang.String name,
                                         java.lang.String value,
                                         PTStyleClass _styleListItem)
Parameters:
result -
myTable -
name -
value -
Throws:
HTMLException

DisplayMultiLineStatusEntry

protected static void DisplayMultiLineStatusEntry(HTMLElementCollection result,
                                                  HTMLTable myTable,
                                                  java.lang.String name,
                                                  java.lang.String[] values,
                                                  PTStyleClass _styleListItem,
                                                  PTStyleClass _styleItemText)

flipRowStyle

protected static PTStyleClass flipRowStyle(PTStyleClass _styleListItem)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.