public interface ServiceCenterOperation
| Modifier and Type | Method and Description |
|---|---|
boolean |
batchUpdateServiceSchemaContext(String serviceId,
ModifySchemasRequest modifySchemasRequest)
batch update schema context of service
|
void |
deleteMicroserviceInstance(String serviceId,
String instanceId)
Delete a microservice instance
|
FindMicroserviceInstancesResponse |
findMicroserviceInstance(String consumerId,
String appId,
String serviceName,
String versionRule,
String revision)
Find MicroserviceInstance by properties.
|
Microservice |
getMicroserviceByServiceId(String serviceId)
Get microservice information by service id.
|
MicroserviceInstance |
getMicroserviceInstance(String serviceId,
String instanceId)
Get microservice instance by id
|
MicroserviceInstancesResponse |
getMicroserviceInstanceList(String serviceId)
Find microservice instances of service-center
|
MicroservicesResponse |
getMicroserviceList()
find all registered microservice of service-center.
|
MicroserviceInstancesResponse |
getServiceCenterInstances()
Query service center instances.
|
List<SchemaInfo> |
getServiceSchemasList(String serviceId,
boolean withContent)
Get schemas list of service
|
RegisteredMicroserviceResponse |
queryServiceId(Microservice microservice)
query Microservice ID by appId, serviceName, version and environment.
|
RbacTokenResponse |
queryToken(RbacTokenRequest request)
query token using user confidential
|
RegisteredMicroserviceResponse |
registerMicroservice(Microservice microservice)
Register microservcie.
|
RegisteredMicroserviceInstanceResponse |
registerMicroserviceInstance(MicroserviceInstance microserviceInstance)
Register microservice instances to service-center
Notice: microserviceInstance' service id must be set before calling this method.
|
boolean |
registerSchema(String serviceId,
String schemaId,
CreateSchemaRequest schema)
register schema.
|
boolean |
sendHeartBeat(String serviceId,
String instanceId)
send heart beat of this instance.
|
void |
sendHeartBeats(HeartbeatsRequest heartbeatsRequest)
Batch send heartbeats to service-center
|
boolean |
updateMicroserviceInstanceStatus(String serviceId,
String instanceId,
MicroserviceInstanceStatus status)
Update status of microservice Instance
|
boolean |
updateMicroserviceProperties(String microserviceId,
Map<String,String> serviceProperties)
Update properties of microservice
|
boolean |
updateServiceSchemaContext(String serviceId,
SchemaInfo schemaInfo)
update schema context of service
|
MicroserviceInstancesResponse getServiceCenterInstances()
OperationException - If some problems happened to contact service center or non http 200 returned.RegisteredMicroserviceResponse registerMicroservice(Microservice microservice)
OperationException - If some problems happened to contact service center or non http 200 returned.MicroservicesResponse getMicroserviceList()
OperationException - If some problems happened to contact service center or non http 200 returned.Microservice getMicroserviceByServiceId(String serviceId)
OperationException - If some problems happened to contact service center or non http 200 returned.RegisteredMicroserviceResponse queryServiceId(Microservice microservice)
OperationException - If some problems happened to contact service center or non http 200 returned.RegisteredMicroserviceInstanceResponse registerMicroserviceInstance(MicroserviceInstance microserviceInstance)
OperationException - If some problems happened to contact service center or non http 200 returned.MicroserviceInstancesResponse getMicroserviceInstanceList(String serviceId)
OperationException - If some problems happened to contact service center or non http 200 returned.MicroserviceInstance getMicroserviceInstance(String serviceId, String instanceId)
OperationException - If some problems happened to contact service center or non http 200 returned.FindMicroserviceInstancesResponse findMicroserviceInstance(String consumerId, String appId, String serviceName, String versionRule, String revision)
OperationException - If some problems happened to contact service center or non http 200 returned.nvoid deleteMicroserviceInstance(String serviceId, String instanceId)
OperationExceptionboolean updateMicroserviceInstanceStatus(String serviceId, String instanceId, MicroserviceInstanceStatus status)
OperationException - If some problems happened to contact service center or non http 200 returned.boolean registerSchema(String serviceId, String schemaId, CreateSchemaRequest schema)
OperationException - If some problems happened to contact service center or non http 200 returned.boolean updateServiceSchemaContext(String serviceId, SchemaInfo schemaInfo)
OperationException - If some problems happened to contact service center or non http 200 returned.boolean batchUpdateServiceSchemaContext(String serviceId, ModifySchemasRequest modifySchemasRequest)
OperationException - If some problems happened to contact service center or non http 200 returned.void sendHeartBeats(HeartbeatsRequest heartbeatsRequest)
heartbeatsRequest - OperationExceptionboolean sendHeartBeat(String serviceId, String instanceId)
OperationException - If some problems happened to contact service center or non http 200 returned.List<SchemaInfo> getServiceSchemasList(String serviceId, boolean withContent)
OperationExceptionRbacTokenResponse queryToken(RbacTokenRequest request)
OperationException - If some problems happened to contact service center or non http 200 returned.boolean updateMicroserviceProperties(String microserviceId, Map<String,String> serviceProperties)
OperationException - If some problems happened to contact service center or non http 200 returned.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.