org.apache.catalina.connector.Connector.createObjectName()方法的使用及代码示例

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

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

Connector.createObjectName介绍

暂无

代码示例

代码示例来源:origin: tomcat/catalina

oname = createObjectName(cb.getName(), "Connector");
Registry.getRegistry(null, null)
  .registerComponent(this, oname, null);

代码示例来源:origin: tomcat/catalina

mapperListener.destroy();
  Registry.getRegistry(null, null).unregisterComponent
    (createObjectName(this.domain,"Mapper"));
  Registry.getRegistry(null, null).unregisterComponent
    (createObjectName(this.domain,"ProtocolHandler"));
} catch (MalformedObjectNameException e) {
  log.error( sm.getString

代码示例来源:origin: jboss.web/jbossweb

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
public void stop() throws LifecycleException {
  // Validate and update our current state
  if (!started) {
    log.error(sm.getString("coyoteConnector.notStarted"));
    return;
  }
  lifecycle.fireLifecycleEvent(STOP_EVENT, null);
  started = false;
  try {
    Registry.getRegistry(null, null).unregisterComponent
      (createObjectName(this.domain,"ProtocolHandler"));
  } catch (MalformedObjectNameException e) {
    log.error( sm.getString
        ("coyoteConnector.protocolUnregistrationFailed"), e);
  }
  try {
    protocolHandler.destroy();
  } catch (Exception e) {
    throw new LifecycleException
      (sm.getString
       ("coyoteConnector.protocolHandlerDestroyFailed", e));
  }
}

代码示例来源:origin: tomcat/catalina

(protocolHandler, createObjectName(this.domain,"ProtocolHandler"), null);
} catch (Exception ex) {
  log.error(sm.getString
  ObjectName mapperOname = createObjectName(this.domain,"Mapper");
  if (log.isDebugEnabled())
    log.debug(sm.getString(

代码示例来源:origin: jboss.web/jbossweb

try {
  oname = createObjectName(container.getName(), "Connector");
  Registry.getRegistry(null, null)
    .registerComponent(this, oname, null);

代码示例来源:origin: org.glassfish.main.web/web-core

oname = createObjectName(domain, "Connector");
  controller=oname;
} catch (Exception e) {

代码示例来源:origin: jboss.web/jbossweb

(protocolHandler, createObjectName(this.domain,"ProtocolHandler"), null);
} catch (Exception ex) {
  log.error(sm.getString

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Terminate processing requests via this Connector.
 *
 * @exception LifecycleException if a fatal shutdown error occurs
 */
public void stop() throws LifecycleException {
  // Validate and update our current state
  if (!started) {
    CatalinaLogger.CONNECTOR_LOGGER.connectorNotStarted();
    return;
  }
  lifecycle.fireLifecycleEvent(STOP_EVENT, null);
  started = false;
  if (org.apache.tomcat.util.Constants.ENABLE_MODELER) {
    try {
      Registry.getRegistry(null, null).unregisterComponent
      (createObjectName(this.domain,"ProtocolHandler"));
    } catch (MalformedObjectNameException e) {
      CatalinaLogger.CONNECTOR_LOGGER.failedProtocolJmxUnregistration(oname, e);
    }
  }
  try {
    protocolHandler.destroy();
  } catch (Exception e) {
    throw new LifecycleException(MESSAGES.protocolHandlerDestroyFailed(e));
  }
}

代码示例来源:origin: org.jboss.web/jbossweb

try {
  oname = createObjectName(container.getName(), "Connector");
  Registry.getRegistry(null, null)
  .registerComponent(this, oname, null);

代码示例来源:origin: org.jboss.web/jbossweb

(protocolHandler, createObjectName(this.domain,"ProtocolHandler"), null);
} catch (Exception ex) {
  CatalinaLogger.CONNECTOR_LOGGER.failedProtocolJmxRegistration(oname, ex);

相关文章

Connector类方法