public class Route extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_LOCAL |
static int |
ACTION_PROXY |
static int |
ACTION_REDIRECT |
static int |
ACTION_RELAY |
Constructor and Description |
---|
Route(Node node,
DefaultRouteBean defaultRouteBean) |
Route(Node node,
int action) |
Route(Node node,
RouteBean routeBean) |
Modifier and Type | Method and Description |
---|---|
void |
addServer(String host) |
int |
getAction() |
Peer[] |
getServers() |
static int |
parseAction(String action) |
void |
removeServer(String host) |
public static final int ACTION_LOCAL
public static final int ACTION_RELAY
public static final int ACTION_PROXY
public static final int ACTION_REDIRECT
public Route(Node node, int action)
public Route(Node node, DefaultRouteBean defaultRouteBean)
public static int parseAction(String action)
public void addServer(String host) throws IllegalArgumentException
IllegalArgumentException
public void removeServer(String host)
public int getAction()
public Peer[] getServers()