Tabnine Logo
StandardThreadExecutor
Code IndexAdd Tabnine to your IDE (free)

How to use
StandardThreadExecutor
in
org.apache.catalina.core

Best Java code snippets using org.apache.catalina.core.StandardThreadExecutor (Showing top 20 results out of 315)

origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

  @Override
  protected String getObjectNameKeyProperties() {
    StringBuilder name = new StringBuilder("type=Executor,name=");
    name.append(getName());
    return name.toString();
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Stop the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that needs to be reported
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  if ( executor != null ) executor.shutdownNow();
  executor = null;
  taskqueue = null;
}
origin: org.apache.tomcat/tomcat-catalina

StandardThreadExecutor stdThreadExecutor =
  (StandardThreadExecutor) executor;
stdThreadExecutor.contextStopping();
origin: jboss.web/jbossweb

public void start() throws LifecycleException {
  lifecycle.fireLifecycleEvent(BEFORE_START_EVENT, null);
  TaskQueue taskqueue = new TaskQueue();
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix);
  lifecycle.fireLifecycleEvent(START_EVENT, null);
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  taskqueue.setParent( (ThreadPoolExecutor) executor);
  lifecycle.fireLifecycleEvent(AFTER_START_EVENT, null);
}

origin: jboss.web/jbossweb

  public Thread newThread(Runnable r) {
    Thread t = new Thread(group, r, namePrefix + threadNumber.getAndIncrement());
    t.setDaemon(daemon);
    t.setPriority(getThreadPriority());
    return t;
  }
}
origin: codefollower/Tomcat-Research

/**
 * Stop the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that needs to be reported
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  if ( executor != null ) executor.shutdownNow();
  executor = null;
  taskqueue = null;
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

StandardThreadExecutor stdThreadExecutor =
  (StandardThreadExecutor) executor;
stdThreadExecutor.contextStopping();
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: org.apache.tomcat/tomcat-catalina

  @Override
  protected String getObjectNameKeyProperties() {
    StringBuilder name = new StringBuilder("type=Executor,name=");
    name.append(getName());
    return name.toString();
  }
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Stop the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that needs to be reported
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  if ( executor != null ) executor.shutdownNow();
  executor = null;
  taskqueue = null;
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

StandardThreadExecutor stdThreadExecutor =
  (StandardThreadExecutor) executor;
stdThreadExecutor.contextStopping();
origin: codefollower/Tomcat-Research

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

  @Override
  protected String getObjectNameKeyProperties() {
    StringBuilder name = new StringBuilder("type=Executor,name=");
    name.append(getName());
    return name.toString();
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Stop the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that needs to be reported
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  if ( executor != null ) executor.shutdownNow();
  executor = null;
  taskqueue = null;
}
origin: codefollower/Tomcat-Research

StandardThreadExecutor stdThreadExecutor =
  (StandardThreadExecutor) executor;
stdThreadExecutor.contextStopping();
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Start the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that prevents this component from being used
 */
@Override
protected void startInternal() throws LifecycleException {
  taskqueue = new TaskQueue(maxQueueSize);
  TaskThreadFactory tf = new TaskThreadFactory(namePrefix,daemon,getThreadPriority());
  executor = new ThreadPoolExecutor(getMinSpareThreads(), getMaxThreads(), maxIdleTime, TimeUnit.MILLISECONDS,taskqueue, tf);
  if (prestartminSpareThreads) {
    executor.prestartAllCoreThreads();
  }
  taskqueue.setParent(executor);
  setState(LifecycleState.STARTING);
}
origin: codefollower/Tomcat-Research

  @Override
  protected String getObjectNameKeyProperties() {
    StringBuilder name = new StringBuilder("type=Executor,name=");
    name.append(getName());
    return name.toString();
  }
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Stop the component and implement the requirements
 * of {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
 *
 * @exception LifecycleException if this component detects a fatal error
 *  that needs to be reported
 */
@Override
protected void stopInternal() throws LifecycleException {
  setState(LifecycleState.STOPPING);
  if ( executor != null ) executor.shutdownNow();
  executor = null;
  taskqueue = null;
}
origin: com.ovea.tajin.server/tajin-server-jetty9

StandardThreadExecutor stdThreadExecutor =
  (StandardThreadExecutor) executor;
stdThreadExecutor.contextStopping();
org.apache.catalina.coreStandardThreadExecutor

Most used methods

  • getMaxThreads
  • getMinSpareThreads
  • getThreadPriority
  • contextStopping
  • getName
  • setState
  • <init>
  • setMaxThreads

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JComboBox (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now