org.ow2.dragon.api.service.wsdm
Interface QoSMetricManager

All Known Implementing Classes:
QoSMetricManagerImpl

@Transactional
public interface QoSMetricManager

A manager of qos metric. Provides methods to create, retrieve, delete or update qos metric

Author:
aruffie

Method Summary
 java.util.List<QoSMetricTO> getAllQoSMetrics()
          Allow to recover all QoSMetrics stored in database
 java.util.Map<java.lang.String,java.lang.String> getCurrentMessage(java.lang.String address)
           
 QoSMetricTO getQoSMetric(java.lang.String bindingOperationId)
          Allow to get a specific QoSMetricTO by providing the binding operation identifier
 QoSMetricTO getQoSMetricForBinding(java.lang.String bindingTO)
          Allow to calculate QoSMetric for a given binding
 QoSMetricTO getQoSMetricForEndpoint(java.lang.String endpointTO)
          Allow to calculate QoSMetric for a given endpoint
 QoSMetricTO getQoSMetricForTechnicalService(java.lang.String techServiceTO)
          Allow to calculate QoSMetric for a given technical service
 void removeQoSMetric(java.lang.String bindingOperationId)
          Allow to remove a QoSMetric by providing the linked binding operation identifier
 void saveQoSMetric(QoSMetricTO qoSMetricTO)
          Allow to save in database new QoSMetric object, by providing a QoSMetricTO
 EndpointTO subscribe(java.lang.String endpointId, java.lang.String responseAddress)
           
 EndpointTO unSubscribe(java.lang.String endpointId, java.lang.String responseAddress)
           
 void updateQoSMetric(QoSMetricTO qoSMetricTO)
          Allow to update a QoSMetricBO by providing a QoSMetricTO
 

Method Detail

saveQoSMetric

void saveQoSMetric(QoSMetricTO qoSMetricTO)
                   throws DeploymentException
Allow to save in database new QoSMetric object, by providing a QoSMetricTO

Parameters:
qoSMetricTO -
Throws:
DeploymentException

removeQoSMetric

void removeQoSMetric(java.lang.String bindingOperationId)
                     throws DeploymentException
Allow to remove a QoSMetric by providing the linked binding operation identifier

Parameters:
String - bindingOperationId
Throws:
DeploymentException

getQoSMetric

QoSMetricTO getQoSMetric(java.lang.String bindingOperationId)
                         throws DeploymentException
Allow to get a specific QoSMetricTO by providing the binding operation identifier

Parameters:
String - bindingOperationId
Returns:
Throws:
DeploymentException

getAllQoSMetrics

java.util.List<QoSMetricTO> getAllQoSMetrics()
                                             throws DeploymentException
Allow to recover all QoSMetrics stored in database

Returns:
ListThrows:
DeploymentException

updateQoSMetric

void updateQoSMetric(QoSMetricTO qoSMetricTO)
                     throws DeploymentException
Allow to update a QoSMetricBO by providing a QoSMetricTO

Parameters:
QoSMetricTO - qoSMetricTO
Throws:
DeploymentException

getQoSMetricForEndpoint

QoSMetricTO getQoSMetricForEndpoint(java.lang.String endpointTO)
                                    throws DeploymentException
Allow to calculate QoSMetric for a given endpoint

Parameters:
EndpointTO - endpointTO
Returns:
QoSMetricTO
Throws:
DeploymentException

getQoSMetricForTechnicalService

QoSMetricTO getQoSMetricForTechnicalService(java.lang.String techServiceTO)
                                            throws DeploymentException
Allow to calculate QoSMetric for a given technical service

Parameters:
techServiceTO -
Returns:
Throws:
DeploymentException

getQoSMetricForBinding

QoSMetricTO getQoSMetricForBinding(java.lang.String bindingTO)
                                   throws DeploymentException
Allow to calculate QoSMetric for a given binding

Parameters:
BindingTO - bindingTO
Returns:
QoSMetricTO
Throws:
DeploymentException

getCurrentMessage

java.util.Map<java.lang.String,java.lang.String> getCurrentMessage(java.lang.String address)
                                                                   throws QoSMetricServiceException
Throws:
QoSMetricServiceException

subscribe

EndpointTO subscribe(java.lang.String endpointId,
                     java.lang.String responseAddress)
                     throws QoSMetricServiceException
Throws:
QoSMetricServiceException

unSubscribe

EndpointTO unSubscribe(java.lang.String endpointId,
                       java.lang.String responseAddress)
                       throws QoSMetricServiceException
Throws:
QoSMetricServiceException


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.