org.apache.catalina.Context.getCluster()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.apache.catalina.Context.getCluster()方法的一些代码示例,展示了Context.getCluster()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Context.getCluster()方法的具体详情如下:
包路径:org.apache.catalina.Context
类名称:Context
方法名:getCluster

Context.getCluster介绍

暂无

代码示例

代码示例来源:origin: org.apache.tomcat/tomcat-catalina-ha

@Override
protected void startInternal() throws LifecycleException {
  super.startInternal();
  if (getCluster() == null) {
    Cluster cluster = getContext().getCluster();
    if (cluster instanceof CatalinaCluster) {
      setCluster((CatalinaCluster)cluster);
    }
  }
  if (cluster != null) cluster.registerManager(this);
}

代码示例来源:origin: codefollower/Tomcat-Research

Cluster cluster = getContext().getCluster();
if (cluster instanceof CatalinaCluster) {
  setCluster((CatalinaCluster)cluster);

代码示例来源:origin: codefollower/Tomcat-Research

Context context = getContext() ;
if (context != null) {
  cluster = context.getCluster();
  if(cluster instanceof CatalinaCluster) {
    setCluster((CatalinaCluster) cluster);

相关文章

微信公众号

最新文章

更多

Context类方法