Examples of TransportStatusEvent


Examples of org.activemq.transport.TransportStatusEvent

    protected void initializeStreams() throws IOException{
        BufferedInputStream buffIn = new BufferedInputStream(socket.getInputStream(),8192);
        this.dataIn = new DataInputStream(buffIn);
        TcpBufferedOutputStream buffOut = new TcpBufferedOutputStream(socket.getOutputStream(),8192);
        this.dataOut = new DataOutputStream(buffOut);
        fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.CONNECTED));
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

                    log.warn("Peer closed connection", ex);
                }
                else {
                    onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
                }
                fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
            }
            stop();
        }
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

                    }
                }
                else {
                    onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
                }
                fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
            }
            stop();
        }
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

    protected void initializeStreams() throws IOException{
        BufferedInputStream buffIn = new BufferedInputStream(socket.getInputStream(),8192);
        this.dataIn = new DataInputStream(buffIn);
        TcpBufferedOutputStream buffOut = new TcpBufferedOutputStream(socket.getOutputStream(),8192);
        this.dataOut = new DataOutputStream(buffOut);
        fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.CONNECTED));
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

                    log.warn("Peer closed connection", ex);
                }
                else {
                    onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
                }
                fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
            }
            stop();
        }
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

        socket.setTcpNoDelay(isNoDelay());
        BufferedInputStream buffIn = new BufferedInputStream(socket.getInputStream());
        this.dataIn = new DataInputStream(buffIn);
        TcpBufferedOutputStream buffOut = new TcpBufferedOutputStream(socket.getOutputStream());
        this.dataOut = new DataOutputStream(buffOut);
        fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.CONNECTED));
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

        log.debug("Forcing disconnect");
        if (socket != null && socket.isConnected()) {
            socket.close();
        }
        setTransportConnected(false);
        fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

                    log.warn("Peer closed connection", ex);
                }
                else {
                    onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
                }
                fireStatusEvent(new TransportStatusEvent(this,TransportStatusEvent.DISCONNECTED));
            }
            stop();
        }
    }
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

    log.debug("Forcing disconnect");
    if (socket != null && socket.isConnected()) {
        socket.close();
    }
    setTransportConnected(false);
    fireStatusEvent(new TransportStatusEvent(TransportStatusEvent.DISCONNECTED));
}
View Full Code Here

Examples of org.codehaus.activemq.transport.TransportStatusEvent

        }
    }

    private void doClose(Exception ex) {
        if (!closed.get()) {
          fireStatusEvent(new TransportStatusEvent(TransportStatusEvent.DISCONNECTED));
            setPendingStop(true);
            onAsyncException(JMSExceptionHelper.newJMSException("Error reading socket: " + ex, ex));
            stop();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.