LimeWire Consolidated API

org.limewire.core.settings
Class ApplicationSettings

java.lang.Object
  extended by org.limewire.setting.AbstractSettingsGroup
      extended by org.limewire.setting.BasicSettingsGroup
          extended by org.limewire.core.settings.LimeWireSettings
              extended by org.limewire.core.settings.LimeProps
                  extended by org.limewire.core.settings.ApplicationSettings
All Implemented Interfaces:
SettingsGroup

public class ApplicationSettings
extends LimeProps

Settings for LimeWire application


Field Summary
static BooleanSetting AUTOMATIC_MANUAL_GC
          Setting for whether or not to create an additional manual GC thread.
static LongSetting AVERAGE_CONNECTION_TIME
          The average time this user is connected to the network per session (in seconds).
static LongSetting AVERAGE_UPTIME
          The average time this user leaves the application running.
static StringSetting CLIENT_ID
          The Client ID number
static StringSetting COUNTRY
          The country to use for the application.
static BooleanSetting CURRENTLY_RUNNING
          Indicates whether an instance of LimeWire is running or not.
static StringSetting DEFAULT_LOCALE
          the default locale to use if not specified used to set the locale for connections which don't have X_LOCALE_PREF header or pings and pongs that don't advertise locale preferences.
static FloatSetting FRACTIONAL_UPTIME
          The fraction of time this is running, a unitless quality.
static BooleanSetting INITIALIZE_SIMPP
          If simpp should be initialized when core is initialized.
static StringSetting LANGUAGE
          The language to use for the application.
static StringArraySetting LAST_N_UPTIMES
           
static LongSetting LAST_SHUTDOWN_TIME
          The time that this was last shutdown (system time in milliseconds).
static StringSetting LOCALE_VARIANT
          The locale variant to use for the application.
static BooleanSetting PREVIOUS_SHUTDOWN_WAS_GRACEFUL
          Whether the last shutdown was graceful or not.
static IntSetting SESSIONS
          The total number of times the application has been run -- used in calculating the average amount of time this user leaves the application on.
static LongSetting TOTAL_CONNECTION_TIME
          The total time this user has been connected to the network (in seconds).
static IntSetting TOTAL_CONNECTIONS
          The total number of times this user has connected-disconnected from the network.
static LongSetting TOTAL_UPTIME
          The total time this user has used the application.
static BooleanSetting USE_SECURE_RESULTS
          Whether or not to use 'secure results' to screen search results.
 
Fields inherited from class org.limewire.core.settings.LimeProps
FACTORY
 
Method Summary
static String getLanguage()
          Gets the current language setting.
 
Methods inherited from class org.limewire.core.settings.LimeProps
instance
 
Methods inherited from class org.limewire.setting.BasicSettingsGroup
getFactory, getProperties, getPropertiesFile, getSetting, reload, revertToDefault, save, toString
 
Methods inherited from class org.limewire.setting.AbstractSettingsGroup
addSettingsGroupListener, fireSettingsEvent, fireSettingsEvent, getSettingsGroupListeners, getShouldSave, removeSettingsGroupListener, setShouldSave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLIENT_ID

public static final StringSetting CLIENT_ID
The Client ID number


AVERAGE_UPTIME

public static final LongSetting AVERAGE_UPTIME
The average time this user leaves the application running.


LAST_N_UPTIMES

public static final StringArraySetting LAST_N_UPTIMES

TOTAL_UPTIME

public static final LongSetting TOTAL_UPTIME
The total time this user has used the application.


AVERAGE_CONNECTION_TIME

public static final LongSetting AVERAGE_CONNECTION_TIME
The average time this user is connected to the network per session (in seconds).


TOTAL_CONNECTION_TIME

public static final LongSetting TOTAL_CONNECTION_TIME
The total time this user has been connected to the network (in seconds).


TOTAL_CONNECTIONS

public static final IntSetting TOTAL_CONNECTIONS
The total number of times this user has connected-disconnected from the network.


SESSIONS

public static final IntSetting SESSIONS
The total number of times the application has been run -- used in calculating the average amount of time this user leaves the application on.


LAST_SHUTDOWN_TIME

public static final LongSetting LAST_SHUTDOWN_TIME
The time that this was last shutdown (system time in milliseconds).


PREVIOUS_SHUTDOWN_WAS_GRACEFUL

public static final BooleanSetting PREVIOUS_SHUTDOWN_WAS_GRACEFUL
Whether the last shutdown was graceful or not.


CURRENTLY_RUNNING

public static final BooleanSetting CURRENTLY_RUNNING
Indicates whether an instance of LimeWire is running or not. Should always be false at the start up if LimeWire was shutdown properly. It will get set to true once the core is started.


FRACTIONAL_UPTIME

public static final FloatSetting FRACTIONAL_UPTIME
The fraction of time this is running, a unitless quality. This is used to identify highly available hosts with big pongs. This value should only be updated once per session.


LANGUAGE

public static final StringSetting LANGUAGE
The language to use for the application.


COUNTRY

public static final StringSetting COUNTRY
The country to use for the application.


LOCALE_VARIANT

public static final StringSetting LOCALE_VARIANT
The locale variant to use for the application.


AUTOMATIC_MANUAL_GC

public static final BooleanSetting AUTOMATIC_MANUAL_GC
Setting for whether or not to create an additional manual GC thread.


DEFAULT_LOCALE

public static final StringSetting DEFAULT_LOCALE
the default locale to use if not specified used to set the locale for connections which don't have X_LOCALE_PREF header or pings and pongs that don't advertise locale preferences.


USE_SECURE_RESULTS

public static final BooleanSetting USE_SECURE_RESULTS
Whether or not to use 'secure results' to screen search results.


INITIALIZE_SIMPP

public static final BooleanSetting INITIALIZE_SIMPP
If simpp should be initialized when core is initialized.

Method Detail

getLanguage

public static String getLanguage()
Gets the current language setting.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.