|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.lang.Thread
|
+--JSPservletPkg.Mapper.Checker
Checker thread class.
| Field Summary | |
private int |
action
Equals NOOP or CHECK. |
private java.util.HashMap |
allSubscribers
Map of subscribers. |
private boolean |
completed
Used to check request completion. |
private boolean |
isStarted
Protects again startup race condition. |
private boolean |
rc
Used in case of check. |
private java.lang.String |
subscrib
Used in case of check. |
| Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
| Constructor Summary | |
(package private) |
Mapper.Checker()
Starts the thread. |
| Method Summary | |
private java.lang.String[] |
available(java.lang.String[] subscribers)
Returns available subscribers among a list. |
private boolean |
check(java.lang.String subscriber)
Checks if a subscriber is up. |
private void |
checkAll(int counterForPing)
Require allSubscribers update. |
void |
run()
Main method of Thread. |
private boolean |
threadCheck(java.lang.String subscriber)
Checks if a subscriber is up. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
private java.util.HashMap allSubscribers
private int action
private java.lang.String subscrib
private boolean rc
private boolean completed
private boolean isStarted
| Constructor Detail |
Mapper.Checker()
| Method Detail |
private void checkAll(int counterForPing)
counterForPing - hint between to update only a part of allSubscribers.private boolean check(java.lang.String subscriber)
subscriber - subscriber url.public void run()
private final java.lang.String[] available(java.lang.String[] subscribers)
subscribers - array of subscribers.private boolean threadCheck(java.lang.String subscriber)
subscriber - subscriber url.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||