org.ow2.dragon.service.technology
Class TechnologyManagerImpl

java.lang.Object
  extended by org.ow2.dragon.service.technology.TechnologyManagerImpl
All Implemented Interfaces:
TechnologyManager

public class TechnologyManagerImpl
extends java.lang.Object
implements TechnologyManager

Author:
ofabre - eBM Websourcing

Constructor Summary
TechnologyManagerImpl()
           
 
Method Summary
 java.lang.String addRuntimeManager(java.lang.String address)
          Add a new runtime manager to the registry.
 java.util.List<EnvironmentFederationTO> getAllEnvironmentFederations(RequestOptionsTO requestOptionsTO)
          Return the list of all environment federations in the registry
 java.util.List<ExecutionEnvironmentManagerTO> getAllExecutionEnvironmentManagers(RequestOptionsTO requestOptionsTO)
          Return the list of all runtime managers (aka Execution Environment Managers) in the registry
 java.util.List<ExecutionEnvironmentTO> getAllExecutionEnvironments(RequestOptionsTO requestOptionsTO)
          Return the list of all execution environments in the registry
 java.util.List<ProcessorTO> getAllProcessors(RequestOptionsTO requestOptionsTO)
          Return the list of all processors in the registry
 EnvironmentFederationTO getEnvironmentFederation(java.lang.String envFedId)
          Retrieve the environment federation matching the given ID
 java.util.List<EndpointTO> getEpsHostedOnExecEnv(java.lang.String execEnvId, RequestOptionsTO requestOptionsTO)
          Retrieve the list of endpoints that are hosted by the given execution environment
 java.util.List<EndpointTO> getEpsHostedOnProcessor(java.lang.String processorId, RequestOptionsTO requestOptionsTO)
          Retrieve the list of endpoints that are hosted by the given processor.
 java.util.List<ExecutionEnvironmentTO> getExecEnvsHostedOnProcessor(java.lang.String processorId, RequestOptionsTO requestOptionsTO)
          Retrieve the list of execution environments that are hosted by the given processor.
 java.util.List<ExecutionEnvironmentTO> getExecEnvsInFederation(java.lang.String envFedId, RequestOptionsTO requestOptionsTO)
          Retrieve the list of execution environments that are parts of the given environment federation
 ExecutionEnvironmentTO getExecutionEnvironment(java.lang.String execEnvId)
          Retrieve the execution environment matching the given ID
 java.util.List<ExecutionEnvironmentTO> getManagedExecEnv(java.lang.String runtimeManagerId, RequestOptionsTO requestOptionsTO)
          Retrieve the list of execution environments managed by the given runtime manager (aka execution environment manager)
 ProcessorTO getProcessor(java.lang.String processorId)
          Retrieve the processor matching the given ID
 ExecutionEnvironmentManagerTO getRuntimeManager(java.lang.String arg0)
          Retrieve the runtime manager matching the given ID
 void removeEnvironmentFederation(java.lang.String envFedId)
          Remove the environment federation matching the given ID from the registry
 void removeExecutionEnvironment(java.lang.String execEnvId)
          Remove the execution environment matching the given ID from the registry
 void removeProcessor(java.lang.String processorId)
          Remove the processor matching the given ID from the registry
 void removeRuntimeManager(java.lang.String runtimeManagerId)
          Remove the runtime manager matching the given ID from the registry
 java.util.List<EnvironmentFederationTO> searchEnvironmentFederations(java.lang.String searchCriteria, java.util.List<FederationSearchProperties> searchedProperties, RequestOptionsTO requestOptionsTO)
          Retrieve the list of all environment federations matching the given criteria for the given properties
 java.util.List<ExecutionEnvironmentManagerTO> searchExecutionEnvironmentManagers(java.lang.String searchCriteria, java.util.List<ExecEnvManagerSearchProperties> searchedProperties, RequestOptionsTO requestOptionsTO)
          Retrieve the list of all runtime managers (aka execution environment managers) matching the given criteria for the given properties
 java.util.List<ExecutionEnvironmentTO> searchExecutionEnvironments(java.lang.String searchCriteria, java.util.List<ExecEnvSearchProperties> searchedProperties, RequestOptionsTO requestOptionsTO)
          Retrieve the list of all execution environments matching the given criteria for the given properties
 java.util.List<ProcessorTO> searchProcessors(java.lang.String searchCriteria, java.util.List<ProcessorSearchProperties> searchedProperties, RequestOptionsTO requestOptionsTO)
          Retrieve the list of all processors matching the given criteria for the given properties
 void setEndpointUnifiedDAO(GenericUnifiedDAO<Endpoint,java.lang.String> endpointUnifiedDAO)
           
 void setEnvironmentFederationUnifiedDAO(GenericUnifiedDAO<EnvironmentFederation,java.lang.String> environmentFederationUnifiedDAO)
           
 void setExecutionEnvironmentManagerFactory(org.apache.cxf.jaxws.JaxWsProxyFactoryBean executionEnvironmentManagerFactory)
           
 void setExecutionEnvironmentManagerUnifiedDAO(GenericUnifiedDAO<ExecutionEnvironmentManager,java.lang.String> executionEnvironmentManagerUnifiedDAO)
           
 void setExecutionEnvironmentUnifiedDAO(GenericUnifiedDAO<ExecutionEnvironment,java.lang.String> executionEnvironmentUnifiedDAO)
           
 void setProcessorUnifiedDAO(GenericUnifiedDAO<Processor,java.lang.String> processorUnifiedDAO)
           
 void setTechnologyTransferObjectAssembler(TechnologyTransferObjectAssembler technologyTransferObjectAssembler)
           
 void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
           
 void setWsdlManager(WSDLManager wsdlManager)
           
 void synchronizeManagedExecEnv(java.lang.String runtimeManagerId)
          Synchronize all execution environments managed by this execution runtime manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechnologyManagerImpl

public TechnologyManagerImpl()
Method Detail

addRuntimeManager

public java.lang.String addRuntimeManager(java.lang.String address)
                                   throws TechnologyException
Description copied from interface: TechnologyManager
Add a new runtime manager to the registry. Uses the provided address to connect to the manager interface and retrieve manager properties

Specified by:
addRuntimeManager in interface TechnologyManager
Parameters:
address - a manager service interface address like 'http://com.foo/ManagerService'. Must be a valid URL
Returns:
the added manager ID
Throws:
TechnologyException - if an error occurs during runtime manager creation

getManagedExecEnv

public java.util.List<ExecutionEnvironmentTO> getManagedExecEnv(java.lang.String runtimeManagerId,
                                                                RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Retrieve the list of execution environments managed by the given runtime manager (aka execution environment manager)

Specified by:
getManagedExecEnv in interface TechnologyManager
Parameters:
runtimeManagerId - a runtime manager ID
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of ExecutionEnvironmentTOs managed by the given runtime manager (aka ExecutionEnvironmentManagerTO)

synchronizeManagedExecEnv

public void synchronizeManagedExecEnv(java.lang.String runtimeManagerId)
                               throws TechnologyException
Description copied from interface: TechnologyManager
Synchronize all execution environments managed by this execution runtime manager. All linked endpoints, environment federations and processors will also be synchronized. Synchronization consist in adding elements to the registry

Specified by:
synchronizeManagedExecEnv in interface TechnologyManager
Parameters:
runtimeManagerId - a runtime manager ID
Throws:
TechnologyException - if an error occurs during synchronization

setExecutionEnvironmentManagerUnifiedDAO

public void setExecutionEnvironmentManagerUnifiedDAO(GenericUnifiedDAO<ExecutionEnvironmentManager,java.lang.String> executionEnvironmentManagerUnifiedDAO)

setExecutionEnvironmentUnifiedDAO

public void setExecutionEnvironmentUnifiedDAO(GenericUnifiedDAO<ExecutionEnvironment,java.lang.String> executionEnvironmentUnifiedDAO)

setExecutionEnvironmentManagerFactory

public void setExecutionEnvironmentManagerFactory(org.apache.cxf.jaxws.JaxWsProxyFactoryBean executionEnvironmentManagerFactory)

setTransfertObjectAssembler

public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)

setTechnologyTransferObjectAssembler

public void setTechnologyTransferObjectAssembler(TechnologyTransferObjectAssembler technologyTransferObjectAssembler)

getRuntimeManager

public ExecutionEnvironmentManagerTO getRuntimeManager(java.lang.String arg0)
Description copied from interface: TechnologyManager
Retrieve the runtime manager matching the given ID

Specified by:
getRuntimeManager in interface TechnologyManager
Parameters:
arg0 - a runtime manager ID
Returns:
the ExecutionEnvironmentTO (aka runtime manager) matching the given ID

removeRuntimeManager

public void removeRuntimeManager(java.lang.String runtimeManagerId)
Description copied from interface: TechnologyManager
Remove the runtime manager matching the given ID from the registry

Specified by:
removeRuntimeManager in interface TechnologyManager
Parameters:
runtimeManagerId - a runtime manager ID

getExecutionEnvironment

public ExecutionEnvironmentTO getExecutionEnvironment(java.lang.String execEnvId)
Description copied from interface: TechnologyManager
Retrieve the execution environment matching the given ID

Specified by:
getExecutionEnvironment in interface TechnologyManager
Parameters:
execEnvId - an execution environment ID
Returns:
the ExecutionEnvironmentTO matching the given ID

removeExecutionEnvironment

public void removeExecutionEnvironment(java.lang.String execEnvId)
Description copied from interface: TechnologyManager
Remove the execution environment matching the given ID from the registry

Specified by:
removeExecutionEnvironment in interface TechnologyManager
Parameters:
execEnvId - an execution environment ID

setEndpointUnifiedDAO

public void setEndpointUnifiedDAO(GenericUnifiedDAO<Endpoint,java.lang.String> endpointUnifiedDAO)

setWsdlManager

public void setWsdlManager(WSDLManager wsdlManager)

getAllExecutionEnvironmentManagers

public java.util.List<ExecutionEnvironmentManagerTO> getAllExecutionEnvironmentManagers(RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Return the list of all runtime managers (aka Execution Environment Managers) in the registry

Specified by:
getAllExecutionEnvironmentManagers in interface TechnologyManager
Parameters:
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
List of all runtime managers (aka ExecutionEnvironmentManagerTO) in the registry

searchExecutionEnvironmentManagers

public java.util.List<ExecutionEnvironmentManagerTO> searchExecutionEnvironmentManagers(java.lang.String searchCriteria,
                                                                                        java.util.List<ExecEnvManagerSearchProperties> searchedProperties,
                                                                                        RequestOptionsTO requestOptionsTO)
                                                                                 throws TechnologyException
Description copied from interface: TechnologyManager
Retrieve the list of all runtime managers (aka execution environment managers) matching the given criteria for the given properties

Specified by:
searchExecutionEnvironmentManagers in interface TechnologyManager
Parameters:
searchCriteria - the search criteria (a String containing criteria separated with whitespaces)
searchedProperties - the searched properties
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all runtime managers (aka ExecutionEnvironmentManagerTOs) matching the given criteria for the given properties
Throws:
TechnologyException

getAllExecutionEnvironments

public java.util.List<ExecutionEnvironmentTO> getAllExecutionEnvironments(RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Return the list of all execution environments in the registry

Specified by:
getAllExecutionEnvironments in interface TechnologyManager
Parameters:
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all ExecutionEnvironmentTOs in the registry

searchExecutionEnvironments

public java.util.List<ExecutionEnvironmentTO> searchExecutionEnvironments(java.lang.String searchCriteria,
                                                                          java.util.List<ExecEnvSearchProperties> searchedProperties,
                                                                          RequestOptionsTO requestOptionsTO)
                                                                   throws TechnologyException
Description copied from interface: TechnologyManager
Retrieve the list of all execution environments matching the given criteria for the given properties

Specified by:
searchExecutionEnvironments in interface TechnologyManager
Parameters:
searchCriteria - the search criteria (a String containing criteria separated with whitespaces)
searchedProperties - the searched properties
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all ExecutionEnvironmentTOs matching the given criteria for the given properties
Throws:
TechnologyException

getEpsHostedOnExecEnv

public java.util.List<EndpointTO> getEpsHostedOnExecEnv(java.lang.String execEnvId,
                                                        RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Retrieve the list of endpoints that are hosted by the given execution environment

Specified by:
getEpsHostedOnExecEnv in interface TechnologyManager
Parameters:
execEnvId - an execution environment ID
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of EndpointTOs that are hosted by the given ExecutionEnvironmentTO

getEpsHostedOnProcessor

public java.util.List<EndpointTO> getEpsHostedOnProcessor(java.lang.String processorId,
                                                          RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Retrieve the list of endpoints that are hosted by the given processor. It means all endpoints hosted by execution environment hosted on the given processor

Specified by:
getEpsHostedOnProcessor in interface TechnologyManager
Parameters:
processorId - a processor ID
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of EndpointTOs that are hosted by the given ProcessorTO

getExecEnvsHostedOnProcessor

public java.util.List<ExecutionEnvironmentTO> getExecEnvsHostedOnProcessor(java.lang.String processorId,
                                                                           RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Retrieve the list of execution environments that are hosted by the given processor.

Specified by:
getExecEnvsHostedOnProcessor in interface TechnologyManager
Parameters:
processorId - a processor ID
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of ExecutionEnvironmentTOs that are hosted by the given ProcessorTO

getProcessor

public ProcessorTO getProcessor(java.lang.String processorId)
Description copied from interface: TechnologyManager
Retrieve the processor matching the given ID

Specified by:
getProcessor in interface TechnologyManager
Parameters:
processorId - a processor ID
Returns:
the ProcessorTO matching the given ID

removeProcessor

public void removeProcessor(java.lang.String processorId)
Description copied from interface: TechnologyManager
Remove the processor matching the given ID from the registry

Specified by:
removeProcessor in interface TechnologyManager
Parameters:
processorId - a processor ID

setProcessorUnifiedDAO

public void setProcessorUnifiedDAO(GenericUnifiedDAO<Processor,java.lang.String> processorUnifiedDAO)

getAllProcessors

public java.util.List<ProcessorTO> getAllProcessors(RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Return the list of all processors in the registry

Specified by:
getAllProcessors in interface TechnologyManager
Parameters:
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all ProcessorTOs in the registry

searchProcessors

public java.util.List<ProcessorTO> searchProcessors(java.lang.String searchCriteria,
                                                    java.util.List<ProcessorSearchProperties> searchedProperties,
                                                    RequestOptionsTO requestOptionsTO)
                                             throws TechnologyException
Description copied from interface: TechnologyManager
Retrieve the list of all processors matching the given criteria for the given properties

Specified by:
searchProcessors in interface TechnologyManager
Parameters:
searchCriteria - the search criteria (a String containing criteria separated with whitespaces)
searchedProperties - the searched properties
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all ProcessorTOs matching the given criteria for the given properties
Throws:
TechnologyException

getEnvironmentFederation

public EnvironmentFederationTO getEnvironmentFederation(java.lang.String envFedId)
Description copied from interface: TechnologyManager
Retrieve the environment federation matching the given ID

Specified by:
getEnvironmentFederation in interface TechnologyManager
Parameters:
envFedId - an environment federation ID
Returns:
the EnvironmentFederationTO matching the given ID

getExecEnvsInFederation

public java.util.List<ExecutionEnvironmentTO> getExecEnvsInFederation(java.lang.String envFedId,
                                                                      RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Retrieve the list of execution environments that are parts of the given environment federation

Specified by:
getExecEnvsInFederation in interface TechnologyManager
Parameters:
envFedId - an environment federation ID
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of ExecutionEnvironmentTOs that are parts of the given EnvironmentFederationTO

removeEnvironmentFederation

public void removeEnvironmentFederation(java.lang.String envFedId)
Description copied from interface: TechnologyManager
Remove the environment federation matching the given ID from the registry

Specified by:
removeEnvironmentFederation in interface TechnologyManager
Parameters:
envFedId - an environment federation ID

setEnvironmentFederationUnifiedDAO

public void setEnvironmentFederationUnifiedDAO(GenericUnifiedDAO<EnvironmentFederation,java.lang.String> environmentFederationUnifiedDAO)

getAllEnvironmentFederations

public java.util.List<EnvironmentFederationTO> getAllEnvironmentFederations(RequestOptionsTO requestOptionsTO)
Description copied from interface: TechnologyManager
Return the list of all environment federations in the registry

Specified by:
getAllEnvironmentFederations in interface TechnologyManager
Parameters:
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all EnvironmentFederationTOs in the registry

searchEnvironmentFederations

public java.util.List<EnvironmentFederationTO> searchEnvironmentFederations(java.lang.String searchCriteria,
                                                                            java.util.List<FederationSearchProperties> searchedProperties,
                                                                            RequestOptionsTO requestOptionsTO)
                                                                     throws TechnologyException
Description copied from interface: TechnologyManager
Retrieve the list of all environment federations matching the given criteria for the given properties

Specified by:
searchEnvironmentFederations in interface TechnologyManager
Parameters:
searchCriteria - the search criteria (a String containing criteria separated with whitespaces)
searchedProperties - the searched properties
requestOptionsTO - sort, pagination and case sensitive parameters
Returns:
the List of all EnvironmentFederationTOs matching the given criteria for the given properties
Throws:
TechnologyException


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.