99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

REQUESTSTATUS:異步呼叫的請求狀態(tài)

2018-01-05 11:41 更新

REQUESTSTATUS操作可以請求已提交的異步集合API(以下)調(diào)用的狀態(tài)和響應(yīng)。此調(diào)用也用于清除存儲(chǔ)的狀態(tài)。

/admin/collections?action=REQUESTSTATUS&requestid=request-id

REQUESTSTATUS參數(shù)

requestid

用戶為請求定義的請求ID。這可以用來跟蹤提交的異步任務(wù)的狀態(tài)。該參數(shù)是必需的。

使用REQUESTSTATUS的例子

在該例中輸入:有效的請求ID

http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=1000

得到的輸出為:

<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">1</int>
  </lst>
  <lst name="status">
    <str name="state">completed</str>
    <str name="msg">found 1000 in completed tasks</str>
  </lst>
</response>

或者輸入:無效的請求ID

http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=1004

得到的輸出:

<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">1</int>
  </lst>
  <lst name="status">
    <str name="state">notfound</str>
    <str name="msg">Did not find taskid [1004] in any tasks queue</str>
  </lst>
</response>
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號