public class RestClientAdminService extends Object implements AdminService
AdminService.IndexDeleteMode| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.web.client.RestTemplate |
restTemplate |
protected String |
serverUrl |
| Constructor and Description |
|---|
RestClientAdminService() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createBaseUrl(String serviceUrl) |
void |
createIndex(String id) |
void |
deleteIndex(String id,
AdminService.IndexDeleteMode mode) |
Map<String,Object> |
getIndexInfo(String id) |
String |
getServerUrl() |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setServerUrl(String serverUrl) |
protected String serverUrl
protected org.springframework.web.client.RestTemplate restTemplate
public String getServerUrl()
public void setServerUrl(String serverUrl)
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
public void createIndex(String id) throws SearchException
createIndex in interface AdminServiceSearchExceptionpublic Map<String,Object> getIndexInfo(String id) throws SearchException
getIndexInfo in interface AdminServiceSearchExceptionpublic void deleteIndex(String id, AdminService.IndexDeleteMode mode) throws SearchException
deleteIndex in interface AdminServiceSearchExceptionCopyright © 2020 CrafterCMS. All rights reserved.