|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlatformManager
Field Summary | |
---|---|
static int |
PT_MACOSX
|
static int |
PT_OTHER
|
static int |
PT_UNIX
|
static int |
PT_WINDOWS
|
static int[] |
SD_ALL
|
static int |
SD_HIBERNATE
|
static int |
SD_SHUTDOWN
|
static int |
SD_SLEEP
|
static int |
USER_REQUEST_INFO
|
static int |
USER_REQUEST_QUESTION
|
static int |
USER_REQUEST_WARNING
|
Fields inherited from interface org.gudy.azureus2.plugins.platform.PlatformManager |
---|
LOC_DOCUMENTS, LOC_MUSIC, LOC_USER_DATA, LOC_VIDEO |
Method Summary | |
---|---|
void |
addListener(PlatformManagerListener listener)
|
void |
copyFilePermissions(java.lang.String from_file_name,
java.lang.String to_file_name)
|
void |
createProcess(java.lang.String command_line,
boolean inherit_handles)
|
void |
dispose()
Disposes system resources. |
java.lang.String |
getApplicationCommandLine()
|
java.lang.String[] |
getExplicitVMOptions()
|
int |
getMaxOpenFiles()
This max-open-files concept here is from linux/osx where network connections are treated as 'files' |
int |
getPlatformType()
|
boolean |
getPreventComputerSleep()
|
boolean |
getRunAtLogin()
|
int |
getShutdownTypes()
|
java.lang.String |
getUserDataDirectory()
|
java.lang.String |
getVersion()
|
java.io.File |
getVMOptionFile()
|
boolean |
hasCapability(PlatformManagerCapabilities capability)
Gets whether the platform manager supports a capability |
boolean |
isApplicationRegistered()
|
java.lang.Class<?> |
loadClass(java.lang.ClassLoader loader,
java.lang.String class_name)
Gives a particular platform the ability to alter the class-loading method |
void |
performRecoverableFileDelete(java.lang.String file_name)
|
void |
ping(java.net.InetAddress interface_address,
java.net.InetAddress target,
PlatformManagerPingCallback callback)
|
void |
registerApplication()
|
void |
removeListener(PlatformManagerListener listener)
|
void |
requestUserAttention(int type,
java.lang.Object data)
Requests the user's attention such as bouncing the application icon on OSX |
void |
setExplicitVMOptions(java.lang.String[] options)
|
void |
setPreventComputerSleep(boolean prevent_it)
|
void |
setRunAtLogin(boolean run)
|
void |
setTCPTOSEnabled(boolean enabled)
enable or disable the platforms support for TCP TOS |
void |
shutdown(int type)
|
void |
startup(AzureusCore azureus_core)
|
boolean |
testNativeAvailability(java.lang.String name)
|
void |
traceRoute(java.net.InetAddress interface_address,
java.net.InetAddress target,
PlatformManagerPingCallback callback)
|
Methods inherited from interface org.gudy.azureus2.plugins.platform.PlatformManager |
---|
getComputerName, getLocation, isAdditionalFileTypeRegistered, registerAdditionalFileType, showFile, unregisterAdditionalFileType |
Field Detail |
---|
static final int PT_WINDOWS
static final int PT_OTHER
static final int PT_MACOSX
static final int PT_UNIX
static final int USER_REQUEST_INFO
static final int USER_REQUEST_WARNING
static final int USER_REQUEST_QUESTION
static final int SD_SHUTDOWN
static final int SD_HIBERNATE
static final int SD_SLEEP
static final int[] SD_ALL
Method Detail |
---|
int getPlatformType()
java.lang.String getVersion() throws PlatformManagerException
PlatformManagerException
void startup(AzureusCore azureus_core) throws PlatformManagerException
PlatformManagerException
java.lang.String getUserDataDirectory() throws PlatformManagerException
PlatformManagerException
boolean isApplicationRegistered() throws PlatformManagerException
PlatformManagerException
void registerApplication() throws PlatformManagerException
PlatformManagerException
java.lang.String getApplicationCommandLine() throws PlatformManagerException
PlatformManagerException
java.io.File getVMOptionFile() throws PlatformManagerException
PlatformManagerException
java.lang.String[] getExplicitVMOptions() throws PlatformManagerException
PlatformManagerException
void setExplicitVMOptions(java.lang.String[] options) throws PlatformManagerException
PlatformManagerException
boolean getRunAtLogin() throws PlatformManagerException
PlatformManagerException
void setRunAtLogin(boolean run) throws PlatformManagerException
PlatformManagerException
int getShutdownTypes()
void shutdown(int type) throws PlatformManagerException
PlatformManagerException
void setPreventComputerSleep(boolean prevent_it) throws PlatformManagerException
PlatformManagerException
boolean getPreventComputerSleep()
void createProcess(java.lang.String command_line, boolean inherit_handles) throws PlatformManagerException
PlatformManagerException
void performRecoverableFileDelete(java.lang.String file_name) throws PlatformManagerException
PlatformManagerException
void setTCPTOSEnabled(boolean enabled) throws PlatformManagerException
enabled
-
PlatformManagerException
void copyFilePermissions(java.lang.String from_file_name, java.lang.String to_file_name) throws PlatformManagerException
PlatformManagerException
boolean testNativeAvailability(java.lang.String name) throws PlatformManagerException
PlatformManagerException
void traceRoute(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
void ping(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
int getMaxOpenFiles() throws PlatformManagerException
PlatformManagerException
java.lang.Class<?> loadClass(java.lang.ClassLoader loader, java.lang.String class_name) throws PlatformManagerException
loader
- class_name
-
PlatformManagerException
boolean hasCapability(PlatformManagerCapabilities capability)
Gets whether the platform manager supports a capability
Users of PlatformManager should check for supported capabilities before calling the corresponding methods
Note that support for a particular capability may change arbitrarily in the duration of the application session, but the manager will cache where necessary.
capability
- A platform manager capability
void dispose()
void addListener(PlatformManagerListener listener)
void removeListener(PlatformManagerListener listener)
void requestUserAttention(int type, java.lang.Object data) throws PlatformManagerException
type
- data
-
PlatformManagerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |