|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.trace.TraceInteract
public class TraceInteract
Methods to interact with the trace manager in order to publish and unpublish tracing services, to subscribe and unsubscribe to/from tracing services and to list available tracing entities and services.
| Constructor Summary | |
|---|---|
TraceInteract()
|
|
| Method Summary | |
|---|---|
static void |
cancelTracingServiceSubscription(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName)
Cancel subscription to a tracing service from any tracing entity. |
static void |
cancelTracingServiceSubscription(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
Cancel subscription to a tracing service from a specific tracing entity. |
static void |
cancelTracingServiceSubscription(BaseAgent requesterAgent,
String serviceName)
Cancel subscription to a tracing service from any tracing entity. |
static void |
cancelTracingServiceSubscription(BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
Cancel subscription to a tracing service from a specific tracing entity. |
static void |
listTracingEntities(AgentID tms_aid,
BaseAgent applicantAgent)
Request a list of registered tracing entities to a specific trace manager entity. |
static void |
listTracingEntities(BaseAgent applicantAgent)
Request a list of registered tracing entities. |
static void |
listTracingServices(AgentID tms_aid,
BaseAgent applicantAgent)
Request a list of registered tracing entities. |
static void |
listTracingServices(BaseAgent applicantAgent)
Request a list of registered tracing services. |
static void |
publishTracingService(AgentID tms_aid,
BaseAgent applicantAgent,
String serviceName,
String description)
Publish a tracing service so that other agents can request it and receive the corresponding trace events. |
static void |
publishTracingService(BaseAgent applicantAgent,
String serviceName,
String description)
Publish a tracing service so that other agents can request it and receive the corresponding trace events. |
static void |
requestAllTracingServices(AgentID tms_aid,
BaseAgent requesterAgent)
Request all tracing services available at the time. |
static void |
requestAllTracingServices(BaseAgent requesterAgent)
Request all tracing services available at the time. |
static void |
requestTracingService(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName)
Request a tracing service from any tracing entity. |
static void |
requestTracingService(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
Request a tracing service from a specific tracing entity. |
static void |
requestTracingService(BaseAgent requesterAgent,
String serviceName)
Request a tracing service from any tracing entity. |
static void |
requestTracingService(BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
Request a tracing service from a specific tracing entity. |
static void |
unpublishTracingService(AgentID tms_aid,
BaseAgent applicantAgent,
String serviceName)
Unpublish a tracing service. |
static void |
unpublishTracingService(BaseAgent applicantAgent,
String serviceName)
Unpublish a tracing service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraceInteract()
| Method Detail |
|---|
public static void publishTracingService(BaseAgent applicantAgent,
String serviceName,
String description)
The applicant agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
publishTracingService(AgentID tms_aid, BaseAgent applicantAgent, String serviceName, String description)
applicantAgent - Agent which wants to publish the tracing serviceserviceName - Name of the tracing service which is to be publisheddescription - Description of the tracing service to be publishedTracingService
public static void publishTracingService(AgentID tms_aid,
BaseAgent applicantAgent,
String serviceName,
String description)
The applicant agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
publishTracingService(BaseAgent applicantAgent, String serviceName, String description)
tms_aid - AgentID of the trace manager entity which is being sent the publication requestapplicantAgent - Agent which wants to publish the tracing serviceserviceName - Name of the tracing service which is to be publisheddescription - Description of the tracing service to be publishedTracingService,
AgentID
public static void unpublishTracingService(BaseAgent applicantAgent,
String serviceName)
Unpublish a previously published tracing service so that other agents cannot subscribe nor receive the corresponding trace events from the applicantAgent (if there were more providers of the tracing service, subscribers would still be able to receive trace events of that tracing service generated by these other providers.
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
unpublishTracingService(AgentID tms_aid, BaseAgent applicantAgent, String serviceName)
applicantAgent - Agent which wants to unpublish the tracing serviceserviceName - Name of the tracing service which is to be unpublished
public static void unpublishTracingService(AgentID tms_aid,
BaseAgent applicantAgent,
String serviceName)
Unpublish a previously published tracing service so that other agents cannot subscribe nor receive the corresponding trace events from the applicantAgent (if there were more providers of the tracing service, subscribers would still be able to receive trace events of that tracing service generated by these other providers.
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
unpublishTracingService(BaseAgent applicantAgent, String serviceName)
tms_aid - AgentID of the trace manager entity which is being sent the unpublication requestapplicantAgent - Agent which wants to unpublish the tracing serviceserviceName - Name of the tracing service which is to be unpublished
public static void requestTracingService(BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
The requester agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
requestTracingService(AgentID tms_aid, BaseAgent requesterAgent, String serviceName, AgentID originEntity)
This method requests a tracing service provided by a specific tracing entity. To request a tracing service from
any tracing entity and receive the trace events of the corresponding tracing service from any entity in the system
which offers that tracing service, use the method
requestTracingService(BaseAgent requesterAgent, String serviceName)
requesterAgent - Agent which wants to request the tracing serviceserviceName - Name of the tracing service which is to be requestedoriginEntity - AgentID of the tracing entity whose tracing service is requestedTracingService
public static void requestTracingService(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
The requester agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
requestTracingService(BaseAgent requesterAgent, String serviceName, AgentID originEntity)
This method requests a tracing service provided by a specific tracing entity. To request a tracing service from
any tracing entity and receive the trace events of the corresponding tracing service from any entity in the system
which offers that tracing service, use the method
requestTracingService(AgentID tms_aid, BaseAgent requesterAgent, String serviceName, AgentID originEntity)
tms_aid - AgentID of the trace manager entity which is being sent the requestrequesterAgent - Agent which wants to request the tracing serviceserviceName - Name of the tracing service which is to be requestedoriginEntity - AgentID of the tracing entity whose tracing service is requestedTracingService
public static void requestTracingService(BaseAgent requesterAgent,
String serviceName)
The requester agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
requestTracingService(AgentID tms_aid, BaseAgent requesterAgent, String serviceName)
This method requests a tracing service from any tracing entity which provides it. To request a tracing service from
a specific tracing entity and receive only the trace events of the corresponding tracing service generated by that entity
in the system, use the method
requestTracingService(BaseAgent requesterAgent, String serviceName, AgentID originEntity)
requesterAgent - Agent which wants to request the tracing serviceserviceName - Name of the tracing service which is to be requestedTracingService
public static void requestTracingService(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName)
The requester agent must specify a name for the tracing service, the corresponding type of the trace events which will be provided by the service and a description of the tracing service.
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
requestTracingService(AgentID tms_aid, BaseAgent requesterAgent, String serviceName)
This method requests a tracing service to receive trace events coming from any tracing entity which provides it.
To request a tracing service a specific tracing entity and receive only the trace events which that tracing entity
generates, use the method
requestTracingService(BaseAgent requesterAgent, String serviceName, AgentID originEntity)
tms_aid - AgentID of the trace manager entity which is being sent the requestrequesterAgent - Agent which wants to request the tracing serviceserviceName - Name of the tracing service which is to be requestedTracingServicepublic static void requestAllTracingServices(BaseAgent requesterAgent)
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
requestAllTracingServices(AgentID tms_aid, BaseAgent requesterAgent)
requesterAgent - Agent which wants to request tracing services
public static void requestAllTracingServices(AgentID tms_aid,
BaseAgent requesterAgent)
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
requestAllTracingServices(BaseAgent requesterAgent)
tms_aid - AgentID of the trace manager entity which is being sent the requestrequesterAgent - Agent which wants to request tracing services
public static void cancelTracingServiceSubscription(BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
cancelTracingServiceSubscription(AgentID tms_aid, BaseAgent requesterAgent, String serviceName, AgentID originEntity)
This method cancels the subscription to a tracing service from a specific tracing entity. To cancel a subscription
to any entity, use the method
cancelTracingServiceSubscription(BaseAgent requesterAgent, String serviceName)
requesterAgent - Agent which wants to cancel its subscriptionserviceName - Name of the tracing service to which the subscription was madeoriginEntity - AgentID of the tracing entity to which the subscription referred to
public static void cancelTracingServiceSubscription(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName,
AgentID originEntity)
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
cancelTracingServiceSubscription(BaseAgent requesterAgent, String serviceName, AgentID originEntity)
This method cancels the subscription to a tracing service from a specific tracing entity. To cancel a subscription
to any entity, use the method
cancelTracingServiceSubscription(AgentID tms_aid, BaseAgent requesterAgent, String serviceName)
tms_aid - AgentID of the trace manager entity which is being sent the requestrequesterAgent - Agent which wants to cancel its subscriptionserviceName - Name of the tracing service to which the subscription was madeoriginEntity - AgentID of the tracing entity to which the subscription referred to
public static void cancelTracingServiceSubscription(BaseAgent requesterAgent,
String serviceName)
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
cancelTracingServiceSubscription(AgentID tms_aid, BaseAgent requesterAgent, String serviceName)
This method cancels the subscription to a tracing service from a specific tracing entity. To cancel a subscription
to any entity, use the method
cancelTracingServiceSubscription(BaseAgent requesterAgent, String serviceName, AgentID originEntity)
requesterAgent - Agent which wants to cancel its subscriptionserviceName - Name of the tracing service to which the subscription was made
public static void cancelTracingServiceSubscription(AgentID tms_aid,
BaseAgent requesterAgent,
String serviceName)
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
cancelTracingServiceSubscription(BaseAgent requesterAgent, String serviceName)
This method cancels the subscription to a tracing service from a specific tracing entity. To cancel a subscription
to any entity, use the method
cancelTracingServiceSubscription(AgentID tms_aid, BaseAgent requesterAgent, String serviceName, AgentID originEntity)
tms_aid - AgentID of the trace manager entity which is being sent the requestrequesterAgent - Agent which wants to cancel its subscriptionserviceName - Name of the tracing service to which the subscription was madepublic static void listTracingEntities(BaseAgent applicantAgent)
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
listTracingEntities(AgentID tms_aid, BaseAgent applicantAgent)
applicantAgent - Agent which wants to receive the list of tracing entities
public static void listTracingEntities(AgentID tms_aid,
BaseAgent applicantAgent)
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
listTracingEntities(BaseAgent applicantAgent)
tms_aid - AgentID of the trace manager entity which is being sent the requestapplicantAgent - Agent which wants to receive the list of tracing entitiespublic static void listTracingServices(BaseAgent applicantAgent)
This method communicates via ACL with a trace manager entity in localhost
("qpid://TM@localhost:8080"). To interact with a different trace manager
entity, use the method
listTracingServices(AgentID tms_aid, BaseAgent applicantAgent)
applicantAgent - Agent which wants to receive the list of tracing services
public static void listTracingServices(AgentID tms_aid,
BaseAgent applicantAgent)
This method communicates via ACL with the trace manager entity specified
by the parameter tms_aid. To interact with the default trace manager entity in
localhost ("qpid://TM@localhost:8080"), use the method
listTracingServices(BaseAgent applicantAgent)
tms_aid - AgentID of the trace manager entity which is being sent the requestapplicantAgent - Agent which wants to receive the list of tracing services
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||