Class ContactInfoListImpl

    • Field Detail

      • orb

        protected ORB orb
      • lcrdLock

        private java.util.concurrent.locks.ReadWriteLock lcrdLock
      • targetIOR

        protected IOR targetIOR
      • effectiveTargetIOR

        protected IOR effectiveTargetIOR
      • effectiveTargetIORContactInfoList

        protected java.util.List<ContactInfo> effectiveTargetIORContactInfoList
      • primaryContactInfo

        protected ContactInfo primaryContactInfo
      • usePerRequestLoadBalancing

        private boolean usePerRequestLoadBalancing
      • startCount

        private int startCount
      • testPred

        private org.glassfish.pfl.basic.func.UnaryPredicate<ContactInfo> testPred
      • skipRotate

        private static java.lang.ThreadLocal<java.lang.Boolean> skipRotate
    • Constructor Detail

      • ContactInfoListImpl

        public ContactInfoListImpl​(ORB orb)
      • ContactInfoListImpl

        public ContactInfoListImpl​(ORB orb,
                                   IOR targetIOR)
    • Method Detail

      • filter

        private <T> java.util.List<T> filter​(java.util.List<T> arg,
                                             org.glassfish.pfl.basic.func.UnaryPredicate<T> pred)
      • setSkipRotate

        public static void setSkipRotate()
      • display

        @InfoMethod
        private void display​(java.lang.String msg,
                             int value)
      • display

        @InfoMethod
        private void display​(java.lang.String msg,
                             java.lang.Object value)
      • getPrimaryAddress

        private IIOPAddress getPrimaryAddress​(IOR ior)
      • changingEffectiveAddress

        @InfoMethod
        private void changingEffectiveAddress​(IIOPAddress oldAddr,
                                              IIOPAddress newAddr)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface ContactInfoList
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • createContactInfoList

        private void createContactInfoList()
      • addRemoteContactInfos

        private void addRemoteContactInfos​(IOR effectiveTargetIOR,
                                           java.util.List<ContactInfo> effectiveTargetIORContactInfoList)
      • createContactInfo

        protected ContactInfo createContactInfo​(java.lang.String type,
                                                java.lang.String hostname,
                                                int port)
      • setLocalSubcontract

        protected void setLocalSubcontract()
        setLocalSubcontract sets cached information that is set whenever the effectiveTargetIOR changes. Note: this must be maintained accurately whether or not the ORB allows local optimization, because ServantManagers in the POA ALWAYS use local optimization ONLY (they do not have a remote case).
      • getPrimaryContactInfo

        public ContactInfo getPrimaryContactInfo()