Package org.codehaus.activemq.transport

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


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

    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

                    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

        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

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

                    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

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

        }
    }

    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

        socket.setSoTimeout(soTimeout);
        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(TransportStatusEvent.CONNECTED));
    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.transport.TransportStatusEvent

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.