|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.router.ClientManagerFacade
net.i2p.router.dummy.DummyClientManagerFacade
public class DummyClientManagerFacade
Manage all interactions with clients
| Field Summary |
|---|
| Fields inherited from class net.i2p.router.ClientManagerFacade |
|---|
PROP_CLIENT_ONLY |
| Constructor Summary | |
|---|---|
DummyClientManagerFacade(RouterContext ctx)
|
|
| Method Summary | |
|---|---|
SessionConfig |
getClientSessionConfig(Destination _dest)
Return the client's current config, or null if not connected |
SessionKeyManager |
getClientSessionKeyManager(Hash _dest)
|
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,
boolean delivered)
|
void |
messageReceived(ClientMessage msg)
|
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)
|
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()
|
| Methods inherited from class net.i2p.router.ClientManagerFacade |
|---|
isAlive, listClients, renderStatusHTML, shouldPublishLeaseSet, verifyClientLiveliness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyClientManagerFacade(RouterContext ctx)
| Method Detail |
|---|
public boolean isLocal(Hash destHash)
ClientManagerFacade
isLocal in class ClientManagerFacadedestHash - Hash of Destination to be checkedpublic boolean isLocal(Destination dest)
ClientManagerFacade
isLocal in class ClientManagerFacadedest - Destination to be checked
public void reportAbuse(Destination dest,
String reason,
int severity)
ClientManagerFacade
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 void messageReceived(ClientMessage msg)
messageReceived in class ClientManagerFacade
public void requestLeaseSet(Destination dest,
LeaseSet set,
long timeout,
Job onCreateJob,
Job onFailedJob)
ClientManagerFacade
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)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()
Service
public void stopAcceptingClients()
public void shutdown()
Service
public void shutdown(String msg)
shutdown in class ClientManagerFacadepublic void restart()
Service
public void messageDeliveryStatusUpdate(Destination fromDest,
MessageId id,
boolean delivered)
messageDeliveryStatusUpdate in class ClientManagerFacadepublic SessionConfig getClientSessionConfig(Destination _dest)
ClientManagerFacade
getClientSessionConfig in class ClientManagerFacadepublic SessionKeyManager getClientSessionKeyManager(Hash _dest)
getClientSessionKeyManager in class ClientManagerFacade
public void requestLeaseSet(Hash dest,
LeaseSet set)
requestLeaseSet in class ClientManagerFacade
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||