com.mindtree.techworks.insight.preferences.util
Class PreferenceInterpreter

java.lang.Object
  extended by com.mindtree.techworks.insight.preferences.util.PreferenceInterpreter

public class PreferenceInterpreter
extends java.lang.Object

The PreferenceInterpreter class is a utility that has static methods to interpret Preference instances and return data relevant to the client using the preference

Version:
1.0, 05/03/30
Author:
Regunath B

Constructor Summary
PreferenceInterpreter()
           
 
Method Summary
static int getCachePageSize()
          Returns the configured cache page size of the default value defined in InsightConstants if no configuration is defined
static int[] getConfiguredColumnsForDisplay()
          Returns an array of column identifiers for the event list display Presentation.
static java.util.List getFTPFilesets()
          Loads and returns all the FTP filesets configured under:
static java.util.List getHttpFilesets()
          Loads and returns all the HTTP filesets configured under:
static java.util.List getLocalFilesets()
          Loads and returns all the Local filesets configured under
static int getPreferredFilesetType()
          Returns the preferred fileset type to be displayed.
static ProxyInfo getProxyInfo()
          Loads the proxy information from the preferences and returns that as a ProxyInfo object.
static int getRemoteProtocolListenerPort()
          Loads the default port value for the Remote Protocol Listener.
static java.util.List getSFTPFilesets()
          Loads and returns all the SFTP filesets configured under:
static boolean getShowFilesetOnLoad()
          Returns the preference for displaying filesets on load
static boolean getTailingStatus()
          Loads the tailing option information from the preferences and returns that as a booelan.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceInterpreter

public PreferenceInterpreter()
Method Detail

getConfiguredColumnsForDisplay

public static int[] getConfiguredColumnsForDisplay()
Returns an array of column identifiers for the event list display Presentation. The colum ids are valid constants defined in LogEventTableModel

Returns:
int array containing valid table column identifiers
See Also:
LogEventTableModel

getShowFilesetOnLoad

public static boolean getShowFilesetOnLoad()
Returns the preference for displaying filesets on load

Returns:
true if configured filesets need to be shown, false otherwise

getPreferredFilesetType

public static int getPreferredFilesetType()
Returns the preferred fileset type to be displayed. This information is read from
 fileset_filesetType
 

Returns:
A number identifying the preferred fileset type.

getLocalFilesets

public static java.util.List getLocalFilesets()
Loads and returns all the Local filesets configured under
 fileset$local
 

Returns:
A list of Fileset objects.

getFTPFilesets

public static java.util.List getFTPFilesets()
Loads and returns all the FTP filesets configured under:
 fileset$ftpfiles
 

Returns:
A list of FTPFileset objects.

getSFTPFilesets

public static java.util.List getSFTPFilesets()
Loads and returns all the SFTP filesets configured under:
 fileset$sftpfiles
 

Returns:
A list of SFTPFileset objects.

getHttpFilesets

public static java.util.List getHttpFilesets()
Loads and returns all the HTTP filesets configured under:
 fileset$remote
 

Returns:
A list of FTPFileset objects.

getProxyInfo

public static ProxyInfo getProxyInfo()
Loads the proxy information from the preferences and returns that as a ProxyInfo object.

Returns:
ProxyInfo object containing proxy information.

getTailingStatus

public static boolean getTailingStatus()
Loads the tailing option information from the preferences and returns that as a booelan.

Returns:
boolean value representing the tailing information which is being persisted as part of preferences.

getRemoteProtocolListenerPort

public static int getRemoteProtocolListenerPort()
Loads the default port value for the Remote Protocol Listener. If the preference cannot be found or it does not contain an integer value, the default value is returned.

Returns:
The value on which the listener will linked.

getCachePageSize

public static int getCachePageSize()
Returns the configured cache page size of the default value defined in InsightConstants if no configuration is defined

Returns:
the configured page size or the default value


Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.