public class ApplicationPreferences extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_APP_FOLDER |
static java.lang.String |
ID_APP_PARAMS |
static java.lang.String |
ID_CACHE_MEMORY_PERCENT |
static java.lang.String |
ID_CACHE_PATH |
static java.lang.String |
ID_EXTRA_VMPARAMS |
static java.lang.String |
ID_ICY_ID |
static java.lang.String |
ID_MAX_MEMORY |
static java.lang.String |
ID_OS |
static java.lang.String |
ID_OS_EXTRA_VMPARAMS |
static java.lang.String |
ID_SINGLE_INSTANCE |
static java.lang.String |
ID_STACK_SIZE |
static java.lang.String |
ID_UPDATE_REPOSITORY_BASE |
static java.lang.String |
ID_UPDATE_REPOSITORY_FILE |
static java.lang.String |
ID_VERSION |
Constructor and Description |
---|
ApplicationPreferences() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAppFolder()
Get Icy application folder
|
static java.lang.String |
getAppParams()
Get Icy application parameters string
|
static int |
getCacheMemoryMB()
Get cache reserved memory (in MB)
|
static int |
getCacheMemoryPercent()
Get cache reserved memory (in % of max memory)
|
static java.lang.String |
getCachePath()
Get cache path (folder where to create cache data, better to use fast storage)
|
static int |
getDefaultMemoryMB() |
static java.lang.String |
getExtraVMParams()
Get extra JVM parameters string
|
static int |
getId()
Return Icy unique Id (-1 if not yet set)
|
static int |
getMaxMemoryMB()
Get max memory (in MB)
|
static int |
getMaxMemoryMBLimit() |
static java.lang.String |
getOs() |
static java.lang.String |
getOSExtraVMParams()
Get OS specific extra JVM parameters string
|
static XMLPreferences |
getPreferences() |
static int |
getStackSizeKB()
Get stack size (in KB)
|
static java.lang.String |
getUpdateRepositoryBase() |
static java.lang.String |
getUpdateRepositoryFile() |
static Version |
getVersion()
Get the stored version number (used to detect new installed version).
|
static void |
load() |
static void |
setAppFolder(java.lang.String value)
Set Icy application folder
|
static void |
setAppParams(java.lang.String value)
Set ICY application parameters string
|
static void |
setCacheMemoryPercent(int value)
Set cache reserved memory (in % of max memory)
|
static void |
setCachePath(java.lang.String value)
Set cache path (folder where to create cache data, better to use fast storage)
|
static void |
setExtraVMParams(java.lang.String value)
Set extra JVM parameters string
|
static void |
setId(int value) |
static void |
setMaxMemoryMB(int value)
Set max memory (in MB)
|
static void |
setOs(java.lang.String value) |
static void |
setOSExtraVMParams(java.lang.String value)
Set OS specific extra JVM parameters string
|
static void |
setStackSizeKB(int value)
Set stack size (in KB)
|
static void |
setUpdateRepositoryBase(java.lang.String value) |
static void |
setUpdateRepositoryFile(java.lang.String value) |
static void |
setVersion(Version value)
Set the stored version number (used to detect new installed version)
|
public static final java.lang.String ID_ICY_ID
public static final java.lang.String ID_OS
public static final java.lang.String ID_UPDATE_REPOSITORY_BASE
public static final java.lang.String ID_UPDATE_REPOSITORY_FILE
public static final java.lang.String ID_MAX_MEMORY
public static final java.lang.String ID_STACK_SIZE
public static final java.lang.String ID_CACHE_MEMORY_PERCENT
public static final java.lang.String ID_CACHE_PATH
public static final java.lang.String ID_EXTRA_VMPARAMS
public static final java.lang.String ID_OS_EXTRA_VMPARAMS
public static final java.lang.String ID_APP_FOLDER
public static final java.lang.String ID_APP_PARAMS
public static final java.lang.String ID_VERSION
public static final java.lang.String ID_SINGLE_INSTANCE
public ApplicationPreferences()
public static void load()
public static XMLPreferences getPreferences()
public static java.lang.String getOs()
public static void setOs(java.lang.String value)
public static int getId()
public static void setId(int value)
public static java.lang.String getUpdateRepositoryBase()
public static void setUpdateRepositoryBase(java.lang.String value)
public static java.lang.String getUpdateRepositoryFile()
public static void setUpdateRepositoryFile(java.lang.String value)
public static int getMaxMemoryMB()
public static int getDefaultMemoryMB()
public static int getMaxMemoryMBLimit()
public static int getStackSizeKB()
public static int getCacheMemoryPercent()
public static int getCacheMemoryMB()
public static java.lang.String getCachePath()
public static java.lang.String getExtraVMParams()
public static java.lang.String getOSExtraVMParams()
public static java.lang.String getAppFolder()
public static java.lang.String getAppParams()
public static Version getVersion()
public static void setMaxMemoryMB(int value)
public static void setStackSizeKB(int value)
public static void setCacheMemoryPercent(int value)
public static void setCachePath(java.lang.String value)
public static void setExtraVMParams(java.lang.String value)
public static void setOSExtraVMParams(java.lang.String value)
public static void setAppFolder(java.lang.String value)
public static void setAppParams(java.lang.String value)
public static void setVersion(Version value)