|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.PeerSelectionCriteria
public class PeerSelectionCriteria
Defines the criteria for selecting a set of peers for use when searching the PeerManager Only used by PeerTestJob, which may not have a point.
| Field Summary | |
|---|---|
static int |
PURPOSE_GARLIC
The peers will be used for garlic routed messages |
static int |
PURPOSE_SOURCE_ROUTE
The peers will be used for a source routed reply block message |
static int |
PURPOSE_TEST
The peers will be used for a test message |
static int |
PURPOSE_TUNNEL
The peers will be used in a tunnel |
| Constructor Summary | |
|---|---|
PeerSelectionCriteria()
|
|
| Method Summary | |
|---|---|
int |
getMaximumRequired()
Maximum number of peers required |
int |
getMinimumRequired()
Minimum number of peers required |
int |
getPurpose()
Purpose for which the peers will be used |
void |
setMaximumRequired(int max)
|
void |
setMinimumRequired(int min)
|
void |
setPurpose(int purpose)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PURPOSE_TUNNEL
public static final int PURPOSE_GARLIC
public static final int PURPOSE_SOURCE_ROUTE
public static final int PURPOSE_TEST
| Constructor Detail |
|---|
public PeerSelectionCriteria()
| Method Detail |
|---|
public int getMinimumRequired()
public void setMinimumRequired(int min)
public int getMaximumRequired()
public void setMaximumRequired(int max)
public int getPurpose()
public void setPurpose(int purpose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||