Methods Summary |
---|
public void | addListener(PlatformManagerListener listener)
// No Listener Functionality
|
public void | copyFilePermissions(java.lang.String from_file_name, java.lang.String to_file_name)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | createProcess(java.lang.String command_line, boolean inherit_handles)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | dispose()
|
public java.lang.String | getApplicationCommandLine()
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public java.lang.String | getAzComputerID()
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public java.io.File | getLocation(long location_id)
switch ((int)location_id) {
case LOC_USER_DATA:
return( new File( getUserDataDirectory() ));
case LOC_DOCUMENTS:
return new File(System.getProperty("user.home"));
case LOC_MUSIC:
case LOC_VIDEO:
default:
return( null );
}
|
public int | getPlatformType()
return PT_UNIX;
|
public static org.gudy.azureus2.platform.unix.PlatformManagerImpl | getSingleton()Gets the platform manager singleton, which was already initialized
return singleton;
|
public java.lang.String | getUserDataDirectory()
String userhome = System.getProperty("user.home");
String temp_user_path = userhome + SystemProperties.SEP + "."
+ SystemProperties.APPLICATION_NAME.toLowerCase()
+ SystemProperties.SEP;
synchronized (migrate_lock) {
File home = new File(temp_user_path);
if (!home.exists()) { //might be a fresh install or might be an old non-migrated install
String old_home_path = userhome + SystemProperties.SEP + "."
+ SystemProperties.APPLICATION_NAME + SystemProperties.SEP;
File old_home = new File(old_home_path);
if (old_home.exists()) { //migrate
String msg = "Migrating unix user config dir [" + old_home_path
+ "] ===> [" + temp_user_path + "]";
System.out.println(msg);
Logger.log(new LogEvent(LOGID,
"SystemProperties::getUserPath(Unix): " + msg));
try {
old_home.renameTo(home);
} catch (Throwable t) {
t.printStackTrace();
Logger.log(new LogEvent(LOGID, "migration rename failed:", t));
}
}
}
}
return temp_user_path;
|
public java.lang.String | getVersion()
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public boolean | hasCapability(PlatformManagerCapabilities capability)
return capabilitySet.contains(capability);
|
private static void | initializeSingleton()Instantiates the singleton
initializeSingleton();
try {
class_mon.enter();
singleton = new PlatformManagerImpl();
} catch (Throwable e) {
Logger.log(new LogEvent(LOGID, "Failed to initialize platform manager"
+ " for Unix Compatable OS", e));
} finally {
class_mon.exit();
}
|
public boolean | isAdditionalFileTypeRegistered(java.lang.String name, java.lang.String type)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public boolean | isApplicationRegistered()
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | performRecoverableFileDelete(java.lang.String file_name)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | ping(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | registerAdditionalFileType(java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String content_type)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | registerApplication()
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | removeListener(PlatformManagerListener listener)
// No Listener Functionality
|
public void | setTCPTOSEnabled(boolean enabled)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | showFile(java.lang.String file_name)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public boolean | testNativeAvailability(java.lang.String name)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | traceRoute(java.net.InetAddress interface_address, java.net.InetAddress target, PlatformManagerPingCallback callback)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|
public void | unregisterAdditionalFileType(java.lang.String name, java.lang.String type)
throw new PlatformManagerException(ERR_UNSUPPORTED);
|