com.google.enterprise.adaptor
Class Service

java.lang.Object
  extended by 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?
 
Method Summary
 Service.Instance createInstance(String name, File jar, File workingDir)
           
 void deleteInstance(String name, long time, TimeUnit unit)
           
static void main(String[] args)
           
 void start()
           
 void stop(long time, TimeUnit unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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