public class BehaviourInferenceAlgorithmRegistry extends Object implements org.osgi.framework.ServiceListener, IBehaviourInferenceAlgorithm
IBehaviourInferenceAlgorithm service interface.
Use #inferBehaviour(VirtualMachine) to automatically call the
appropriate algorithm based on the information in the registry. No behaviour
inference algorithm is invoked if neither the VirtualMachine nor its
linked VMImage have a behaviour tag associated to a behaviour
inference algorithm.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_TAGS
Name of the property denoting the tags that an algorithm supports.
|
static String |
PROPERTY_TAGS_DELIMITERS
Delimiters used to split the tags string into a set of tags.
|
| Constructor and Description |
|---|
BehaviourInferenceAlgorithmRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Collection<IBehaviourInferenceAlgorithm> |
getRegisteredAlgorithms() |
Collection<org.osgi.framework.ServiceReference<IBehaviourInferenceAlgorithm>> |
getRegisteredServices() |
Collection<String> |
getRegisteredTags() |
void |
inferBehaviour(VirtualMachine vm,
ArchitectureTypeRepository architectureTypeRepo)
Infer behaviour for the provided virtual machine.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
public static final String PROPERTY_TAGS
public static final String PROPERTY_TAGS_DELIMITERS
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerpublic void inferBehaviour(VirtualMachine vm,
ArchitectureTypeRepository architectureTypeRepo)
IBehaviourInferenceAlgorithmArchitectureTypeRepository.inferBehaviour in interface IBehaviourInferenceAlgorithmvm - The virtual machine.architectureTypeRepo - The architecture type repository.public Collection<IBehaviourInferenceAlgorithm> getRegisteredAlgorithms()
public Collection<String> getRegisteredTags()
public Collection<org.osgi.framework.ServiceReference<IBehaviourInferenceAlgorithm>> getRegisteredServices()