JXTA

net.jxta.impl.peergroup
Class AutomaticConfigurator

java.lang.Object
  extended by net.jxta.impl.peergroup.NullConfigurator
      extended by net.jxta.impl.peergroup.AutomaticConfigurator
All Implemented Interfaces:
PlatformConfigurator, Configurator
Direct Known Subclasses:
DefaultConfigurator

public class AutomaticConfigurator
extends NullConfigurator

A simple platform configurator. This implementation provides reasonable automatic configuration for edge peers on the JXTA public network.

This implementation will read default values from several Java system properties as appropriate:

jxta.peer.name -- The peer name to use. jxta.http.port -- The http port to use. jxta.tcp.port -- The tcp port to use.

See Also:
Configurator

Field Summary
 
Fields inherited from class net.jxta.impl.peergroup.NullConfigurator
advertisement, configFile, jxtaHome
 
Constructor Summary
AutomaticConfigurator(URI jxtaHome)
          Configures the platform using the specified directory.
 
Method Summary
 PlatformConfig getPlatformConfig()
          Retrieve the associated PlatformConfig and potentially performing any required configuration of the parameters before returning.
 
Methods inherited from class net.jxta.impl.peergroup.NullConfigurator
getConfigParams, isReconfigure, load, load, save, save, setConfigParams, setPlatformConfig, setReconfigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticConfigurator

public AutomaticConfigurator(URI jxtaHome)
                      throws ConfiguratorException
Configures the platform using the specified directory.

Parameters:
jxtaHome - store home URI
Throws:
ConfiguratorException - if a configuration error occurs
Method Detail

getPlatformConfig

public PlatformConfig getPlatformConfig()
                                 throws ConfiguratorException
Retrieve the associated PlatformConfig and potentially performing any required configuration of the parameters before returning.

Specified by:
getPlatformConfig in interface PlatformConfigurator
Overrides:
getPlatformConfig in class NullConfigurator
Returns:
PlatformConfig
Throws:
ConfiguratorException - If configuration error occurs.

JXSE