com.twitter.common.application.modules
Class LocalServiceRegistry.LocalService

java.lang.Object
  extended by com.twitter.common.application.modules.LocalServiceRegistry.LocalService
Enclosing class:
LocalServiceRegistry

public static final class LocalServiceRegistry.LocalService
extends Object

An individual local service.


Method Summary
static LocalServiceRegistry.LocalService auxiliaryService(String name, int port, Command shutdownCommand)
          Creates a named auxiliary service.
static LocalServiceRegistry.LocalService primaryService(int port, Command shutdownCommand)
          Creates a primary local service.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

primaryService

public static LocalServiceRegistry.LocalService primaryService(int port,
                                                               Command shutdownCommand)
Creates a primary local service.

Parameters:
port - Service port.
shutdownCommand - A command that will shut down the service.
Returns:
A new primary local service.

auxiliaryService

public static LocalServiceRegistry.LocalService auxiliaryService(String name,
                                                                 int port,
                                                                 Command shutdownCommand)
Creates a named auxiliary service.

Parameters:
name - Service name.
port - Service port.
shutdownCommand - A command that will shut down the service.
Returns:
A new auxiliary local service.