org.pentaho.di.www
Class NextSequenceValueServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.pentaho.di.www.BaseHttpServlet
              extended by org.pentaho.di.www.NextSequenceValueServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, CarteServletInterface

public class NextSequenceValueServlet
extends BaseHttpServlet
implements CarteServletInterface

This servlet allows a client (TransSplitter in our case) to ask for a port number.
This port number will be allocated in such a way that the port number is unique for a given hostname.
This in turn will ensure that all the slaves will use valid port numbers, even if multiple slaves run on the same host.

Author:
matt
See Also:
Serialized Form

Field Summary
static String CONTEXT_PATH
           
static String PARAM_INCREMENT
           
static String PARAM_NAME
           
static String XML_TAG
           
static String XML_TAG_ERROR
           
static String XML_TAG_INCREMENT
           
static String XML_TAG_VALUE
           
 
Constructor Summary
NextSequenceValueServlet()
           
NextSequenceValueServlet(TransformationMap transformationMap)
           
 
Method Summary
 String getService()
           
 String toString()
           
 
Methods inherited from class org.pentaho.di.www.BaseHttpServlet
convertContextPath, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTEXT_PATH

public static final String CONTEXT_PATH
See Also:
Constant Field Values

PARAM_NAME

public static final String PARAM_NAME
See Also:
Constant Field Values

PARAM_INCREMENT

public static final String PARAM_INCREMENT
See Also:
Constant Field Values

XML_TAG

public static final String XML_TAG
See Also:
Constant Field Values

XML_TAG_VALUE

public static final String XML_TAG_VALUE
See Also:
Constant Field Values

XML_TAG_INCREMENT

public static final String XML_TAG_INCREMENT
See Also:
Constant Field Values

XML_TAG_ERROR

public static final String XML_TAG_ERROR
See Also:
Constant Field Values
Constructor Detail

NextSequenceValueServlet

public NextSequenceValueServlet()

NextSequenceValueServlet

public NextSequenceValueServlet(TransformationMap transformationMap)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getService

public String getService()
Specified by:
getService in interface CarteServletInterface