public abstract class DiscoveryAgentFactory extends Object
Constructor and Description |
---|
DiscoveryAgentFactory() |
Modifier and Type | Method and Description |
---|---|
static DiscoveryAgent |
createAgent(URI remoteURI)
Static create method that performs the DiscoveryAgent search and handles the
configuration and setup.
|
abstract DiscoveryAgent |
createDiscoveryAgent(URI remoteURI)
Creates an instance of the given DiscoveryAgent and configures it using the
properties set on the given remote broker URI.
|
protected static DiscoveryAgentFactory |
findAgentFactory(URI location)
Searches for a DiscoveryAgentFactory by using the scheme from the given URI.
|
abstract String |
getName() |
public abstract DiscoveryAgent createDiscoveryAgent(URI remoteURI) throws Exception
remoteURI
- The URI used to configure remote discovery.Exception
- if an error occurs while creating the DiscoveryAgent instance.public abstract String getName()
public static DiscoveryAgent createAgent(URI remoteURI) throws Exception
remoteURI
- the URI used to configure the discovery mechanism.Exception
- if an error occurs while creating the DiscoveryAgent instance.protected static DiscoveryAgentFactory findAgentFactory(URI location) throws IOException
location
- The URI whose scheme will be used to locate a DiscoveryAgentFactory.IOException
- if an error occurs while locating the factory.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.