@Deprecated public class YellowPages extends Object
A service is provided by a set of agents and is identified by its name.
Constructor and Description |
---|
YellowPages()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AgentIdentifier |
getAgentFor(String service)
Deprecated.
Replies an agent that provides the specified service.
|
AgentIdentifier[] |
getAgents(String service)
Deprecated.
Replies all the agents that provide services
|
String[] |
getAllServices()
Deprecated.
Replies all the services registered inside this repository.
|
protected <T extends MessageTransportService> |
getMTS(Class<T> clazz)
Deprecated.
|
boolean |
isRegisteredAgent(AgentIdentifier agent)
Deprecated.
Replies if the specified agent provides a service.
|
boolean |
isRegisteredAgent(String service,
AgentIdentifier agent)
Deprecated.
Replies if the specified agent provides the given service.
|
boolean |
isRegisteredService(String service)
Deprecated.
Replies if the specified service is provided by at least one agent.
|
void |
registerService(String service,
AgentIdentifier agent)
Deprecated.
Register a service provided by the specified agent.
|
void |
unregisterService(String service)
Deprecated.
Remove a service from the system.
|
void |
unregisterService(String service,
AgentIdentifier agent)
Deprecated.
Remove the specified agent-service association.
|
void |
unregisterServices(AgentIdentifier agent)
Deprecated.
Remove the specified agent from the yellow pages.
|
public void registerService(String service, AgentIdentifier agent)
service
- is the name of the service.agent
- is the agent that provides the servicepublic void unregisterService(String service, AgentIdentifier agent)
service
- is the name of the service.agent
- is the agent that no more provides the servicepublic void unregisterService(String service)
All associated agents will be unlinked to the specified service.
public void unregisterServices(AgentIdentifier agent)
public boolean isRegisteredAgent(String service, AgentIdentifier agent)
public boolean isRegisteredService(String service)
public boolean isRegisteredAgent(AgentIdentifier agent)
public AgentIdentifier[] getAgents(String service)
public AgentIdentifier getAgentFor(String service)
The agent is randomly selected inside the list of agents that provide the specified service.
public String[] getAllServices()
protected final <T extends MessageTransportService> T getMTS(Class<T> clazz)
Copyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.