public class DiscoveryAdmin
extends org.wso2.carbon.core.AbstractAdmin
Constructor and Description |
---|
DiscoveryAdmin() |
Modifier and Type | Method and Description |
---|---|
void |
addDiscoveryProxy(DiscoveryProxyDetails pd)
Add a new WS-D proxy to the system configuration.
|
void |
disableServiceDiscovery(boolean sendBye)
Disable publishing services using WS-Discovery
|
void |
enableServiceDiscovery(String proxyURL)
Enable publishing services using WS-Discovery to the specified Discovery proxy
|
DiscoveryProxyDetails[] |
getDiscoveryProxies()
Get all the WS-D proxies configured.
|
DiscoveryProxyDetails |
getDiscoveryProxy(String name)
Get the WS-D proxy description for the specified name
|
ServiceDiscoveryConfig |
getServiceDiscoveryConfig()
Get the current service discovery configuration
|
TargetServiceDetails[] |
probeDiscoveryProxy(String name,
ProbeDetails probe)
Probe the specified WS-D proxy to search for target services discovered
|
void |
removeDiscoveryProxy(String name)
Remove the specified WS-D proxy from the configuration
|
TargetServiceDetails |
resolveTargetService(String name,
String serviceId)
Contact the specified the WS-D proxy and resolve the service with the
specified service ID
|
void |
updateDiscoveryProxy(DiscoveryProxyDetails pd)
Update an existing WS-D proxy configuration.
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public void addDiscoveryProxy(DiscoveryProxyDetails pd) throws Exception
pd
- WS-D proxy detailsException
- on errorpublic void removeDiscoveryProxy(String name) throws Exception
name
- Name of the proxy to be removedException
- on errorpublic void updateDiscoveryProxy(DiscoveryProxyDetails pd) throws Exception
pd
- the updated WS-D proxy configurationException
- on errorpublic DiscoveryProxyDetails[] getDiscoveryProxies() throws Exception
Exception
- on errorpublic DiscoveryProxyDetails getDiscoveryProxy(String name) throws Exception
name
- Name of the proxyException
- on errorpublic TargetServiceDetails[] probeDiscoveryProxy(String name, ProbeDetails probe) throws Exception
name
- Name of the proxy to be probedprobe
- Probe description containing the search criteriaException
- on errorpublic TargetServiceDetails resolveTargetService(String name, String serviceId) throws Exception
name
- Name of the WS-D proxy to be usedserviceId
- ID of the service to be resolvedException
- on errorpublic ServiceDiscoveryConfig getServiceDiscoveryConfig() throws Exception
Exception
- on errorpublic void enableServiceDiscovery(String proxyURL) throws Exception
proxyURL
- URL of the target discovery proxyException
- on errorCopyright © 2023 WSO2. All rights reserved.