public class ClientManagerFacadeImpl extends ClientManagerFacade implements net.i2p.internal.InternalClientManager
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
static String |
PROP_CLIENT_HOST
note that this is different than the property the client side uses, i2cp.tcp.host
|
static String |
PROP_CLIENT_PORT
note that this is different than the property the client side uses, i2cp.tcp.port
|
PROP_CLIENT_ONLY| Constructor and Description |
|---|
ClientManagerFacadeImpl(RouterContext context) |
| Modifier and Type | Method and Description |
|---|---|
net.i2p.internal.I2CPMessageQueue |
connect()
The InternalClientManager interface.
|
net.i2p.data.i2cp.SessionConfig |
getClientSessionConfig(net.i2p.data.Destination dest)
Return the client's current config, or null if not connected
|
net.i2p.crypto.SessionKeyManager |
getClientSessionKeyManager(net.i2p.data.Hash dest)
Return the client's current manager or null if not connected
|
boolean |
isAlive() |
boolean |
isLocal(net.i2p.data.Destination dest)
Determine if the destination specified is managed locally.
|
boolean |
isLocal(net.i2p.data.Hash destHash)
Determine if the destination specified is managed locally.
|
Set<net.i2p.data.Destination> |
listClients()
Return the list of locally connected clients
|
void |
messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status) |
void |
messageReceived(ClientMessage msg) |
void |
registerMetaDest(net.i2p.data.Destination dest)
Declare that we're going to publish a meta LS for this destination.
|
void |
renderStatusHTML(Writer out)
Deprecated.
unused
|
void |
reportAbuse(net.i2p.data.Destination dest,
String reason,
int severity)
Instruct the client (or all clients) that they are under attack.
|
void |
requestLeaseSet(net.i2p.data.Destination dest,
net.i2p.data.LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)
Request that a particular client authorize the Leases contained in the
LeaseSet, after which the onCreateJob is queued up.
|
void |
requestLeaseSet(net.i2p.data.Hash dest,
net.i2p.data.LeaseSet set)
Request that a particular client authorize the Leases contained in the
LeaseSet.
|
void |
restart()
Perform a soft restart.
|
boolean |
shouldPublishLeaseSet(net.i2p.data.Hash destinationHash)
Does the client specified want their leaseSet published?
|
void |
shutdown()
Instruct the service that the router is shutting down and that it should do
whatever is necessary to go down gracefully.
|
void |
shutdown(String msg) |
void |
startup()
Instruct the service that it should start normal operation.
|
void |
unregisterMetaDest(net.i2p.data.Destination dest)
Declare that we're no longer going to publish a meta LS for this destination.
|
boolean |
verifyClientLiveliness() |
public static final String PROP_CLIENT_PORT
public static final int DEFAULT_PORT
public static final String PROP_CLIENT_HOST
public static final String DEFAULT_HOST
public ClientManagerFacadeImpl(RouterContext context)
public void startup()
Servicepublic void shutdown()
Servicepublic void shutdown(String msg)
shutdown in class ClientManagerFacademsg - message to send to the clientspublic void restart()
Servicepublic boolean isAlive()
isAlive in class ClientManagerFacadepublic boolean verifyClientLiveliness()
verifyClientLiveliness in class ClientManagerFacadepublic void requestLeaseSet(net.i2p.data.Destination dest,
net.i2p.data.LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)
requestLeaseSet in class ClientManagerFacadedest - Destination from which the LeaseSet's authorization should be requestedset - LeaseSet with requested leases - this object must be updated to contain the
signed version (as well as any changed/added/removed Leases)
The LeaseSet contains Leases only; it is unsigned and does not have the destination set.timeout - ms to wait before failingonCreateJob - Job to run after the LeaseSet is authorizedonFailedJob - Job to run after the timeout passes without receiving authorizationpublic void requestLeaseSet(net.i2p.data.Hash dest,
net.i2p.data.LeaseSet set)
requestLeaseSet in class ClientManagerFacadedest - Destination from which the LeaseSet's authorization should be requestedset - LeaseSet with requested leases - this object must be updated to contain the
signed version (as well as any changed/added/removed Leases).
The LeaseSet contains Leases only; it is unsigned and does not have the destination set.public void reportAbuse(net.i2p.data.Destination dest,
String reason,
int severity)
reportAbuse in class ClientManagerFacadedest - Destination under attack, or null if all destinations are affectedreason - Why the router thinks that there is abusive behaviorseverity - How severe the abuse is, with 0 being not severe and 255 is the maxpublic boolean isLocal(net.i2p.data.Destination dest)
isLocal in class ClientManagerFacadedest - Destination to be checkedpublic boolean isLocal(net.i2p.data.Hash destHash)
isLocal in class ClientManagerFacadedestHash - Hash of Destination to be checkedpublic boolean shouldPublishLeaseSet(net.i2p.data.Hash destinationHash)
ClientManagerFacadeshouldPublishLeaseSet in class ClientManagerFacadepublic void messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status)
messageDeliveryStatusUpdate in class ClientManagerFacadeid - the router's ID for this messagemessageNonce - the client's ID for this message, greater than zerostatus - see I2CP MessageStatusMessage for success/failure codespublic void messageReceived(ClientMessage msg)
messageReceived in class ClientManagerFacadepublic net.i2p.data.i2cp.SessionConfig getClientSessionConfig(net.i2p.data.Destination dest)
getClientSessionConfig in class ClientManagerFacadepublic net.i2p.crypto.SessionKeyManager getClientSessionKeyManager(net.i2p.data.Hash dest)
getClientSessionKeyManager in class ClientManagerFacade@Deprecated public void renderStatusHTML(Writer out) throws IOException
renderStatusHTML in interface ServicerenderStatusHTML in class ClientManagerFacadeIOExceptionpublic Set<net.i2p.data.Destination> listClients()
listClients in class ClientManagerFacadepublic net.i2p.internal.I2CPMessageQueue connect()
throws net.i2p.client.I2PSessionException
connect in interface net.i2p.internal.InternalClientManagernet.i2p.client.I2PSessionException - if the router isn't readypublic void registerMetaDest(net.i2p.data.Destination dest)
throws net.i2p.client.I2PSessionException
registerMetaDest in class ClientManagerFacadenet.i2p.client.I2PSessionException - on duplicate destpublic void unregisterMetaDest(net.i2p.data.Destination dest)
unregisterMetaDest in class ClientManagerFacade