Eureka Server Code Analysis 01

Eureka Server Configuration

InstanceStatus: Instance Status
    public  enum InstanceStatus { 
        UP, // Ready to receive traffic ready to receive communications (traffic) 
        DOWN, // the Do not the send traffic- Healthcheck failed The callback does not send traffic, health check service calls fail 
        the STARTING, // the Just starting- initializations to the About BE DONE - Not do
         // Send the traffic 
        OUT_OF_SERVICE, // intentionally deliberately off the traffic flow for the shutdown 
        UNKNOWN; 

        public  static InstanceStatus toEnum (String S) {
             IF (S =! null ) {
                 the try {
                     return InstanceStatus.valueOf(s.toUpperCase());
                } catch (IllegalArgumentException e) {
                    // ignore and fall through to unknown
                    logger.debug("illegal argument supplied to InstanceStatus.valueOf: {}, defaulting to {}", s, UNKNOWN);
                }
            }
            return UNKNOWN;
        }
    }

 

Guess you like

Origin www.cnblogs.com/zhujunhuawoaini/p/11073774.html