public class NextSequenceValueServlet extends BaseHttpServlet implements CartePluginInterface
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
detections, jobMap, log, socketRepository, transformationMap| 构造器和说明 |
|---|
NextSequenceValueServlet() |
NextSequenceValueServlet(TransformationMap transformationMap) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
String |
getContextPath() |
String |
getService() |
String |
toString() |
convertContextPath, doDelete, doPost, doPut, getDetections, getJobMap, getSocketRepository, getTransformationMap, isJettyMode, logBasic, logBasic, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logRowlevel, setJettyMode, setupdoHead, doOptions, doTrace, getLastModified, service, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisJettyMode, setJettyMode, setuppublic NextSequenceValueServlet()
public NextSequenceValueServlet(TransformationMap transformationMap)
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
Increments specified pre-configured sequence. Method is used for reserving a number of IDs and incrementing a sequence pre-configured in Carte server configuration by specified amount. If no increment value provided 10000 is used by default.
Example Request:
GET /kettle/nextSequence?name=test_seq
| name | description | type |
|---|---|---|
| name | name of the sequence specified in Carte configuration file. | query |
| increment | (optional) parameter used for incrementing sequence. If no parameter specified 10000 is used by default. | integer, optional |
| text: | HTML |
| media types: | text/xml |
Response XML containing sequence value and the increment value used.
Example Response:
570000 10000
| code | description |
|---|---|
| 200 | Request was processed. |
| 404 | If the sequence was not found or error occurred during allocation |
| 500 | Internal server error occurs during request processing. |
doGet 在接口中 CartePluginInterfacedoGet 在类中 javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic String getService()
getService 在接口中 CarteServletInterfacepublic String getContextPath()
getContextPath 在接口中 CartePluginInterfaceCopyright © 2024 Hitachi Vantara. All rights reserved.