|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stsci.client.JiniArcClient
Im plemne tthe clinet side to look for JINI archives and the Jini Archive Server Then just behave like and ArchiveServer
Field Summary | |
protected java.lang.String[] |
groups
The lookup groups (or an empty array). |
protected java.lang.String |
lookupURL
The lookup URL (or null ). |
protected static int |
MAX_RETRIES
Maximum number of retries of nextMessage . |
protected static int |
MAX_WAIT
How long to wait for matches before giving up. |
protected java.util.List |
registrars
The list of unexamined registrars. |
protected static ArchiveServer |
serv
|
protected java.lang.String[] |
typeArgs
The stream and attribute types. |
Constructor Summary | |
JiniArcClient()
Create a new JiniArcClient object |
Method Summary | |
void |
discarded(net.jini.discovery.DiscoveryEvent ev)
Notified by LookupDiscovery code when one or more found registries vanishes. |
void |
discovered(net.jini.discovery.DiscoveryEvent ev)
Notified by LookupDiscovery code when it finds one or more registries. |
void |
execute()
|
ArchiveDescriptor[] |
listArchives()
List the names of the known archives. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String[] groups
protected java.lang.String lookupURL
null
).protected java.lang.String[] typeArgs
protected java.util.List registrars
protected static final int MAX_WAIT
protected static final int MAX_RETRIES
nextMessage
.protected static ArchiveServer serv
Constructor Detail |
public JiniArcClient()
JiniArcClient
objectMethod Detail |
public void execute() throws java.lang.Exception
public void discovered(net.jini.discovery.DiscoveryEvent ev)
LookupDiscovery
code when it finds one or more registries. This implementation adds it to the list of known registries and notifies any waiting thread.discovered
in interface net.jini.discovery.DiscoveryListener
public void discarded(net.jini.discovery.DiscoveryEvent ev)
LookupDiscovery
code when one or more found registries vanishes. Eventually we might like to deal with this.discarded
in interface net.jini.discovery.DiscoveryListener
public ArchiveDescriptor[] listArchives() throws java.rmi.RemoteException
ArchiveServer
listArchives
in interface ArchiveServer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |