public class DiscoveryServiceUtils extends Object
| Constructor and Description |
|---|
DiscoveryServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addService(org.wso2.carbon.discovery.messages.TargetService service,
Map<String,String> headerMap)
Add a discovered target service to the governance registry.
|
static void |
deactivateService(org.wso2.carbon.discovery.messages.TargetService targetService) |
static org.wso2.carbon.discovery.messages.TargetService[] |
findServices(org.wso2.carbon.discovery.messages.Probe probe)
Search the service artifacts stored in the registry and find the set of services
that satisfy the conditions stated in the given WS-D probe.
|
static org.wso2.carbon.discovery.messages.TargetService |
getService(org.apache.axis2.addressing.EndpointReference epr)
Find the WS-D target service identified by the given WS-D identifier.
|
static void |
remove(org.wso2.carbon.discovery.messages.TargetService service) |
static void |
removeServiceEndpoints(org.wso2.carbon.discovery.messages.TargetService service) |
public static void addService(org.wso2.carbon.discovery.messages.TargetService service,
Map<String,String> headerMap)
throws Exception
service - WS-D target service to be added to the registryException - if an error occurs while saving the artifacts to the registrypublic static void deactivateService(org.wso2.carbon.discovery.messages.TargetService targetService)
throws Exception
Exceptionpublic static void removeServiceEndpoints(org.wso2.carbon.discovery.messages.TargetService service)
throws Exception
Exceptionpublic static void remove(org.wso2.carbon.discovery.messages.TargetService service)
throws Exception
Exceptionpublic static org.wso2.carbon.discovery.messages.TargetService getService(org.apache.axis2.addressing.EndpointReference epr)
throws Exception
epr - WS-D service identifierException - if an error occurs while accessing the registrypublic static org.wso2.carbon.discovery.messages.TargetService[] findServices(org.wso2.carbon.discovery.messages.Probe probe)
throws Exception
probe - a WS-D probe describing the search criteriaException - if an error occurs while accessing the registryCopyright © 2016 WSO2. All rights reserved.