public interface MsbClientHandler extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigParam(String configParamId,
Object value,
PrimitiveFormat format)
Add configuration parameter.
|
void |
addConfigParam(String configParamId,
Object value,
PrimitiveType type)
Add configuration parameter.
|
void |
addConfigurationListener(ConfigurationListener configurationListener)
Adds the configuration listener.
|
void |
addConnectionListener(ConnectionListener connectionListener)
Adds the connection listener.
|
void |
addEvent(Service selfDescription,
String eventId,
String name,
String description,
Class<?> dataType,
EventPriority priority)
Adds a event to the given self-description.
|
void |
addFunction(Service selfDescription,
String functionId,
String name,
String description,
String[] responseEventIds,
Object functionHandlerInstance,
Method method)
Adds a function to the given self-description.
|
void |
addFunctionCallsListener(FunctionCallsListener functionCallsListener)
Adds the function calls listener.
|
void |
addManagedService(Service subService)
Add managed service.
|
void |
publish(String eventId)
Publish a event of the registered service.
|
void |
publish(String eventId,
Object obj)
Publish a event of the registered service.
|
void |
publish(String eventId,
Object obj,
EventPriority priority)
Publish a event of the registered service.
|
void |
publish(String eventId,
Object obj,
EventPriority priority,
boolean cache)
Publish a event of the registered service.
|
void |
publish(String eventId,
Object obj,
EventPriority priority,
boolean cache,
Date postDate)
Publish a event of the registered service.
|
void |
publish(String eventId,
Object obj,
EventPriority priority,
boolean cache,
Date postDate,
String correlationId)
Publish.
|
void |
publishForService(String serviceUuid,
String eventId)
Publish a event for the given service uuid.
|
void |
publishForService(String serviceUuid,
String eventId,
Object obj)
Publish a event for the given service uuid.
|
void |
publishForService(String serviceUuid,
String eventId,
Object obj,
EventPriority priority)
Publish a event for the given service uuid.
|
void |
publishForService(String serviceUuid,
String eventId,
Object obj,
EventPriority priority,
boolean cache)
Publish a event for the given service uuid.
|
void |
publishForService(String serviceUuid,
String eventId,
Object obj,
EventPriority priority,
boolean cache,
Date postDate)
Publish a event for the given service uuid.
|
void |
publishForService(String serviceUuid,
String eventId,
Object obj,
EventPriority priority,
boolean cache,
Date postDate,
String correlationId)
Publish for service.
|
void |
register(Service selfDescription)
Register a service.
|
void |
register(Service selfDescription,
Object[] functionHandler)
Register a service and use the instantiated function handlers to invoke function calls.
|
void |
register(Service selfDescription,
Object[] functionHandlers,
Class<?>[] eventDeclarations)
Register a service, use the instantiated function handlers to invoke function calls and scan event declaration classes for annotated events.
|
void |
register(Service selfDescription,
Object[] functionHandlers,
String packagePath)
Register a service, use the instantiated function handlers to invoke function calls and scan the package path for annotated events and configuration parameters..
|
void |
register(Service selfDescription,
String packagePath)
Register a service and scan the package path for annotated events, functions and configuration parameters.
|
void |
register(String packagePath)
Register a service by scanning the package path for annotated events, functions, configuration parameters and self description.
|
void |
register(String packagePath,
Object[] functionHandler)
Register a service by scanning the package path for annotated events, functions, configuration parameters and self description.
|
void |
removeConfigurationListener(ConfigurationListener configurationListener)
Removes the configuration listener.
|
void |
removeConnectionListener(ConnectionListener connectionListener)
Removes the connection listener.
|
void |
removeFunctionCallsListener(FunctionCallsListener functionCallsListener)
Removes the function calls listener.
|
closevoid addFunction(Service selfDescription, String functionId, String name, String description, String[] responseEventIds, Object functionHandlerInstance, Method method)
selfDescription - the self descriptionfunctionId - the function idname - the namedescription - the descriptionresponseEventIds - the response event idsfunctionHandlerInstance - the function handler instancemethod - the methodvoid addEvent(Service selfDescription, String eventId, String name, String description, Class<?> dataType, EventPriority priority)
selfDescription - the self descriptioneventId - the event idname - the namedescription - the descriptiondataType - the data typepriority - the event priorityvoid addConfigParam(String configParamId, Object value, PrimitiveFormat format)
configParamId - the configuration parameter idvalue - the valueformat - the formatvoid addConfigParam(String configParamId, Object value, PrimitiveType type)
configParamId - the configuration parameter idvalue - the valuetype - the typevoid addManagedService(Service subService)
subService - the sub servicevoid register(String packagePath) throws IOException
packagePath - the package pathIOException - the io exceptionvoid register(String packagePath, Object[] functionHandler) throws IOException
packagePath - the package pathfunctionHandler - the function handlerIOException - the io exceptionvoid register(Service selfDescription) throws IOException
selfDescription - the self descriptionIOException - Signals that an I/O exception has occurred.void register(Service selfDescription, String packagePath) throws IOException
selfDescription - the self descriptionpackagePath - the package pathIOException - Signals that an I/O exception has occurred.void register(Service selfDescription, Object[] functionHandler) throws IOException
selfDescription - the self descriptionfunctionHandler - the function handlerIOException - Signals that an I/O exception has occurred.void register(Service selfDescription, Object[] functionHandlers, String packagePath) throws IOException
selfDescription - the self descriptionfunctionHandlers - the function handlerspackagePath - the package pathIOException - Signals that an I/O exception has occurred.void register(Service selfDescription, Object[] functionHandlers, Class<?>[] eventDeclarations) throws IOException
selfDescription - the self descriptionfunctionHandlers - the function handlerseventDeclarations - the event declarationsIOException - Signals that an I/O exception has occurred.void publish(String eventId) throws IOException
eventId - the event idIOException - Signals that an I/O exception has occurred.void publish(String eventId, Object obj) throws IOException
eventId - the event idobj - the objIOException - Signals that an I/O exception has occurred.void publish(String eventId, Object obj, EventPriority priority) throws IOException
eventId - the event idobj - the objpriority - the priorityIOException - Signals that an I/O exception has occurred.void publish(String eventId, Object obj, EventPriority priority, boolean cache) throws IOException
eventId - the event idobj - the objpriority - the prioritycache - the cacheIOException - Signals that an I/O exception has occurred.void publish(String eventId, Object obj, EventPriority priority, boolean cache, Date postDate) throws IOException
eventId - the event idobj - the objpriority - the prioritycache - the cachepostDate - the post dateIOException - the io exceptionvoid publish(String eventId, Object obj, EventPriority priority, boolean cache, Date postDate, String correlationId) throws IOException
eventId - the event idobj - the objpriority - the prioritycache - the cachepostDate - the post datecorrelationId - the correlation idIOException - the io exceptionvoid publishForService(String serviceUuid, String eventId) throws IOException
serviceUuid - the service uuideventId - the event idIOException - Signals that an I/O exception has occurred.void publishForService(String serviceUuid, String eventId, Object obj) throws IOException
serviceUuid - the service uuideventId - the event idobj - the objIOException - Signals that an I/O exception has occurred.void publishForService(String serviceUuid, String eventId, Object obj, EventPriority priority) throws IOException
serviceUuid - the service uuideventId - the event idobj - the objpriority - the priorityIOException - Signals that an I/O exception has occurred.void publishForService(String serviceUuid, String eventId, Object obj, EventPriority priority, boolean cache) throws IOException
serviceUuid - the service uuideventId - the event idobj - the objpriority - the prioritycache - the cacheIOException - Signals that an I/O exception has occurred.void publishForService(String serviceUuid, String eventId, Object obj, EventPriority priority, boolean cache, Date postDate) throws IOException
serviceUuid - the service uuideventId - the event idobj - the objpriority - the prioritycache - the cachepostDate - the post dateIOException - the io exceptionvoid publishForService(String serviceUuid, String eventId, Object obj, EventPriority priority, boolean cache, Date postDate, String correlationId) throws IOException
serviceUuid - the service uuideventId - the event idobj - the objpriority - the prioritycache - the cachepostDate - the post datecorrelationId - the correlation idIOException - the io exceptionvoid addFunctionCallsListener(FunctionCallsListener functionCallsListener)
functionCallsListener - the function calls listenervoid removeFunctionCallsListener(FunctionCallsListener functionCallsListener)
functionCallsListener - the function calls listenervoid addConnectionListener(ConnectionListener connectionListener)
connectionListener - the connection listenervoid removeConnectionListener(ConnectionListener connectionListener)
connectionListener - the connection listenervoid addConfigurationListener(ConfigurationListener configurationListener)
configurationListener - the configuration listenervoid removeConfigurationListener(ConfigurationListener configurationListener)
configurationListener - the configuration listenerCopyright © 2019 Fraunhofer IPA. All rights reserved.