public static DivideUpstream buildDivideUpstream(final String protocol, final String host, final Integer port, final String namespaceId, final EventType eventType) {
        return DivideUpstream.builder().upstreamHost(LOCALHOST)
                .protocol(protocol).upstreamUrl(buildUrl(host, port))
                .weight(50).warmup(Constants.WARMUP_TIME)
                .timestamp(System.currentTimeMillis())
                .status(!EventType.DELETED.equals(eventType)
                        && !EventType.OFFLINE.equals(eventType)
                        && !EventType.IGNORED.equals(eventType)
                        && Objects.nonNull(port)
                        && StringUtils.isNotBlank(host))
                .namespaceId(namespaceId)
                .build();
    }
Build divide upstream divide upstream.

@param protocol the protocol
@param host     the host
@param port     the port
@param namespaceId the namespaceId
@param eventType the eventType
@return the divide upstream
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/CommonUpstreamUtils.java