ecologylab.services.distributed.legacy
Class BrowserServices

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.services.distributed.impl.Manager
          extended by ecologylab.services.distributed.legacy.ServicesServerBase
              extended by ecologylab.services.distributed.legacy.ServicesServer
                  extended by ecologylab.services.distributed.legacy.BrowserServices
All Implemented Interfaces:
StartAndStoppable, ServicesHostsAndPorts, SessionObjects, Shutdownable, java.lang.Runnable

public class BrowserServices
extends ServicesServer
implements SessionObjects, ServicesHostsAndPorts

Provide socket based browser services.

Author:
blake

Field Summary
 
Fields inherited from class ecologylab.services.distributed.legacy.ServicesServer
HTTP_GET_SERVER, HTTP_POST_SERVER, NORMAL_SERVER
 
Fields inherited from interface ecologylab.services.distributed.common.SessionObjects
BROWSER_SERVICES_CLIENT, BROWSER_SERVICES_TRANSLATIONS, GRAPHICS_CONFIGURATION, INTEREST_MODEL_SOURCE, LOGGING, MAIN_SHUTDOWNABLE, MAIN_START_AND_STOPPABLE, NAMED_STYLES_MAP, SESSION_HANDLE, SESSIONS_MAP, TOP_LEVEL
 
Fields inherited from interface ecologylab.services.distributed.common.ServicesHostsAndPorts
BROWSER_SERVICES_PORT, CF_SERVICES_PORT, CSDLL_HOST, LOGGING_HOST, LOGGING_PORT, PHYSI_ROGUE_UDP_PORT, ROGUE_OSC_SOUND_PATCH_LISTENER_PORT, ROGUE_OSC_SOUND_RECORDER_ACKNOWLEDGE_PORT, ROGUE_OSC_VAD_PATCH, ROGUE_PORT, WEB_START_APP_SERVICES_PORT
 
Fields inherited from interface ecologylab.services.distributed.impl.Shutdownable
SHUTTING_DOWN
 
Constructor Summary
BrowserServices(int portNumber, Scope objectRegistry)
          Creates a new instance of the BrowserServer listening on the default port
BrowserServices(int portNumber, TranslationScope translations, Scope objectRegistry)
           
BrowserServices(Scope objectRegistry)
          Creates a new instance of the BrowserServer listening on the default port
 
Method Summary
static BrowserServices get(int portNumber, Scope objectRegistry)
          This is the actual way to create an instance of this.
static ServicesServer get(int portNumber, TranslationScope translations, Scope objectRegistry)
           
 
Methods inherited from class ecologylab.services.distributed.legacy.ServicesServer
get, parseHeader, run, shutdownImpl, start, start, stop, toString, translateXMLStringToRequestMessage
 
Methods inherited from class ecologylab.services.distributed.legacy.ServicesServerBase
addServerListener, getAddress, getObjectRegistry, getPortNumber, getRequestTranslationSpace, performService
 
Methods inherited from class ecologylab.services.distributed.impl.Manager
addDependentShutdownable, addShutdownListener, shutdown
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserServices

public BrowserServices(int portNumber,
                       Scope objectRegistry)
                throws java.io.IOException,
                       java.net.BindException
Creates a new instance of the BrowserServer listening on the default port

Throws:
java.io.IOException
java.net.BindException

BrowserServices

public BrowserServices(Scope objectRegistry)
                throws java.io.IOException,
                       java.net.BindException
Creates a new instance of the BrowserServer listening on the default port

Throws:
java.io.IOException
java.net.BindException

BrowserServices

public BrowserServices(int portNumber,
                       TranslationScope translations,
                       Scope objectRegistry)
                throws java.io.IOException,
                       java.net.BindException
Throws:
java.io.IOException
java.net.BindException
Method Detail

get

public static BrowserServices get(int portNumber,
                                  Scope objectRegistry)
This is the actual way to create an instance of this.

Parameters:
portNumber -
objectRegistry -
Returns:
A server instance, or null if it was not possible to open a ServerSocket on the port on this machine.

get

public static ServicesServer get(int portNumber,
                                 TranslationScope translations,
                                 Scope objectRegistry)