at.ac.tuwien.infosys.sm4all.copal.service.copal
Interface ContextProcessorRegistry

All Known Implementing Classes:
ContextProcessorRegistryImpl

public interface ContextProcessorRegistry

Interface which COPAL core provides to register, unregister, and query ContextProcessors.

Author:
fei, sanjin

Method Summary
 ContextProcessor getProcessor(String name)
           
 ContextProcessor[] getProcessors()
           
 ContextProcessor[] getProcessors(String eventType)
           
 boolean isRegistered(String name)
          Checks if a ContextProcessor with specified name is currently registered with COPAL core.
 boolean register(ContextProcessor processor)
          Register ContextProcessor with COPAL core.
 boolean unregister(String name)
          Unregister ContextProcessor with specified name from COPAL core.
 

Method Detail

register

boolean register(ContextProcessor processor)
Register ContextProcessor with COPAL core.

Parameters:
processor - the context processor.
Returns:
true if registering was successful; false otherwise.

unregister

boolean unregister(String name)
Unregister ContextProcessor with specified name from COPAL core.

Parameters:
name - the name of a registered ContextProcessor.
Returns:
true if unregistering was successful; false otherwise.

isRegistered

boolean isRegistered(String name)
Checks if a ContextProcessor with specified name is currently registered with COPAL core.

Parameters:
name - the name of ContextProcessor.
Returns:
true if the ContextProcessor with specified name is registered; false otherwise.

getProcessors

ContextProcessor[] getProcessors()
Returns:
all currently registered ContextProcessors.

getProcessor

ContextProcessor getProcessor(String name)
Parameters:
name - the name of a ContextProcessor.
Returns:
the ContextProcessor used in registration; or null if there is no registered ContextProcessor with specified name.

getProcessors

ContextProcessor[] getProcessors(String eventType)
Parameters:
eventType - the name of ContextEventType.
Returns:
all ContextProcessors which process events of ContextEventType that has name equal to specified eventType.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.