public class DummyClientManagerFacade extends ClientManagerFacade
PROP_CLIENT_ONLY| Constructor and Description |
|---|
DummyClientManagerFacade(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
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) |
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 hash specified is managed locally.
|
void |
messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long msgNonce,
int status) |
void |
messageReceived(ClientMessage msg) |
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) |
void |
restart()
Perform a soft restart.
|
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 |
stopAcceptingClients() |
isAlive, listClients, registerMetaDest, renderStatusHTML, shouldPublishLeaseSet, unregisterMetaDest, verifyClientLivelinesspublic DummyClientManagerFacade(RouterContext ctx)
public boolean isLocal(net.i2p.data.Hash destHash)
ClientManagerFacadeisLocal in class ClientManagerFacadedestHash - Hash of Destination to be checkedpublic boolean isLocal(net.i2p.data.Destination dest)
ClientManagerFacadeisLocal in class ClientManagerFacadedest - Destination to be checkedpublic void reportAbuse(net.i2p.data.Destination dest,
String reason,
int severity)
ClientManagerFacadereportAbuse 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 void messageReceived(ClientMessage msg)
messageReceived in class ClientManagerFacadepublic void requestLeaseSet(net.i2p.data.Destination dest,
net.i2p.data.LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)
ClientManagerFacaderequestLeaseSet 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)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 startup()
Servicepublic void stopAcceptingClients()
public void shutdown()
Servicepublic void shutdown(String msg)
shutdown in class ClientManagerFacadepublic void restart()
Servicepublic void messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long msgNonce,
int status)
messageDeliveryStatusUpdate in class ClientManagerFacadeid - the router's ID for this messagemsgNonce - the client's ID for this messagestatus - see I2CP MessageStatusMessage for success/failure codespublic net.i2p.data.i2cp.SessionConfig getClientSessionConfig(net.i2p.data.Destination _dest)
ClientManagerFacadegetClientSessionConfig in class ClientManagerFacadepublic net.i2p.crypto.SessionKeyManager getClientSessionKeyManager(net.i2p.data.Hash _dest)
getClientSessionKeyManager in class ClientManagerFacadepublic void requestLeaseSet(net.i2p.data.Hash dest,
net.i2p.data.LeaseSet set)
requestLeaseSet in class ClientManagerFacade