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

Nested Class Summary
static class Config.RendezvousRequirement
           
 
Field Summary
static Config.RendezvousRequirement RENDEZVOUS_ALWAYS
           
static Config.RendezvousRequirement RENDEZVOUS_IF_REQUIRED
           
static Config.RendezvousRequirement RENDEZVOUS_NEVER
           
 
Method Summary
 InstantiatorConfig[] getAdvertInstantiatorConfigs()
           
 java.lang.String getClientSecurityLevel()
           
 java.lang.String getDiscoveryServiceClass()
           
 java.lang.String getGroupServiceClass()
           
 Identity getIdentity()
           
 java.lang.String getIDFactoryClass()
           
 java.lang.String getKeyAlias()
           
 java.lang.String getKeyStore()
           
 java.net.URI[] getLocalRendezvousEndpoints()
           
 int getMaxPort()
           
 int getMinPort()
           
 java.lang.String getNetworkInterfaceClass()
           
 java.lang.String getPeerFactoryClass()
           
 java.lang.String getPipeServiceClass()
           
 java.net.URI[] getRemoteRendezvousEndpoints()
           
 Config.RendezvousRequirement getRendezvousRequirement()
           
 java.lang.String getRendezvousServiceClass()
           
 ResolverConfig getResolverConfig(java.lang.String classname)
           
 ResolverConfig[] getResolverConfigs()
           
 java.lang.String getServerSecurityLevel()
           
 boolean isKeyStoreTemporary()
           
 boolean isPortRangeInputOnly()
           
 

Field Detail

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
Method Detail

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