|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPageBoxLib.TokenCallbackImpl
Token ring receiver implementation. Designed to be stored in a context attribute.
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Nested Class Summary | |
(package private) class |
TokenCallbackImpl.CallbackSender
Stores the callback Sender association. |
(package private) class |
TokenCallbackImpl.RepositoryReg
TokenCallbackImpl.callbacks entry. |
(package private) class |
TokenCallbackImpl.Sender
Synchronous sender to use in callbacks. |
Field Summary | |
private java.util.TreeMap |
archives
Archives currently installed Key: archive name Value: Archive object |
(package private) java.util.HashMap |
callbacks
Map of PageBoxAPI callbacks. |
private int |
corrid
Message correlation ID |
private Log |
log
Logging object |
private java.util.LinkedList |
msgList
Messages queued before the frame reception |
(package private) long |
netTime
Time spent in successful frameSend requests |
(package private) java.lang.String |
newRepUrl
New Repository URL |
(package private) java.lang.String |
oldRepUrl
Previous Repository URL |
private RuleHandler.Rule |
rule
Memory representation of rules.xml |
private java.lang.String |
subUrl
URL of the DeployIF web service of the subscribed PageBox |
Constructor Summary | |
(package private) |
TokenCallbackImpl(RuleHandler.Rule rule,
Log log)
Constructor. |
Method Summary | |
(package private) Deployer |
getDeployer(TokenFrame tf)
Return the DeployIF invocation class. |
(package private) Querier |
getQuerier(TokenFrame tf)
Return the RepoQueryIF invocation class. |
(package private) java.lang.String |
getUrl()
Returns the URL of this PageBox DeployIF Web service. |
(package private) void |
processFrame(TokenFrame tf)
Called by TokenImpl to submit a frame to processing |
(package private) void |
registerCallback(java.lang.String archive,
TokenCallbackIF tci)
Register a PageBoxAPI callback. |
(package private) boolean |
removePending()
Remove callbacks entries with toRemove is true. |
(package private) boolean |
removePending(TokenFrame tf)
Remove RepositoryReg from callbacks when toRemove is true. |
(package private) void |
renameRepository(java.lang.String oldRepUrl,
java.lang.String newRepUrl)
Change the repository URL. |
(package private) void |
retry()
Called periodically by DynDns. |
void |
setUrl(java.lang.String subUrl)
Set PageBox URL. |
void |
setUrl(java.lang.String subUrl,
java.util.TreeMap archives)
Set archive map and PageBox URL. |
(package private) void |
unregisterCallback(java.lang.String archive)
Unregister a PageBoxAPI callback. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.HashMap callbacks
private java.lang.String subUrl
private RuleHandler.Rule rule
private Log log
private java.util.TreeMap archives
private int corrid
private java.util.LinkedList msgList
java.lang.String oldRepUrl
java.lang.String newRepUrl
long netTime
Constructor Detail |
TokenCallbackImpl(RuleHandler.Rule rule, Log log)
rule
- memory representation of rules.xmlMethod Detail |
public void setUrl(java.lang.String subUrl, java.util.TreeMap archives)
subUrl
- URL of the DeployIF web service of the subscribed PageBoxarchives
- archive mappublic void setUrl(java.lang.String subUrl)
subUrl
- URL of the DeployIF web service of the subscribed PageBoxvoid registerCallback(java.lang.String archive, TokenCallbackIF tci)
archive
- archive namevoid unregisterCallback(java.lang.String archive)
archive
- archive namevoid processFrame(TokenFrame tf)
tf
- frame to processvoid retry()
java.lang.String getUrl()
Deployer getDeployer(TokenFrame tf)
tf
- frame
Querier getQuerier(TokenFrame tf)
tf
- frame
boolean removePending(TokenFrame tf)
tf
- frame
boolean removePending()
void renameRepository(java.lang.String oldRepUrl, java.lang.String newRepUrl)
oldRepUrl
- previous Repository URLnewRepUrl
- new Repository URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |