InternalClientManager, Servicepublic class ClientManagerFacadeImpl extends ClientManagerFacade implements InternalClientManager
| 修飾子とタイプ | フィールド | 説明 |
|---|---|---|
static java.lang.String |
DEFAULT_HOST |
|
static int |
DEFAULT_PORT |
|
static java.lang.String |
PROP_CLIENT_HOST |
note that this is different than the property the client side uses, i2cp.tcp.host
|
static java.lang.String |
PROP_CLIENT_PORT |
note that this is different than the property the client side uses, i2cp.tcp.port
|
PROP_CLIENT_ONLY| コンストラクタ | 説明 |
|---|---|
ClientManagerFacadeImpl(RouterContext context) |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
I2CPMessageQueue |
connect() |
The InternalClientManager interface.
|
SessionConfig |
getClientSessionConfig(Destination dest) |
Return the client's current config, or null if not connected
|
SessionKeyManager |
getClientSessionKeyManager(Hash dest) |
Return the client's current manager or null if not connected
|
boolean |
isAlive() |
|
boolean |
isLocal(Destination dest) |
Determine if the destination specified is managed locally.
|
boolean |
isLocal(Hash destHash) |
Determine if the destination specified is managed locally.
|
java.util.Set<Destination> |
listClients() |
Return the list of locally connected clients
|
void |
messageDeliveryStatusUpdate(Destination fromDest,
MessageId id,
long messageNonce,
int status) |
|
void |
messageReceived(ClientMessage msg) |
|
void |
renderStatusHTML(java.io.Writer out) |
推奨されていません。
unused
|
void |
reportAbuse(Destination dest,
java.lang.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 a particular client authorize the Leases contained in the
LeaseSet.
|
void |
restart() |
Perform a soft restart.
|
boolean |
shouldPublishLeaseSet(Hash destinationHash) |
Does the client specified want their leaseSet published?
|
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(java.lang.String msg) |
|
void |
startup() |
Instruct the service that it should start normal operation.
|
boolean |
verifyClientLiveliness() |
public static final java.lang.String PROP_CLIENT_PORT
public static final int DEFAULT_PORT
public static final java.lang.String PROP_CLIENT_HOST
public static final java.lang.String DEFAULT_HOST
public ClientManagerFacadeImpl(RouterContext context)
public void startup()
Servicepublic void shutdown()
Servicepublic void shutdown(java.lang.String msg)
shutdown クラス内 ClientManagerFacademsg - message to send to the clientspublic void restart()
Servicepublic boolean isAlive()
isAlive クラス内 ClientManagerFacadepublic boolean verifyClientLiveliness()
verifyClientLiveliness クラス内 ClientManagerFacadepublic void requestLeaseSet(Destination dest, LeaseSet set, long timeout, Job onCreateJob, Job onFailedJob)
requestLeaseSet クラス内 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)
The LeaseSet contains Leases only; it is unsigned and does not have the destination set.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)
requestLeaseSet クラス内 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).
The LeaseSet contains Leases only; it is unsigned and does not have the destination set.public void reportAbuse(Destination dest, java.lang.String reason, int severity)
reportAbuse クラス内 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 boolean isLocal(Destination dest)
isLocal クラス内 ClientManagerFacadedest - Destination to be checkedpublic boolean isLocal(Hash destHash)
isLocal クラス内 ClientManagerFacadedestHash - Hash of Destination to be checkedpublic boolean shouldPublishLeaseSet(Hash destinationHash)
ClientManagerFacadeshouldPublishLeaseSet クラス内 ClientManagerFacadepublic void messageDeliveryStatusUpdate(Destination fromDest, MessageId id, long messageNonce, int status)
messageDeliveryStatusUpdate クラス内 ClientManagerFacadeid - the router's ID for this messagemessageNonce - the client's ID for this messagestatus - see I2CP MessageStatusMessage for success/failure codespublic void messageReceived(ClientMessage msg)
messageReceived クラス内 ClientManagerFacadepublic SessionConfig getClientSessionConfig(Destination dest)
public SessionKeyManager getClientSessionKeyManager(Hash dest)
@Deprecated
public void renderStatusHTML(java.io.Writer out)
throws java.io.IOException
renderStatusHTML インタフェース内 ServicerenderStatusHTML クラス内 ClientManagerFacadejava.io.IOExceptionpublic java.util.Set<Destination> listClients()
listClients クラス内 ClientManagerFacadepublic I2CPMessageQueue connect() throws I2PSessionException
connect インタフェース内 InternalClientManagerI2PSessionException - if the router isn't ready