org.artofsolving.jodconverter.process.PureJavaProcessManager Java Examples

The following examples show how to use org.artofsolving.jodconverter.process.PureJavaProcessManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultOfficeManagerConfiguration.java    From kkFileViewOfficeEdit with Apache License 2.0 5 votes vote down vote up
private ProcessManager findBestProcessManager() {
    if (isSigarAvailable()) {
        return new SigarProcessManager();
    } else if (PlatformUtils.isLinux()) {
    	LinuxProcessManager processManager = new LinuxProcessManager();
    	if (runAsArgs != null) {
    		processManager.setRunAsArgs(runAsArgs);
    	}
    	return processManager;
    } else {
        // NOTE: UnixProcessManager can't be trusted to work on Solaris
        // because of the 80-char limit on ps output there  
        return new PureJavaProcessManager();
    }
}
 
Example #2
Source File: DefaultOfficeManagerConfiguration.java    From kkFileView with Apache License 2.0 5 votes vote down vote up
private ProcessManager findBestProcessManager() {
    if (isSigarAvailable()) {
        return new SigarProcessManager();
    } else if (PlatformUtils.isLinux()) {
    	LinuxProcessManager processManager = new LinuxProcessManager();
    	if (runAsArgs != null) {
    		processManager.setRunAsArgs(runAsArgs);
    	}
    	return processManager;
    } else {
        // NOTE: UnixProcessManager can't be trusted to work on Solaris
        // because of the 80-char limit on ps output there  
        return new PureJavaProcessManager();
    }
}
 
Example #3
Source File: DefaultOfficeManagerConfiguration.java    From wenku with MIT License 5 votes vote down vote up
private ProcessManager findBestProcessManager() {
    if (PlatformUtils.isLinux()) {
    	LinuxProcessManager processManager = new LinuxProcessManager();
    	if (runAsArgs != null) {
    		processManager.setRunAsArgs(runAsArgs);
    	}
    	return processManager;
    } else {
        // NOTE: UnixProcessManager can't be trusted to work on Solaris
        // because of the 80-char limit on ps output there  
        return new PureJavaProcessManager();
    }
}