p2ps.peer
Interface Config
- All Known Implementing Classes:
- ConfigImp, DefaultConfig
- public interface Config
The configuration for a p2ps peer.
- Version:
- $Revision: 295 $
- Author:
- Ian Wang
RENDEZVOUS_IF_REQUIRED
public static final Config.RendezvousRequirement RENDEZVOUS_IF_REQUIRED
RENDEZVOUS_ALWAYS
public static final Config.RendezvousRequirement RENDEZVOUS_ALWAYS
RENDEZVOUS_NEVER
public static final Config.RendezvousRequirement RENDEZVOUS_NEVER
getKeyStore
public java.lang.String getKeyStore()
- Returns:
- the keystore location (or null if not applicable)
getKeyAlias
public java.lang.String getKeyAlias()
- Returns:
- the alias of the certificate key for this peer (or null if not
applicable)
isKeyStoreTemporary
public boolean isKeyStoreTemporary()
- Returns:
- true if the key store is temporary for the lifetime of the peer
getIdentity
public Identity getIdentity()
- Returns:
- the identity for this peer (ignored if keystore is specified)
getClientSecurityLevel
public java.lang.String getClientSecurityLevel()
- Returns:
- the client security level
getServerSecurityLevel
public java.lang.String getServerSecurityLevel()
- Returns:
- the server security level
getDiscoveryServiceClass
public java.lang.String getDiscoveryServiceClass()
- Returns:
- the class of the discovery service
getPipeServiceClass
public java.lang.String getPipeServiceClass()
- Returns:
- the class of the pipe service
getRendezvousServiceClass
public java.lang.String getRendezvousServiceClass()
- Returns:
- the class of the rendezvous service
getGroupServiceClass
public java.lang.String getGroupServiceClass()
- Returns:
- the class of the group service
getPeerFactoryClass
public java.lang.String getPeerFactoryClass()
- Returns:
- the class of the peer factory
getIDFactoryClass
public java.lang.String getIDFactoryClass()
- Returns:
- the class of the id factory
getNetworkInterfaceClass
public java.lang.String getNetworkInterfaceClass()
- Returns:
- the class of the network interface factory
getAdvertInstantiatorConfigs
public InstantiatorConfig[] getAdvertInstantiatorConfigs()
- Returns:
- an array of configs for the advertisement instantiators
getRendezvousRequirement
public Config.RendezvousRequirement getRendezvousRequirement()
- Returns:
- either RENDEZVOUS_ALWAYS, RENDEZVOUS_IF_REQUIRED or RENDEZVOUS_NEVER
getLocalRendezvousEndpoints
public java.net.URI[] getLocalRendezvousEndpoints()
- Returns:
- an array of the local rendezvous endpoints
getRemoteRendezvousEndpoints
public java.net.URI[] getRemoteRendezvousEndpoints()
- Returns:
- an array of the remote rendezvous endpoints that the rendezvous
service should connect to.
getResolverConfigs
public ResolverConfig[] getResolverConfigs()
- Returns:
- an array of resolver configurations
getMinPort
public int getMinPort()
- Returns:
- the range of minimum available port number
getMaxPort
public int getMaxPort()
- Returns:
- the range of maximum available port number
isPortRangeInputOnly
public boolean isPortRangeInputOnly()
- Returns:
- true if the port range applies for input sockets only
getResolverConfig
public ResolverConfig getResolverConfig(java.lang.String classname)
- Returns:
- the resolver config for the specified resolver class