|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.discovery.proxy.util.DiscoveryServiceUtils
public class DiscoveryServiceUtils
Utility class for adding, updating and removing service artifacts stored in the governance registry. This class directly interacts with the governance API of the Carbon governance components create and manage services discovered through WS-D.
| Constructor Summary | |
|---|---|
DiscoveryServiceUtils()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscoveryServiceUtils()
| Method Detail |
|---|
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 registry
Exception - if an error occurs while saving the artifacts to the registry
public static void deactivateService(org.wso2.carbon.discovery.messages.TargetService targetService)
throws Exception
Exception
public static void removeServiceEndpoints(org.wso2.carbon.discovery.messages.TargetService service)
throws Exception
Exception
public static void remove(org.wso2.carbon.discovery.messages.TargetService service)
throws Exception
Exception
public static org.wso2.carbon.discovery.messages.TargetService getService(org.apache.axis2.addressing.EndpointReference epr)
throws Exception
epr - WS-D service identifier
Exception - if an error occurs while accessing the registry
public 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 criteria
Exception - if an error occurs while accessing the registry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||