net.jxta.impl.peergroup
Class AutomaticConfigurator
java.lang.Object
net.jxta.impl.peergroup.NullConfigurator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.