ecologylab.services.distributed.legacy
Class BrowserServices

java.lang.Object
  extended by ecologylab.generic.Debug
      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 class ecologylab.services.distributed.legacy.ServicesServerBase
connectionCount, finished, objectRegistry, portNumber, requestTranslationSpace, serverListeners, serverSocket, shuttingDown
 
Fields inherited from interface ecologylab.services.distributed.common.SessionObjects
BROWSER_SERVICES_CLIENT, BROWSER_SERVICES_TRANSLATIONS, LOGGING, MAIN_SHUTDOWNABLE, MAIN_START_AND_STOPPABLE, 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_PORT, WEB_START_APP_SERVICES_PORT
 
Constructor Summary
BrowserServices(int portNumber, Scope objectRegistry)
          Creates a new instance of the BrowserServer listening on the default port
BrowserServices(int portNumber, TranslationSpace 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, TranslationSpace translations, Scope objectRegistry)
           
 
Methods inherited from class ecologylab.services.distributed.legacy.ServicesServer
connectionTerminated, get, getConnection, parseHeader, run, shutdown, start, start, stop, toString, translateXMLStringToRequestMessage
 
Methods inherited from class ecologylab.services.distributed.legacy.ServicesServerBase
addServerListener, connectionTerminated, fireServerEvent, generateSessionToken, getAddress, getObjectRegistry, getPortNumber, getRequestTranslationSpace, performService, terminationAction
 
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
clone, equals, finalize, 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,
                       TranslationSpace 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,
                                 TranslationSpace translations,
                                 Scope objectRegistry)