本文整理了Java中org.apache.catalina.Service.getExecutor()
方法的一些代码示例,展示了Service.getExecutor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.getExecutor()
方法的具体详情如下:
包路径:org.apache.catalina.Service
类名称:Service
方法名:getExecutor
[英]Retrieves executor by name, null if not found
[中]按名称检索执行器,如果未找到,则为null
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @return a string representation of the executor
* @throws MBeanException error accessing the associated service
*/
public String getExecutor(String name) throws MBeanException{
Service service = doGetManagedResource();
Executor executor = service.getExecutor(name);
return executor.toString();
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @return a string representation of the executor
* @throws MBeanException error accessing the associated service
*/
public String getExecutor(String name) throws MBeanException{
Service service = doGetManagedResource();
Executor executor = service.getExecutor(name);
return executor.toString();
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if ( ex != null ) _setExecutor(con,ex);
digester.push(con);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if (ex != null) {
setExecutor(con, ex);
}
String sslImplementationName = attributes.getValue("sslImplementationName");
if (sslImplementationName != null) {
setSSLImplementationName(con, sslImplementationName);
}
digester.push(con);
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
/**
* Process the beginning of this element.
*
* @param namespace the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if the parser is namespace aware, or just
* the element name otherwise
* @param attributes The attribute list for this element
*/
@Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Service svc = (Service)digester.peek();
Executor ex = null;
if ( attributes.getValue("executor")!=null ) {
ex = svc.getExecutor(attributes.getValue("executor"));
}
Connector con = new Connector(attributes.getValue("protocol"));
if (ex != null) {
setExecutor(con, ex);
}
String sslImplementationName = attributes.getValue("sslImplementationName");
if (sslImplementationName != null) {
setSSLImplementationName(con, sslImplementationName);
}
digester.push(con);
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
/**
* Retrieves executor by name
* @param name Name of the executor to be retrieved
* @throws MBeanException
*/
public String getExecutor(String name) throws MBeanException{
Service service;
try {
service = (Service)getManagedResource();
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (RuntimeOperationsException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}
Executor executor = service.getExecutor(name);
return executor.toString();
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
String name = entry.getKey().getLocalPart();
if (executorSupported && "executor".equals(name)) {
Executor executor = service.getExecutor(entry.getValue());
if (executor == null) {
throw new IllegalArgumentException("No executor found in service with name: " + entry.getValue());
内容来源于网络,如有侵权,请联系作者删除!