|
|||||||||
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(String from_file_name,
String to_file_name)
|
void |
createProcess(String command_line,
boolean inherit_handles)
|
void |
dispose()
Disposes system resources. |
String |
getApplicationCommandLine()
|
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()
|
String |
getUserDataDirectory()
|
String |
getVersion()
|
File |
getVMOptionFile()
|
boolean |
hasCapability(PlatformManagerCapabilities capability)
Gets whether the platform manager supports a capability |
boolean |
isApplicationRegistered()
|
Class<?> |
loadClass(ClassLoader loader,
String class_name)
Gives a particular platform the ability to alter the class-loading method |
void |
performRecoverableFileDelete(String file_name)
|
void |
ping(InetAddress interface_address,
InetAddress target,
PlatformManagerPingCallback callback)
|
void |
registerApplication()
|
void |
removeListener(PlatformManagerListener listener)
|
void |
requestUserAttention(int type,
Object data)
Requests the user's attention such as bouncing the application icon on OSX |
void |
setExplicitVMOptions(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(String name)
|
void |
traceRoute(InetAddress interface_address,
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()
String getVersion() throws PlatformManagerException
PlatformManagerException
void startup(AzureusCore azureus_core) throws PlatformManagerException
PlatformManagerException
String getUserDataDirectory() throws PlatformManagerException
PlatformManagerException
boolean isApplicationRegistered() throws PlatformManagerException
PlatformManagerException
void registerApplication() throws PlatformManagerException
PlatformManagerException
String getApplicationCommandLine() throws PlatformManagerException
PlatformManagerException
File getVMOptionFile() throws PlatformManagerException
PlatformManagerException
String[] getExplicitVMOptions() throws PlatformManagerException
PlatformManagerException
void setExplicitVMOptions(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(String command_line, boolean inherit_handles) throws PlatformManagerException
PlatformManagerException
void performRecoverableFileDelete(String file_name) throws PlatformManagerException
PlatformManagerException
void setTCPTOSEnabled(boolean enabled) throws PlatformManagerException
enabled
-
PlatformManagerException
void copyFilePermissions(String from_file_name, String to_file_name) throws PlatformManagerException
PlatformManagerException
boolean testNativeAvailability(String name) throws PlatformManagerException
PlatformManagerException
void traceRoute(InetAddress interface_address, InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
void ping(InetAddress interface_address, InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
int getMaxOpenFiles() throws PlatformManagerException
PlatformManagerException
Class<?> loadClass(ClassLoader loader, 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, Object data) throws PlatformManagerException
type
- data
-
PlatformManagerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |