Interface IEventConnectorService

All Known Implementing Classes:
JmsConnectorService

public interface IEventConnectorService
Clients do not need to consume this service, it is provided by a bundle in the workspace. Tests can hardcode an implementation of this service. A service which provides the marshalling (the implementation uses Jackson) and the JMS service provider (the implementation uses ActiveMQ)
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the path of the directory to use for persistence.
    uk.ac.diamond.mq.ISessionService
    Return a service responsible for managing Connections, Sessions
    marshal(Object anyObject)
    May be used to use the serializer to marshal any object using its serialization routine.
    <U> U
    unmarshal(String anyObject, Class<U> beanClass)
    May be used to get the serializer to unmarshal any object using its serialization routine.
  • Method Details

    • marshal

      String marshal(Object anyObject) throws Exception
      May be used to use the serializer to marshal any object using its serialization routine. This can be used for objects other than T
      Parameters:
      event -
      Returns:
      Throws:
      Exception
    • unmarshal

      <U> U unmarshal(String anyObject, Class<U> beanClass) throws Exception
      May be used to get the serializer to unmarshal any object using its serialization routine. This can be used for objects other than T
      Parameters:
      event -
      Returns:
      Throws:
      Exception
    • getPersistenceDir

      String getPersistenceDir()
      Returns the path of the directory to use for persistence.
      Returns:
    • getSessionService

      uk.ac.diamond.mq.ISessionService getSessionService()
      Return a service responsible for managing Connections, Sessions
      Returns: