public class DummyClientManagerFacade extends ClientManagerFacade
PROP_CLIENT_ONLY| Constructor and Description |
|---|
DummyClientManagerFacade(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
FloodfillNetworkDatabaseFacade | getClientFloodfillNetworkDatabaseFacade(Hash dbid)Return the floodfill network database facade. |
SessionConfig | getClientSessionConfig(Destination _dest)Return the client's current config, or null if not connected. |
SessionKeyManager | getClientSessionKeyManager(Hash _dest)Get the session key manager for a given client. |
Set<Hash> | getPrimaryHashes()Return the set of primary hashes. |
boolean | isLocal(Destination dest)Determine if the destination specified is managed locally. |
boolean | isLocal(Hash destHash)Determine if the destination hash specified is managed locally. |
void | messageDeliveryStatusUpdate(Destination fromDest,
MessageId id,
long msgNonce,
int status)Update the delivery status of a message. |
void | messageReceived(ClientMessage msg)Receive a message from the network for a local client. |
void | reportAbuse(Destination dest,
String reason,
int severity)Instruct the client (or all clients) that they are under attack. |
void | requestLeaseSet(Destination dest,
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(Hash dest,
LeaseSet set)Request that the client authorize the Leases contained in the
LeaseSet, identified by destination hash. |
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)Shut down the client manager with a reason message. |
void | startup()Instruct the service that it should start normal operation. |
void | stopAcceptingClients()empty dummy implementation |
isAlive, listClients, registerMetaDest, renderStatusHTML, shouldPublishLeaseSet, unregisterMetaDest, verifyClientLivelinesspublic DummyClientManagerFacade(RouterContext ctx)
ctx - the router contextpublic FloodfillNetworkDatabaseFacade getClientFloodfillNetworkDatabaseFacade(Hash dbid)
getClientFloodfillNetworkDatabaseFacade in class ClientManagerFacadedbid - destination hash associated with the client who's subDb we're looking forpublic SessionConfig getClientSessionConfig(Destination _dest)
ClientManagerFacadegetClientSessionConfig in class ClientManagerFacade_dest - the client destinationpublic SessionKeyManager getClientSessionKeyManager(Hash _dest)
ClientManagerFacadegetClientSessionKeyManager in class ClientManagerFacade_dest - the destination hashpublic Set<Hash> getPrimaryHashes()
getPrimaryHashes in class ClientManagerFacadepublic boolean isLocal(Destination dest)
ClientManagerFacadeisLocal in class ClientManagerFacadedest - Destination to be checkedpublic boolean isLocal(Hash destHash)
ClientManagerFacadeisLocal in class ClientManagerFacadedestHash - Hash of Destination to be checkedpublic void messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long msgNonce, int status)
ClientManagerFacademessageDeliveryStatusUpdate in class ClientManagerFacadefromDest - the source destination of the messageid - the router's ID for this messagemsgNonce - the client's ID for this messagestatus - see I2CP MessageStatusMessage for success/failure codespublic void messageReceived(ClientMessage msg)
ClientManagerFacademessageReceived in class ClientManagerFacademsg - the received client messagepublic void reportAbuse(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 requestLeaseSet(Destination dest, 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 requestLeaseSet(Hash dest, LeaseSet set)
ClientManagerFacaderequestLeaseSet in class ClientManagerFacadedest - Hash of the destinationset - LeaseSet with requested leasespublic void restart()
Servicepublic void shutdown()
Servicepublic void shutdown(String msg)
ClientManagerFacadeshutdown in class ClientManagerFacademsg - the shutdown reasonpublic void startup()
Servicepublic void stopAcceptingClients()