jsp.navbar.jsp Maven / Gradle / Ivy
The newest version!
<%@ page language="java"
import="java.util.*,java.net.*,com.netflix.config.*, com.netflix.eureka.*,com.netflix.eureka.resources.*,com.netflix.eureka.cluster.*,com.netflix.appinfo.*" pageEncoding="UTF-8" %>
DS Replicas:
<%
EurekaServerContext serverContext = (EurekaServerContext) pageContext.getServletContext()
.getAttribute(EurekaServerContext.class.getName());
List list = serverContext.getPeerEurekaNodes().getPeerNodesView();
int i=0;
for(PeerEurekaNode node : list){
try{
URI uri = new URI(node.getServiceUrl());
String href = "http://" + uri.getHost() + ":" + uri.getPort() + request.getContextPath();
out.print("" + uri.getHost() + "");
}catch(Exception e){
}
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy