org.ow2.dragon.service.wsdm
Class QoSMetricManagerImpl

java.lang.Object
  extended by org.ow2.dragon.service.wsdm.QoSMetricManagerImpl
All Implemented Interfaces:
QoSMetricManager

public class QoSMetricManagerImpl
extends java.lang.Object
implements QoSMetricManager

Author:
aruffie - eBM Websourcing

Constructor Summary
QoSMetricManagerImpl()
           
 
Method Summary
 java.util.List<QoSMetricTO> getAllQoSMetrics()
          Allow to recover all QoSMetrics stored in database
 BindingDAO getBindingDAO()
           
 BindingOperationDAO getBindingOperationDAO()
           
 java.util.Map<java.lang.String,java.lang.String> getCurrentMessage(java.lang.String address)
           
 EndpointDAO getEndpointDAO()
           
 QoSMetricTO getQoSMetric(java.lang.String bindingOperationId)
          Allow to get a specific QoSMetricTO by providing the binding operation identifier
 QoSMetricDAO getQoSMetricDAO()
           
 QoSMetricTO getQoSMetricForBinding(java.lang.String bindingId)
          Allow to calculate QoSMetric for a given binding
 QoSMetricTO getQoSMetricForEndpoint(java.lang.String endpointId)
          Allow to calculate QoSMetric for a given endpoint
 QoSMetricTO getQoSMetricForTechnicalService(java.lang.String techServiceId)
          Allow to calculate QoSMetric for a given technical service
 GenericUnifiedDAO<TechnicalService,java.lang.String> getTechnicalServiceUnifiedDAO()
           
 TransfertObjectAssembler getTransfertObjectAssembler()
           
 void removeQoSMetric(java.lang.String qoSMetricId)
          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
 void setBindingDAO(BindingDAO bindingDAO)
           
 void setBindingOperationDAO(BindingOperationDAO bindingOperationDAO)
           
 void setEndpointDAO(EndpointDAO endpointDAO)
           
 void setQoSMetricDAO(QoSMetricDAO qoSMetricDAO)
           
 void setTechnicalServiceUnifiedDAO(GenericUnifiedDAO<TechnicalService,java.lang.String> technicalServiceUnifiedDAO)
           
 void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
           
 EndpointTO subscribe(java.lang.String endpointId, java.lang.String responseAddress)
          Allow to subscribe to a non function endpoint in order to receive several notifications
 EndpointTO unSubscribe(java.lang.String endpointId, java.lang.String responseAddress)
          Allow to unsubscribe to a non function endpoint in order to stop notification shipments
 void updateQoSMetric(QoSMetricTO qoSMetricTO)
          Allow to update a QoSMetricBO by providing a QoSMetricTO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QoSMetricManagerImpl

public QoSMetricManagerImpl()
Method Detail

saveQoSMetric

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

Specified by:
saveQoSMetric in interface QoSMetricManager
Parameters:
qoSMetricTO -
Throws:
DeploymentException

removeQoSMetric

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

Specified by:
removeQoSMetric in interface QoSMetricManager
Parameters:
String - bindingOperationId
Throws:
DeploymentException

getQoSMetric

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

Specified by:
getQoSMetric in interface QoSMetricManager
Parameters:
String - bindingOperationId
Returns:
Throws:
DeploymentException

getAllQoSMetrics

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

Specified by:
getAllQoSMetrics in interface QoSMetricManager
Returns:
ListThrows:
DeploymentException

updateQoSMetric

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

Specified by:
updateQoSMetric in interface QoSMetricManager
Parameters:
QoSMetricTO - qoSMetricTO
Throws:
DeploymentException

getQoSMetricForEndpoint

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

Specified by:
getQoSMetricForEndpoint in interface QoSMetricManager
Parameters:
EndpointTO - endpointTO
Returns:
QoSMetricTO
Throws:
DeploymentException

getQoSMetricForTechnicalService

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

Specified by:
getQoSMetricForTechnicalService in interface QoSMetricManager
Parameters:
techServiceTO -
Returns:
Throws:
DeploymentException

getQoSMetricForBinding

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

Specified by:
getQoSMetricForBinding in interface QoSMetricManager
Parameters:
String - bindingId
Returns:
QoSMetricTO
Throws:
DeploymentException

getQoSMetricDAO

public QoSMetricDAO getQoSMetricDAO()

setQoSMetricDAO

public void setQoSMetricDAO(QoSMetricDAO qoSMetricDAO)

getBindingOperationDAO

public BindingOperationDAO getBindingOperationDAO()

setBindingOperationDAO

public void setBindingOperationDAO(BindingOperationDAO bindingOperationDAO)

getTransfertObjectAssembler

public TransfertObjectAssembler getTransfertObjectAssembler()

setTransfertObjectAssembler

public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)

getCurrentMessage

public java.util.Map<java.lang.String,java.lang.String> getCurrentMessage(java.lang.String address)
                                                                   throws QoSMetricServiceException
Specified by:
getCurrentMessage in interface QoSMetricManager
Throws:
QoSMetricServiceException

subscribe

public EndpointTO subscribe(java.lang.String endpointId,
                            java.lang.String responseAddress)
                     throws QoSMetricServiceException
Allow to subscribe to a non function endpoint in order to receive several notifications

Specified by:
subscribe in interface QoSMetricManager
Parameters:
String - endpointId
String - responseAddress
Returns:
EndpointTO
Throws:
QoSMetricServiceException

unSubscribe

public EndpointTO unSubscribe(java.lang.String endpointId,
                              java.lang.String responseAddress)
                       throws QoSMetricServiceException
Allow to unsubscribe to a non function endpoint in order to stop notification shipments

Specified by:
unSubscribe in interface QoSMetricManager
Parameters:
String - endpointId
String - responseAddress
Returns:
EndpointTO
Throws:
QoSMetricServiceException

getEndpointDAO

public EndpointDAO getEndpointDAO()

setEndpointDAO

public void setEndpointDAO(EndpointDAO endpointDAO)

getBindingDAO

public BindingDAO getBindingDAO()

setBindingDAO

public void setBindingDAO(BindingDAO bindingDAO)

getTechnicalServiceUnifiedDAO

public GenericUnifiedDAO<TechnicalService,java.lang.String> getTechnicalServiceUnifiedDAO()

setTechnicalServiceUnifiedDAO

public void setTechnicalServiceUnifiedDAO(GenericUnifiedDAO<TechnicalService,java.lang.String> technicalServiceUnifiedDAO)


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.