Class PersistenceUtils


  • public class PersistenceUtils
    extends Object
    • Constructor Detail

      • PersistenceUtils

        public PersistenceUtils()
    • Method Detail

      • convertEndpointInfoToOM

        public static org.apache.axiom.om.OMElement convertEndpointInfoToOM​(Map<Integer,​List<InboundEndpointInfoDTO>> endpointInfo,
                                                                            Map<String,​Set<String>> endpointPollingInfo)
        Convert EndpointInfo to a OMElement
        Parameters:
        endpointInfo - tenant data map
        Returns:
        equivalent OMElement for EndpointInfo
      • convertOMToEndpointListeningInfo

        public static Map<Integer,​List<InboundEndpointInfoDTO>> convertOMToEndpointListeningInfo​(org.apache.axiom.om.OMElement endpointInfoOM)
        Create EndpointInfo from OMElement
        Parameters:
        endpointInfoOM - OMElement containing endpoint information
        Returns:
        equivalent EndpointInfo for OMElement
      • convertOMToEndpointPollingInfo

        public static Map<String,​Set<String>> convertOMToEndpointPollingInfo​(org.apache.axiom.om.OMElement endpointInfoOM)
        Create EndpointInfo from OMElement
        Parameters:
        endpointInfoOM - OMElement containing endpoint information
        Returns:
        equivalent EndpointInfo for OMElement
      • getPortOffset

        public static int getPortOffset​(Properties properties)
        used to get the port offset value of server according to inbound properties
        Parameters:
        properties - inbound properties
        Returns:
        port offset of server
      • getPortOffset

        public static int getPortOffset()
        Used to get the port offset value of server.
        Returns:
        port offset of server