org.gcube.common.clients.config
Class DiscoveryConfig<A,S>

java.lang.Object
  extended by org.gcube.common.clients.config.AbstractConfig<A,S>
      extended by org.gcube.common.clients.config.DiscoveryConfig<A,S>
Type Parameters:
A - the type of service addresses
S - the type of service stubs
All Implemented Interfaces:
ProxyConfig<A,S>

public class DiscoveryConfig<A,S>
extends AbstractConfig<A,S>

The configuration of a proxy created in discovery mode.

Author:
Fabio Simeoni
See Also:
DiscoveryDelegate

Constructor Summary
DiscoveryConfig(ProxyPlugin<A,S,?> plugin, Query<A> query, EndpointCache<A> cache)
          Creates an instance with a given ProxyPlugin, Query and call timeout.
 
Method Summary
 EndpointCache<A> cache()
          Returns the address cache used by the proxy.
 Query<A> query()
          Returns the query used by the proxy.
 
Methods inherited from class org.gcube.common.clients.config.AbstractConfig
addProperty, addProperty, hasProperty, plugin, property, timeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryConfig

public DiscoveryConfig(ProxyPlugin<A,S,?> plugin,
                       Query<A> query,
                       EndpointCache<A> cache)
Creates an instance with a given ProxyPlugin, Query and call timeout.

Parameters:
plugin - the plugin
query - the query
the - timeout
Method Detail

cache

public EndpointCache<A> cache()
Returns the address cache used by the proxy.

Returns:
the cache

query

public Query<A> query()
Returns the query used by the proxy.

Returns:
the query


Copyright © 2013. All Rights Reserved.