Package org.apache.axis2.transport.base.threads

Examples of org.apache.axis2.transport.base.threads.NativeThreadFactory


        if (queue == null) {
            throw new IllegalStateException("Queue should be specified before initializing");
        }

        executor = new ThreadPoolExecutor(core, max, keepAlive, TimeUnit.SECONDS, queue,
                new NativeThreadFactory(new ThreadGroup("executor-group"),
                        "priority-worker" + (name != null ? "-" + name : "")));

        if (log.isDebugEnabled()) {
            log.debug("Started the thread pool executor with threads, " +
                    "core = " + core + " max = " + max +
View Full Code Here


        HttpParams params = getServerParameters();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Listener I/O dispatcher";
            ioReactor = new DefaultListeningIOReactor(
                NHttpConfiguration.getInstance().getServerIOWorkers(),               
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);

            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : "
                            + ioException.getMessage(), ioException);
View Full Code Here

        HttpParams params = getClientParameters();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Sender I/O dispatcher";
            ioReactor = new DefaultConnectingIOReactor(
                NHttpConfiguration.getInstance().getClientIOWorkers(),
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);
            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : " +
                        ioException.getMessage(), ioException);
                    return true;
View Full Code Here

        HttpParams params = getClientParameters();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Sender I/O dispatcher";
            ioReactor = new DefaultConnectingIOReactor(
                NHttpConfiguration.getInstance().getClientIOWorkers(),
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);
            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : " +
                        ioException.getMessage(), ioException);
                    return true;
View Full Code Here

        HttpParams params = listenerContext.getParams();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Listener I/O dispatcher";
            ioReactor = new DefaultListeningIOReactor(
                NHttpConfiguration.getInstance().getServerIOWorkers(),               
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);

            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : "
                            + ioException.getMessage(), ioException);
View Full Code Here

        if (queue == null) {
            throw new IllegalStateException("Queue should be specified before initializing");
        }

        executor = new ThreadPoolExecutor(core, max, keepAlive, TimeUnit.SECONDS, queue,
                new NativeThreadFactory(new ThreadGroup("executor-group"),
                        "priority-worker" + (name != null ? "-" + name : "")));

        initialzed = true;

        if (log.isDebugEnabled()) {
View Full Code Here

        log.info("Starting the RelayTransport Listener...");
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Listener I/O dispatcher";

            ioReactor = new DefaultListeningIOReactor(sourceConfiguration.getIOThreadCount(),
                    new NativeThreadFactory(new ThreadGroup(prefix + " thread group"),
                            prefix), sourceConfiguration.getHttpParameters());
           
            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : "
View Full Code Here

        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Sender I/O dispatcher";

            ioReactor = new DefaultConnectingIOReactor(
                    targetConfiguration.getIOThreadCount(),
                    new NativeThreadFactory(
                            new ThreadGroup(prefix + " Thread Group"), prefix),
                    targetConfiguration.getHttpParameters());

            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
View Full Code Here

        HttpParams params = listenerContext.getParams();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Listener I/O dispatcher";
            ioReactor = new DefaultListeningIOReactor(
                NHttpConfiguration.getInstance().getServerIOWorkers(),               
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);

            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : "
                            + ioException.getMessage(), ioException);
View Full Code Here

        HttpParams params = getClientParameters();
        try {
            String prefix = (sslContext == null ? "http" : "https") + "-Sender I/O dispatcher";
            ioReactor = new DefaultConnectingIOReactor(
                NHttpConfiguration.getInstance().getClientIOWorkers(),
                new NativeThreadFactory(new ThreadGroup(prefix + " thread group"), prefix), params);
            ioReactor.setExceptionHandler(new IOReactorExceptionHandler() {
                public boolean handle(IOException ioException) {
                    log.warn("System may be unstable: IOReactor encountered a checked exception : " +
                        ioException.getMessage(), ioException);
                    return true;
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.base.threads.NativeThreadFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.