|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPageBoxLib.ActiveNaming
Active Naming implementation. One ActiveNaming object per archive.
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.
| Field Summary | |
(package private) java.util.HashMap |
foreignEntries
Entry map. Key: PageBox URL Value: ActiveMessage |
(package private) APIImpl |
impl
Handle on the API implementation |
(package private) boolean |
isRegistered
True if registered on the ring because of a login |
(package private) java.util.HashMap |
localEntries
Entry map. Key: Entry name Value: ActiveEntry object |
(package private) TokenCallbackImpl.Sender |
sender
Token sender |
| Constructor Summary | |
(package private) |
ActiveNaming(APIImpl impl)
Constructor. |
| Method Summary | |
(package private) void |
addEntry(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif,
java.lang.String url)
Adds or replace an entry. |
java.io.Serializable |
call(java.lang.String from,
java.lang.String type,
int corrid,
java.io.Serializable data)
TokenCallbackIF method. |
(package private) void |
clearEntries()
Removes all the archive entries. |
(package private) java.lang.String |
getCandidate(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif)
Returns a candidate. |
(package private) java.lang.String[] |
getEntries()
Active Naming method. |
(package private) void |
logoff()
Active Naming method. |
(package private) void |
logon()
Active Naming method. |
void |
poll()
TokenCallbackIF method. |
(package private) void |
removeEntry(java.lang.String name)
Removes an entry. |
void |
response(java.lang.String type,
int corrid,
java.util.Map codes)
TokenCallbackIF method. |
void |
setSender(TokenSendIF tsi)
TokenCallbackIF method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
APIImpl impl
java.util.HashMap localEntries
java.util.HashMap foreignEntries
TokenCallbackImpl.Sender sender
boolean isRegistered
| Constructor Detail |
ActiveNaming(APIImpl impl)
impl - handle on the API implementation| Method Detail |
void logon()
void logoff()
java.lang.String[] getEntries()
java.lang.String getCandidate(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif)
name - entry namemust - imperative criterianiceif - optional criteria
void addEntry(java.lang.String name,
java.io.Serializable must,
ActiveComparable niceif,
java.lang.String url)
name - entry namemust - imperative criterianiceif - optional criteriaurl - entry urlvoid removeEntry(java.lang.String name)
name - entry namevoid clearEntries()
public void setSender(TokenSendIF tsi)
setSender in interface TokenCallbackIFtsi - object to use to send messages
public java.io.Serializable call(java.lang.String from,
java.lang.String type,
int corrid,
java.io.Serializable data)
call in interface TokenCallbackIFfrom - issuer URLtype - request typecorrid - correlation IDdata - TokenMsg data
public void poll()
poll in interface TokenCallbackIF
public void response(java.lang.String type,
int corrid,
java.util.Map codes)
response in interface TokenCallbackIFtype - request typecorrid - correlation IDcodes - map whose key is the issuer URL and value is a Serializable object
(response returned by the call method of the issuer TokenCallbackIF)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||