psdi.iface.mic

Class IntegrationContext

  • java.lang.Object
    • psdi.iface.mic.IntegrationContext
  • All Implemented Interfaces:
    MetaDataProperties


    public class IntegrationContext
    extends java.lang.Object
    implements MetaDataProperties
    Integration context class wihich will be associated with specific ThreadLocal
    • Method Detail

      • isAPICall

        public boolean isAPICall()
      • isGQLCall

        public boolean isGQLCall()
      • isTraceConnections

        public boolean isTraceConnections()
      • isStackTraceConnections

        public boolean isStackTraceConnections()
      • traceConnection

        public void traceConnection()
      • stackTraceConnection

        public void stackTraceConnection()
      • isMonitorTokenAPICall

        public boolean isMonitorTokenAPICall()
      • getAPICsrfToken

        public java.lang.String getAPICsrfToken()
      • setAPICsrfToken

        public void setAPICsrfToken(java.lang.String csrfToken)
      • setupBranchFilter

        public void setupBranchFilter(java.lang.String name,
                                      java.lang.Long id)
      • getBranchFilter

        public java.util.Map getBranchFilter()
      • setAPICall

        public void setAPICall()
      • getProperties

        public java.util.Map getProperties()
        returns Map of all context properties.
        Returns:
        Map of all context properties.
      • getProperty

        public java.lang.Object getProperty(java.lang.String propName)
        Return proprty value for specified property
        Parameters:
        propName - property name
        Returns:
        property value
      • getStringProperty

        public java.lang.String getStringProperty(java.lang.String propName)
        Return proprty value for specified property as string
        Parameters:
        propName - property name
        Returns:
        property value as string
      • getIntegerProperty

        public java.lang.Integer getIntegerProperty(java.lang.String propName)
        Return proprty value for specified property as Integer
        Parameters:
        propName - property name
        Returns:
        property value as Integer
      • getBooleanProperty

        public boolean getBooleanProperty(java.lang.String propName,
                                          boolean dflt)
        Return proprty value for specified property as Integer
        Parameters:
        propName - property name
        Returns:
        property value as Integer
      • getLongProperty

        public java.lang.Long getLongProperty(java.lang.String propName)
        Return proprty value for specified property as Long
        Parameters:
        propName - property name
        Returns:
        property value as Long
      • setLongProperty

        public void setLongProperty(java.lang.String propName,
                                    long val)
        Sets property with integer value
        Parameters:
        propName - property name
        val - property value
      • setIntegerProperty

        public void setIntegerProperty(java.lang.String propName,
                                       int val)
        Sets property with integer value
        Parameters:
        propName - property name
        val - property value
      • setDoubleProperty

        public void setDoubleProperty(java.lang.String propName,
                                      double val)
        Sets property with double value
        Parameters:
        propName - property name
        val - property value
      • getDoubleProperty

        public java.lang.Double getDoubleProperty(java.lang.String propName)
        Return proprty value for specified property as Double
        Parameters:
        propName - property name
        Returns:
        property value as Double
      • getDateProperty

        public java.util.Date getDateProperty(java.lang.String propName)
        Return proprty value for specified property as Date
        Parameters:
        propName - property name
        Returns:
        property value as Date
      • setProperty

        public void setProperty(java.lang.String propName,
                                java.lang.Object value)
        Sets property with any value
        Parameters:
        propName - property name
        value - property value
      • removeProperty

        public void removeProperty(java.lang.String propName)
        Removes property propName.
        Parameters:
        propName - name of the property.
      • setProperties

        public void setProperties(java.util.Map data)
        Sets properties from the list
        Parameters:
        data - set of properties for the context.
      • getCurrentContext

        public static IntegrationContext getCurrentContext()
        Returns Integration Context
        Returns:
        the current IntegrationContext for this thread
      • createCurrentContext

        public static IntegrationContext createCurrentContext()
        Creates Integration Context if its not there and returnes it if no IntegrationContext is assocoated with the current thread. If current thread has an associated IntegrationContext then it will return that context irrespective of the value of create.
        Returns:
        the current IntegrationContext for this thread
      • destroyCurrentContext

        public static void destroyCurrentContext()
      • softClearContext

        public void softClearContext()
      • setInteractive

        public void setInteractive(boolean b)
      • isInteractive

        public boolean isInteractive()
      • updateConRefCount

        public void updateConRefCount(ConnectionKeyLight conKey,
                                      boolean inc,
                                      java.lang.StackTraceElement[] stackTrace)
      • dbConnInfo

        public java.lang.String dbConnInfo()
      • dumpDbConnectionTrace

        public java.lang.String dumpDbConnectionTrace()
      • getProcessUserInfo

        public UserInfo getProcessUserInfo()
      • setProcessUserInfo

        public void setProcessUserInfo(UserInfo userInfo)
      • addIntegrationMboCount

        public void addIntegrationMboCount()