public abstract class ClientManagerFacade extends Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_CLIENT_ONLY |
| Constructor and Description |
|---|
ClientManagerFacade() |
| Modifier and Type | Method and Description |
|---|---|
abstract net.i2p.data.i2cp.SessionConfig |
getClientSessionConfig(net.i2p.data.Destination dest)
Return the client's current config, or null if not connected
|
abstract net.i2p.crypto.SessionKeyManager |
getClientSessionKeyManager(net.i2p.data.Hash dest) |
boolean |
isAlive() |
abstract boolean |
isLocal(net.i2p.data.Destination dest)
Determine if the destination specified is managed locally.
|
abstract boolean |
isLocal(net.i2p.data.Hash destHash)
Determine if the destination hash specified is managed locally.
|
Set<net.i2p.data.Destination> |
listClients()
Return the list of locally connected clients
|
abstract void |
messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status) |
abstract 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) |
abstract void |
reportAbuse(net.i2p.data.Destination dest,
String reason,
int severity)
Instruct the client (or all clients) that they are under attack.
|
abstract 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.
|
abstract void |
requestLeaseSet(net.i2p.data.Hash dest,
net.i2p.data.LeaseSet set) |
boolean |
shouldPublishLeaseSet(net.i2p.data.Hash destinationHash)
Does the client specified want their leaseSet published?
|
abstract void |
shutdown(String msg) |
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_ONLY
public abstract void requestLeaseSet(net.i2p.data.Destination dest,
net.i2p.data.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(net.i2p.data.Hash dest,
net.i2p.data.LeaseSet set)
public abstract void reportAbuse(net.i2p.data.Destination dest,
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(net.i2p.data.Destination dest)
dest - Destination to be checkedpublic abstract boolean isLocal(net.i2p.data.Hash destHash)
destHash - Hash of Destination to be checkedpublic abstract void messageDeliveryStatusUpdate(net.i2p.data.Destination fromDest,
net.i2p.data.i2cp.MessageId id,
long messageNonce,
int status)
id - the router's ID for this messagemessageNonce - the client's ID for this messagestatus - see I2CP MessageStatusMessage for success/failure codespublic abstract void messageReceived(ClientMessage msg)
public boolean verifyClientLiveliness()
public boolean isAlive()
public boolean shouldPublishLeaseSet(net.i2p.data.Hash destinationHash)
public Set<net.i2p.data.Destination> listClients()
public abstract net.i2p.data.i2cp.SessionConfig getClientSessionConfig(net.i2p.data.Destination dest)
public abstract net.i2p.crypto.SessionKeyManager getClientSessionKeyManager(net.i2p.data.Hash dest)
public void renderStatusHTML(Writer out) throws IOException
renderStatusHTML in interface ServiceIOExceptionpublic abstract void shutdown(String msg)
public void registerMetaDest(net.i2p.data.Destination dest)
throws net.i2p.client.I2PSessionException
net.i2p.client.I2PSessionException - on duplicate destpublic void unregisterMetaDest(net.i2p.data.Destination dest)