|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Service:
- ressource
- info
- role
- Donne des informations sur l'ensemble du systeme.
Service| Field Summary | |
|---|---|
static String |
resource
|
| Method Summary | |
|---|---|
Agent |
getAgent(AgentID id)
Renvoie l'agent qui correspond à cet ID. |
Collection |
getAgents()
Renvoie la liste des ID des agents |
Canal |
getCanal(AgentID a1,
AgentID a2)
donne le canal |
InetAddress |
getHost()
Renvoie le nom de l'hôte local |
Collection |
getLocalAgents()
Donne la liste des agents locaux. |
boolean |
isLocal(AgentID id)
Dit si un agent est local |
AgentID |
recordAgent(Agent agent)
Enregistre un agent. |
AgentID |
recordAgent(AgentID id)
Enregistre un agent à partir de son ID. Considère que l'agent est distant |
AgentID |
recordAgent(String id)
Enregistre un agent à partir de la représentation textuelle de son ID. Considère que l'agent est distant |
void |
recordCanal(AgentID a1,
AgentID a2,
Canal c)
Enregistre un canal l'ordre des agents n'est pas importantes... |
void |
removeAgent(Agent agent)
efface un agent des tables |
void |
removeAgent(AgentID agentId)
efface un agent des tables |
void |
removeCanal(AgentID a1,
AgentID a2)
Enlève un canal |
void |
resetService()
Fait un reset le service. |
| Methods inherited from interface fungus.core.service.Service |
|---|
getType, init, setInfrastructure |
| Field Detail |
public static final String resource
| Method Detail |
public AgentID recordAgent(Agent agent)
agent - L'agent à enregistrerpublic AgentID recordAgent(AgentID id)
id - l'ID de l'agentpublic AgentID recordAgent(String id)
id - l'ID de l'agentpublic void removeAgent(Agent agent)
agent - an Agent valuepublic void removeAgent(AgentID agentId)
agentId - an AgentId value
public Agent getAgent(AgentID id)
throws NullAgentException
name - a String valueAgent valueNullAgentException - si l'agent n'existe paspublic Collection getAgents()
Collection d'AgentIDpublic Collection getLocalAgents()
Collection d'AgentID.public InetAddress getHost()
String valuepublic boolean isLocal(AgentID id)
id - L'agent à tester
public void recordCanal(AgentID a1,
AgentID a2,
Canal c)
a1 - un premier agent du canala2 - un second agent du canalc - le canal
public void removeCanal(AgentID a1,
AgentID a2)
a1 - an AgentID valuea2 - an AgentID valueInfoService#recordCanal(AgentID,AgentID)
public Canal getCanal(AgentID a1,
AgentID a2)
a1 - an AgentID valuea2 - an AgentID valueCanal valuepublic void resetService()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||