public class Reseeder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String | DEFAULT_SEED_URLNOTE - URLs that are in both the standard and SSL groups must use the same hostname,
so the reseed process will not download from both. |
static String | DEFAULT_SSL_SEED_URLThe I2P reseed servers are managed by backup (backup@mail.i2p). |
static String | PROP_DISABLE |
static String | PROP_PROXY_AUTH_ENABLEIf true, enable HTTP proxy authentication. |
static String | PROP_PROXY_ENABLE |
static String | PROP_PROXY_HOSTHost for the HTTP proxy used during reseed. |
static String | PROP_PROXY_PASSWORDPassword for HTTP proxy authentication. |
static String | PROP_PROXY_PORTPort for the HTTP proxy used during reseed. |
static String | PROP_PROXY_USERNAME |
static String | PROP_RESEED_URL |
static String | PROP_SPROXY_AUTH_ENABLEIf true, enable SSL proxy authentication. |
static String | PROP_SPROXY_ENABLEIf true, enable SSL proxy for reseed. |
static String | PROP_SPROXY_HOSTHost for the SSL proxy used during reseed. |
static String | PROP_SPROXY_PASSWORDPassword for SSL proxy authentication. |
static String | PROP_SPROXY_PORTPort for the SSL proxy used during reseed. |
static String | PROP_SPROXY_TYPE |
static String | PROP_SPROXY_USERNAMEUsername for SSL proxy authentication. |
static String | PROP_SSL_DISABLE |
static String | PROP_SSL_REQUIRED |
| Constructor and Description |
|---|
Reseeder(RouterContext ctx,
ReseedChecker rc)Holds context and checker references for reseed operations. |
| Modifier and Type | Method and Description |
|---|---|
(package private) void | requestReseed()Start a reseed using the default reseed URLs. |
(package private) int | requestReseed(InputStream in)Start a reseed from a zip or su3 input stream. |
(package private) void | requestReseed(URI url)Start a reseed from a single zip or su3 URL only. |
public static final String DEFAULT_SEED_URL
public static final String DEFAULT_SSL_SEED_URL
public static final String PROP_DISABLE
public static final String PROP_PROXY_AUTH_ENABLE
public static final String PROP_PROXY_ENABLE
public static final String PROP_PROXY_HOST
public static final String PROP_PROXY_PASSWORD
public static final String PROP_PROXY_PORT
public static final String PROP_PROXY_USERNAME
public static final String PROP_RESEED_URL
public static final String PROP_SPROXY_AUTH_ENABLE
public static final String PROP_SPROXY_ENABLE
public static final String PROP_SPROXY_HOST
public static final String PROP_SPROXY_PASSWORD
public static final String PROP_SPROXY_PORT
public static final String PROP_SPROXY_TYPE
public static final String PROP_SPROXY_USERNAME
public static final String PROP_SSL_DISABLE
public static final String PROP_SSL_REQUIRED
Reseeder(RouterContext ctx, ReseedChecker rc)
ctx - the router contextrc - status and error reportingvoid requestReseed()
int requestReseed(InputStream in) throws IOException
IOException - on most errorsvoid requestReseed(URI url) throws IllegalArgumentException
IllegalArgumentException - if it doesn't end with zip or su3