org.dbe.eve
Interface HabitatService

All Known Implementing Classes:
HabitatServiceImpl

public interface HabitatService

This is the main service interface. It exposes the methods needed to

Author:
bob

Method Summary
 void createEvEService(java.lang.String smid, SBVRDescription model)
          Creates a new EvEService with the indicated definition.
 SolutionSet findBestGuessSolution(SBVRDescription model)
          Find the best services that fit the indicated model.
 java.lang.String getId()
          Return the Identifier of this habitat
 void importEvEService(EvEService service)
          The send method is invoked by the local HabitatService, if the habitat thinks that a service is worth spreading to the connected habitats
 void recordNewRequest(org.dbe.servent.InvokationRequest request)
          Record a new Request in the Habitat.
 void recordNewResponse(org.dbe.servent.InvokationResponse response)
          Record a response for a request in the Habitat.
 void removeEvEService(java.lang.String smid)
          Remove an EvEService from the pool or form the monitoring services.
 

Method Detail

createEvEService

void createEvEService(java.lang.String smid,
                      SBVRDescription model)
Creates a new EvEService with the indicated definition. If the service exists, he old service is overwritten.

Parameters:
smid - serviceManifest Id of the service, as create by the Semantic Registry
model - The SBVR Description of the Service

recordNewRequest

void recordNewRequest(org.dbe.servent.InvokationRequest request)
Record a new Request in the Habitat. This request is a call that have been received by the servent. TODO: it is possible this InvokationRequest will be changed for a more suitable object

Parameters:
request - invokation request

recordNewResponse

void recordNewResponse(org.dbe.servent.InvokationResponse response)
Record a response for a request in the Habitat.

Parameters:
response - invokation response

importEvEService

void importEvEService(EvEService service)
The send method is invoked by the local HabitatService, if the habitat thinks that a service is worth spreading to the connected habitats


removeEvEService

void removeEvEService(java.lang.String smid)
Remove an EvEService from the pool or form the monitoring services. This will happend when a service will no longer exists in the DBENetwork (usually because it has been undeployed)

Parameters:
smid - serviceManifest identifier (this is the same EvEService identifier)

findBestGuessSolution

SolutionSet findBestGuessSolution(SBVRDescription model)
Find the best services that fit the indicated model. This service is only a Guess based on the data the Habitat stores. It usually will not be the real best solution because we do not use ALL the data available in the DBE.

Parameters:
model - DBVR model
Returns:
array with the smids

getId

java.lang.String getId()
Return the Identifier of this habitat

Returns:
id The Service Id of this habitat as written in the deployment.properties