|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPageBoxLib.TokenImpl
Token ring receiver implementation.
alexis.grandemange@pagebox.net
Changes:
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 |
TokenImpl.Context
Token context stored as a ServletContext attribute. |
(package private) class |
TokenImpl.TokenThread
Thread class sending frames to the next station on the ring. |
| Field Summary | |
(package private) ServletContext |
ctx
Unique to the Web application. |
(package private) Log |
log
Logging object Setup by DeployImpl. |
(package private) long |
period
Token timeout; default: 2 secs. |
(package private) TokenFrame |
pingFrame
Frame used to to check the Repository state |
(package private) TokenCallbackImpl |
tcbi
Class processing frame messages. |
(package private) TokenImpl.Context |
tctx
Token context. |
(package private) TokenTest |
tt
Used to test the Token implementation |
(package private) java.lang.String |
workDir
Directory where XML and log files are defined. |
| Constructor Summary | |
TokenImpl()
|
|
| Method Summary | |
(package private) void |
end()
Requires the thread termination. |
DeployIF.Status |
frameSend(TokenFrame frame)
TokenIF method. |
DeployIF.Status |
frameSend2(TokenFrame frame)
Called by HTTPDeploy. |
DeployIF.Status |
frameSend3(TokenFrame frame)
Common implementation of frameSend. |
private java.lang.String |
ser(java.lang.Object o)
Serializer for LinkedList entries. |
(package private) DeployIF.Status |
test()
Use TokenTest to simulate errors. |
(package private) void |
tokenInit()
Called by DeployImpl.init. |
(package private) void |
tokenRenameRepository(java.lang.String oldRepUrl,
java.lang.String newRepUrl)
Change the repository URL. |
private java.lang.Object |
unser(java.lang.String s)
Unserializer for LinkedList entries. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String workDir
ServletContext ctx
Log log
TokenCallbackImpl tcbi
long period
TokenImpl.Context tctx
TokenTest tt
TokenFrame pingFrame
| Constructor Detail |
public TokenImpl()
| Method Detail |
void tokenInit()
void tokenRenameRepository(java.lang.String oldRepUrl,
java.lang.String newRepUrl)
oldRepUrl - previous Repository URLnewRepUrl - new Repository URLpublic DeployIF.Status frameSend(TokenFrame frame)
frameSend in interface TokenIFframe - sent frame
DeployIF.Status test()
public DeployIF.Status frameSend2(TokenFrame frame)
frame - sent frame
public DeployIF.Status frameSend3(TokenFrame frame)
frame - sent frame
private java.lang.String ser(java.lang.Object o)
private java.lang.Object unser(java.lang.String s)
s - serialized object
void end()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||