Class RunningConfigUtils
- java.lang.Object
-
- com.alibaba.nacos.config.server.utils.RunningConfigUtils
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
@Component public class RunningConfigUtils extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
Running config- Author:
- nkorange
-
-
Constructor Summary
Constructors Constructor Description RunningConfigUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetClusterName()static StringgetContextPath()static intgetServerPort()voidonApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)static voidsetContextPath(String contextPath)static voidsetServerPort(int serverPort)
-
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
-
getServerPort
public static int getServerPort()
-
getContextPath
public static String getContextPath()
-
getClusterName
public static String getClusterName()
-
setServerPort
public static void setServerPort(int serverPort)
-
setContextPath
public static void setContextPath(String contextPath)
-
-