001//
002// JODConverter - Java OpenDocument Converter
003// Copyright 2009 Art of Solving Ltd
004// Copyright 2004-2009 Mirko Nasato
005//
006// JODConverter is free software: you can redistribute it and/or
007// modify it under the terms of the GNU Lesser General Public License
008// as published by the Free Software Foundation, either version 3 of
009// the License, or (at your option) any later version.
010//
011// JODConverter is distributed in the hope that it will be useful,
012// but WITHOUT ANY WARRANTY; without even the implied warranty of
013// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014// Lesser General Public License for more details.
015//
016// You should have received a copy of the GNU Lesser General
017// Public License along with JODConverter.  If not, see
018// <http://www.gnu.org/licenses/>.
019//
020package org.nuxeo.launcher.process;
021
022public class PureJavaProcessManager implements ProcessManager {
023
024    protected static final boolean PID_ENABLED = false;
025
026    @Override
027    public String findPid(String regex) {
028        return null;
029    }
030
031    @Override
032    public void kill(Process process, String pid) {
033        process.destroy();
034    }
035
036    @Override
037    public boolean canFindPid() {
038        return PID_ENABLED;
039    }
040
041}