es.upv.dsic.gti_ia.trace
Class TracingServiceSubscription

java.lang.Object
  extended by es.upv.dsic.gti_ia.trace.TracingServiceSubscription
All Implemented Interfaces:
Serializable

public class TracingServiceSubscription
extends Object
implements Serializable

Subscription to a tracing service

Author:
L Burdalo (lburdalo@dsic.upv.es)
See Also:
Serialized Form

Constructor Summary
TracingServiceSubscription()
          Creates an empty subscription with all attributes set to null except for any_provider, which is set to false
TracingServiceSubscription(TracingEntity subscriptor, TracingEntity originEntity, TracingService tracingService)
          Creates a new subscription with its attributes set to the specified parameters.
 
Method Summary
 boolean getAnyProvider()
          Determines if the subscription refers to a specific origin entity or not
 TracingEntity getOriginEntity()
          Get the origin tracing entity of the tracing service to which the subscription refers.
 TracingEntity getSubscriptorEntity()
          Get the subscribed tracing entity of the subscription.
 TracingService getTracingService()
          Get the tracing service to which the subscription refers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracingServiceSubscription

public TracingServiceSubscription()
Creates an empty subscription with all attributes set to null except for any_provider, which is set to false


TracingServiceSubscription

public TracingServiceSubscription(TracingEntity subscriptor,
                                  TracingEntity originEntity,
                                  TracingService tracingService)
Creates a new subscription with its attributes set to the specified parameters.

Parameters:
subscriptor - Tracing entity which is subscribed to a tracing service.
originEntity - Tracing entity to which trace events the originEntity is subscribed. If set to null, the any_provider is set to true and the subscriptor entity will receive trace events of that service generated by any tracing entity.
tracingService - Tracing service to which the subscription refers.
Method Detail

getSubscriptorEntity

public TracingEntity getSubscriptorEntity()
Get the subscribed tracing entity of the subscription.

Returns:
returns the subscribed tracing entity of the subscription.

getAnyProvider

public boolean getAnyProvider()
Determines if the subscription refers to a specific origin entity or not

Returns:
Returns the value of the any_provider attribute

getOriginEntity

public TracingEntity getOriginEntity()
Get the origin tracing entity of the tracing service to which the subscription refers.

Returns:
Returns the tracing entity which provides the tracing service.

getTracingService

public TracingService getTracingService()
Get the tracing service to which the subscription refers

Returns:
Returns the tracing service to which the subscription refers


Copyright © 2012 GTI-IA. All Rights Reserved.