|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.platform.dummy.PlatformManagerImpl
public class PlatformManagerImpl
Field Summary |
---|
Fields inherited from interface org.gudy.azureus2.platform.PlatformManager |
---|
PT_MACOSX, PT_OTHER, PT_UNIX, PT_WINDOWS, SD_ALL, SD_HIBERNATE, SD_SHUTDOWN, SD_SLEEP, USER_REQUEST_INFO, USER_REQUEST_QUESTION, 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()
Does nothing |
java.lang.String |
getApplicationCommandLine()
|
java.lang.String |
getAzComputerID()
|
java.lang.String |
getComputerName()
|
java.lang.String[] |
getExplicitVMOptions()
|
java.io.File |
getLocation(long location_id)
Get a well-known location, if defined for the platform |
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()
|
static PlatformManager |
getSingleton()
|
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 |
isAdditionalFileTypeRegistered(java.lang.String name,
java.lang.String type)
Checks to see if the supplied file type is registered with this application |
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 |
registerAdditionalFileType(java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String content_type)
Registers a file type with this application |
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 b)
|
void |
setRunAtLogin(boolean run)
|
void |
setTCPTOSEnabled(boolean enabled)
enable or disable the platforms support for TCP TOS |
void |
showFile(java.lang.String file_name)
Reveals the file or directory with the platform's default browser |
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)
|
void |
unregisterAdditionalFileType(java.lang.String name,
java.lang.String type)
Removes a file-type registration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlatformManager getSingleton()
public int getPlatformType()
public java.lang.String getUserDataDirectory() throws PlatformManagerException
PlatformManagerException
public boolean isApplicationRegistered() throws PlatformManagerException
PlatformManagerException
public java.lang.String getApplicationCommandLine() throws PlatformManagerException
PlatformManagerException
public java.lang.String getComputerName()
getComputerName
in interface PlatformManager
public java.io.File getLocation(long location_id) throws PlatformManagerException
PlatformManager
getLocation
in interface PlatformManager
location_id
- from above LOC_constants
PlatformManagerException
public java.io.File getVMOptionFile() throws PlatformManagerException
PlatformManagerException
public java.lang.String[] getExplicitVMOptions() throws PlatformManagerException
PlatformManagerException
public boolean getRunAtLogin() throws PlatformManagerException
PlatformManagerException
public void setRunAtLogin(boolean run) throws PlatformManagerException
PlatformManagerException
public void startup(AzureusCore azureus_core) throws PlatformManagerException
PlatformManagerException
public int getShutdownTypes()
public void shutdown(int type) throws PlatformManagerException
PlatformManagerException
public void setPreventComputerSleep(boolean b) throws PlatformManagerException
PlatformManagerException
public boolean getPreventComputerSleep()
public void setExplicitVMOptions(java.lang.String[] options) throws PlatformManagerException
PlatformManagerException
public boolean isAdditionalFileTypeRegistered(java.lang.String name, java.lang.String type) throws PlatformManagerException
PlatformManager
isAdditionalFileTypeRegistered
in interface PlatformManager
PlatformManagerException
public void unregisterAdditionalFileType(java.lang.String name, java.lang.String type) throws PlatformManagerException
PlatformManager
unregisterAdditionalFileType
in interface PlatformManager
PlatformManagerException
public void registerApplication() throws PlatformManagerException
PlatformManagerException
public void registerAdditionalFileType(java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String content_type) throws PlatformManagerException
PlatformManager
registerAdditionalFileType
in interface PlatformManager
PlatformManagerException
public void createProcess(java.lang.String command_line, boolean inherit_handles) throws PlatformManagerException
PlatformManagerException
public void performRecoverableFileDelete(java.lang.String file_name) throws PlatformManagerException
PlatformManagerException
public java.lang.String getVersion() throws PlatformManagerException
PlatformManagerException
public void setTCPTOSEnabled(boolean enabled) throws PlatformManagerException
PlatformManagerException
public void copyFilePermissions(java.lang.String from_file_name, java.lang.String to_file_name) throws PlatformManagerException
PlatformManagerException
public void showFile(java.lang.String file_name) throws PlatformManagerException
showFile
in interface PlatformManager
file_name
- The full path to a file or directory
PlatformManagerException
- If this operation failspublic boolean testNativeAvailability(java.lang.String name) throws PlatformManagerException
PlatformManagerException
public void traceRoute(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
public void ping(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback) throws PlatformManagerException
PlatformManagerException
public int getMaxOpenFiles() throws PlatformManagerException
PlatformManager
PlatformManagerException
public 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
public void dispose()
public void addListener(PlatformManagerListener listener)
public void removeListener(PlatformManagerListener listener)
public java.lang.String getAzComputerID() throws PlatformManagerException
PlatformManagerException
public void requestUserAttention(int type, java.lang.Object data) throws PlatformManagerException
PlatformManager
PlatformManagerException
public java.lang.Class<?> loadClass(java.lang.ClassLoader loader, java.lang.String class_name) throws PlatformManagerException
PlatformManager
PlatformManagerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |