POST api/Servo/Server/Update

更新修改伺服服务配置表中一个服务

Request Information

URI Parameters

None.

Body Parameters

ServerConfigurationItem
NameDescriptionTypeAdditional information
ServerName

服务名称

string

Required

Max length: 50

ServerDescription

服务描述

string

Max length: 200

IsRun

服务的开机启动标识

string

Required

Max length: 1

ClassName

服务类名

string

Required

Max length: 100

DLLName

服务所在DLL名称(不含路径)

string

Required

Max length: 100

IsSTD

是否为标准服务

string

Required

Max length: 1

Configuration

运行配置

string

Max length: 2000

DelayAfterNoRequestToProcess

没有需要处理的请求之后,停顿的间隔时间,单位毫秒,最小值为10。 这个值实际上是系统的最快响应时间。

integer

Required

DelayAfterOneRequestProcessed

当有多个单元需要处理时,处理完一个单元之后,停顿的时间间隔,单位毫秒,最小值为0,建议设置一个值。这个值实际上是系统的最大单线程并发能力。

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "ServerName": "sample string 1",
  "ServerDescription": "sample string 2",
  "IsRun": "sample string 3",
  "ClassName": "sample string 4",
  "DLLName": "sample string 5",
  "IsSTD": "sample string 6",
  "Configuration": "sample string 7",
  "DelayAfterNoRequestToProcess": 8,
  "DelayAfterOneRequestProcessed": 9
}

application/xml, text/xml

Sample:
<ServerConfigurationItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.Servo">
  <ClassName>sample string 4</ClassName>
  <Configuration>sample string 7</Configuration>
  <DLLName>sample string 5</DLLName>
  <DelayAfterNoRequestToProcess>8</DelayAfterNoRequestToProcess>
  <DelayAfterOneRequestProcessed>9</DelayAfterOneRequestProcessed>
  <IsRun>sample string 3</IsRun>
  <IsSTD>sample string 6</IsSTD>
  <ServerDescription>sample string 2</ServerDescription>
  <ServerName>sample string 1</ServerName>
</ServerConfigurationItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

更新修改伺服服务配置表中一个服务

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.