|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.messaging.ServiceFinder
public class ServiceFinder
This class provides the agent with finding service providers registered in Directory Facilitator. It:
Constructor Summary | |
---|---|
ServiceFinder(Agent a,
ServiceDescription sd)
Constructs ServiceFinder to search and subscribe for the
given service |
Method Summary | |
---|---|
protected Object |
createKey(DFAgentDescription dfd)
Creates the key, which will be used for selecting particular agent(s) from list of agent providing the service, e.g. personal agent representing user with particular userID. |
AID |
getOne()
Returns agent providing the service. |
AID |
getOne(Object key)
Returns agent providing the service matching the given key . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceFinder(Agent a, ServiceDescription sd) throws ServiceFinderException
ServiceFinder
to search and subscribe for the
given service
a
- is owning agentmyService
- is description of service this finder will look for.
ServiceFinderException
- throw when the finder have problems with finding the service.Method Detail |
---|
public AID getOne()
null
if no service
has been found.public AID getOne(Object key)
key
.
The for service description is created by createKey()
method.
key
- is key describing particular agent(s).
createKey(DFAgentDescription)
protected Object createKey(DFAgentDescription dfd)
dfd
- agent description
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |