|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--webfunds.utils.Debug
|
+--webfunds.sox.SmartIssuer
Pretend to be a single SOX Server "Issuer", but actually manage through a list of equivalent entry points into the same virtual server. Hold a bunch of URLs, invoke objects on them on demand, and switch whenever a problem is detected. Name needs to change away from Issuer which is more oriented to money issuance than SOX Service.
| Field Summary | |
protected java.security.cert.Certificate |
cert
|
protected SimpleIssuer |
current
|
protected long |
deviation
|
protected java.util.Vector |
others
|
protected SimpleIssuer[] |
servers
|
protected int |
size
|
protected long |
timediff
This is the difference between local time and the server's time. |
protected java.util.Vector |
urls
|
protected int |
which
|
| Fields inherited from class webfunds.utils.Debug |
bug,
debugAll,
logfix |
| Constructor Summary | |
SmartIssuer(java.lang.String[] rawUrls,
java.security.cert.Certificate operCert,
java.io.PrintWriter bug)
Create a new Issuer object The Issuer object will normally be cached by the caller, but is not usefully stored on disk. |
|
| Method Summary | |
int |
checkNet()
Try some net hits. |
protected void |
checkTimes()
|
java.util.Vector |
convertToURLs(java.lang.String[] stringURLs)
Convert a list of strings to URLs. |
Issuer |
getIssuer(ItemId id)
For a single server scenario, this works as an IssuerFinder, by simply returning self. |
void |
getReady()
Do the things necessary for being ready for a request. |
long |
getTimeDeviation()
A likely deviation. |
long |
getTimeDifference()
Undefined how accurate it is. |
byte[] |
request(Request req)
Issue a request. |
void |
setOtherURLs(java.lang.String[] rawUrls)
Add a list of non-Issuer URLs that should return something. |
void |
startSimpleServers(java.util.Vector urls)
Do the things necessary for being ready for a request. |
java.lang.String |
toString()
|
| Methods inherited from class webfunds.utils.Debug |
debug,
debug,
debug,
debug,
err,
getDebug,
logend,
logmsg,
logstart,
logword |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected java.util.Vector urls
protected java.util.Vector others
protected int which
protected int size
protected java.security.cert.Certificate cert
protected SimpleIssuer current
protected SimpleIssuer[] servers
protected long timediff
protected long deviation
| Constructor Detail |
public SmartIssuer(java.lang.String[] rawUrls,
java.security.cert.Certificate operCert,
java.io.PrintWriter bug)
throws SOXIssuerException
name - our name for the issuersigner - the [operator] certificate which signs the
server's [server] certificateagent - the comms agent that sends requests at the transport layer| Method Detail |
public void setOtherURLs(java.lang.String[] rawUrls)
public java.util.Vector convertToURLs(java.lang.String[] stringURLs)
public Issuer getIssuer(ItemId id)
public void startSimpleServers(java.util.Vector urls)
public void getReady()
throws SOXLaterException,
SOXIssuerException
public byte[] request(Request req)
throws SOXLaterException,
SOXIssuerException
public int checkNet()
throws SOXLaterException
public long getTimeDifference()
public long getTimeDeviation()
protected void checkTimes()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||