com.google.enterprise.adaptor
Class Service
java.lang.Object
com.google.enterprise.adaptor.Service
public final class Service
- extends Object
Provides environment for running multiple adaptors on the same port and
having each instance be managed.
Nested Class Summary |
class |
Service.Instance
Maybe use this as an interface to allow disabling/enabling and
starting/stopping of particular instances? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createInstance
public Service.Instance createInstance(String name,
File jar,
File workingDir)
deleteInstance
public void deleteInstance(String name,
long time,
TimeUnit unit)
start
public void start()
throws IOException
- Throws:
IOException
stop
public void stop(long time,
TimeUnit unit)
main
public static void main(String[] args)
throws IOException
- Throws:
IOException