|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.ClientManagerFacade
public abstract class ClientManagerFacade
Manage all interactions with clients
Field Summary | |
---|---|
static java.lang.String |
PROP_CLIENT_ONLY
|
Constructor Summary | |
---|---|
ClientManagerFacade()
|
Method Summary | |
---|---|
abstract SessionConfig |
getClientSessionConfig(Destination dest)
Return the client's current config, or null if not connected |
abstract boolean |
isLocal(Destination dest)
Determine if the destination specified is managed locally. |
abstract boolean |
isLocal(Hash destHash)
Determine if the destination hash specified is managed locally. |
java.util.Set |
listClients()
Return the list of locally connected clients |
abstract void |
messageDeliveryStatusUpdate(Destination fromDest,
MessageId id,
boolean delivered)
|
abstract void |
messageReceived(ClientMessage msg)
|
void |
renderStatusHTML(java.io.Writer out)
|
abstract void |
reportAbuse(Destination dest,
java.lang.String reason,
int severity)
Instruct the client (or all clients) that they are under attack. |
abstract 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. |
abstract void |
requestLeaseSet(Hash dest,
LeaseSet set)
|
boolean |
shouldPublishLeaseSet(Hash destinationHash)
Does the client specified want their leaseSet published? |
boolean |
verifyClientLiveliness()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.i2p.router.Service |
---|
restart, shutdown, startup |
Field Detail |
---|
public static final java.lang.String PROP_CLIENT_ONLY
Constructor Detail |
---|
public ClientManagerFacade()
Method Detail |
---|
public abstract void requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob)
dest
- 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 abstract void requestLeaseSet(Hash dest, LeaseSet set)
public abstract void reportAbuse(Destination dest, java.lang.String reason, int severity)
dest
- 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 abstract boolean isLocal(Destination dest)
dest
- Destination to be checkedpublic abstract boolean isLocal(Hash destHash)
destHash
- Hash of Destination to be checkedpublic abstract void messageDeliveryStatusUpdate(Destination fromDest, MessageId id, boolean delivered)
public abstract void messageReceived(ClientMessage msg)
public boolean verifyClientLiveliness()
public boolean shouldPublishLeaseSet(Hash destinationHash)
public java.util.Set listClients()
public abstract SessionConfig getClientSessionConfig(Destination dest)
public void renderStatusHTML(java.io.Writer out) throws java.io.IOException
renderStatusHTML
in interface Service
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |