Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
8bbb0ed
CAMEL-2624 incremental commit to track session creation.
Feb 20, 2012
0b570b2
Merge branch 'trunk' of git://git.apache.org/camel into trunk
Feb 20, 2012
24e3572
HFX-2624 Unit test for SessionCreated passes.
Feb 27, 2012
4abd1d0
CAMEL-2624 Added unit test to track session create, open, complete.
Feb 27, 2012
2f5f9ae
CAMEL-2624 Cleanup for unit test to track session.
Feb 27, 2012
143b171
CAMEL-2624 Mina2TcpAsyncOutOnly has 3 unit tests passing now.
Mar 4, 2012
492d855
CAMEL-2624 Mina2ClientServerTest and Mina2TcpAsyncOutOnlyTest pass no…
Mar 11, 2012
be184d1
CAMEL-2624 Modified some debug code
Mar 11, 2012
8c9589a
CAMEL-2624 Merged with upstream changes.
Mar 18, 2012
1cde023
Merge branch 'trunk' of git://git.apache.org/camel into trunk
Mar 18, 2012
6615831
Added IoHandlerAdapter to Mina2Configuration
Apr 1, 2012
65c28c0
Merge branch 'trunk' of git://git.apache.org/camel into trunk
Apr 1, 2012
db2eed4
CAMEL-2624 Merged with upsteam changes.
Apr 22, 2012
2b590ac
Merge branch 'trunk' into osi_b
May 12, 2012
535c878
Merge branch 'trunk' of git://git.apache.org/camel into trunk
May 22, 2012
d8069c9
Merge branch 'trunk' of git://git.apache.org/camel into trunk
May 28, 2012
e427ecb
Merge branch 'trunk' of git://git.apache.org/camel into trunk
Jun 10, 2012
d53e31e
Merge branch 'trunk' of git://git.apache.org/camel into trunk
Jun 12, 2012
ee150ff
Merged with upstream changes
cabeaulac Jun 29, 2012
f833a77
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jun 29, 2012
be3fb70
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jun 30, 2012
77d74d7
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jul 2, 2012
9f78942
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jul 5, 2012
e4770ff
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jul 7, 2012
fbddfcb
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jul 22, 2012
3d6c8de
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jul 31, 2012
1d725eb
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Aug 3, 2012
7cb5d6f
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Aug 3, 2012
b4d1fa1
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Aug 10, 2012
0ed83e1
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Aug 18, 2012
8bae5ba
CAMEL-2624 Initial commit after reverting to HEAD. Integrating Asyc I…
cabeaulac Aug 18, 2012
1b875ed
CAMEL-2624 Changes to track session creation
cabeaulac Sep 29, 2012
6611e38
CAMEL-2624 Incremental commit to add IoHandlerAdapter to Mina2Confiru…
cabeaulac Oct 6, 2012
9212887
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 6, 2012
6988553
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 6, 2012
2729239
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 7, 2012
1a0b87d
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 7, 2012
f0de9f1
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 14, 2012
7eded63
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 16, 2012
5b4b874
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 29, 2012
821c4ba
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Oct 30, 2012
6e7474d
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Nov 1, 2012
2a176d0
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Nov 22, 2012
53903a5
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Nov 23, 2012
b6faff4
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Dec 14, 2012
79f0b03
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Dec 23, 2012
a150e6b
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Dec 26, 2012
394d65f
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Dec 27, 2012
cae1401
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Dec 28, 2012
b53bd4e
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 3, 2013
7b9d4e0
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 4, 2013
64b127c
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 12, 2013
e6165f8
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 13, 2013
32386eb
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 20, 2013
2f1b308
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 21, 2013
047b549
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 22, 2013
ea880f0
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 26, 2013
3e53db1
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 27, 2013
eb1cf1a
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 28, 2013
8cb8a15
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Jan 31, 2013
b61215c
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 3, 2013
027c45a
CAMEL-2624 Code to support full async producer and consumer added. Al…
cabeaulac Feb 4, 2013
f53d34f
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 4, 2013
5b11d56
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 8, 2013
ad1e2e0
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 8, 2013
e5aa521
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 9, 2013
c9b4689
Merge branch 'trunk' of git://git.apache.org/camel into trunk
cabeaulac Feb 10, 2013
bb00517
Merge branch 'trunk' of github.com:cabeaulac/camel into trunk
cabeaulac Feb 10, 2013
93a5cc8
CAMEL-2624 Updated Mina2SpringEMinaEndpointTest to expect 4 message b…
cabeaulac Feb 10, 2013
0c66599
CAMEL-2624 Updated Mina2Consumer. Uncommented logging code.
cabeaulac Feb 10, 2013
0efbbac
CAMEL-2624 Mina2Consumer - Properly setting MINA2_SESSION_OPENED prop…
cabeaulac Feb 10, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ target
.checkstyle
*.log
dependency-reduced-pom.xml
nb-configuration.xml
nbactions.xml

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.camel.RuntimeCamelException;
import org.apache.camel.util.jsse.SSLContextParameters;
import org.apache.mina.core.filterchain.IoFilter;
import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.filter.codec.ProtocolCodecFactory;

/**
Expand Down Expand Up @@ -52,6 +53,7 @@ public class Mina2Configuration implements Cloneable {
private SSLContextParameters sslContextParameters;
private boolean autoStartTls = true;
private int maximumPoolSize = 16; // 16 is the default mina setting
private IoHandlerAdapter ioHandler;
private boolean orderedThreadPoolExecutor = true;

/**
Expand Down Expand Up @@ -256,6 +258,17 @@ public void setMaximumPoolSize(int maximumPoolSize) {
this.maximumPoolSize = maximumPoolSize;
}

public IoHandlerAdapter getIoHandler() {
return ioHandler;
}

public void setIoHandler(IoHandlerAdapter ioHandler) {
this.ioHandler = ioHandler;
}




public boolean isOrderedThreadPoolExecutor() {
return orderedThreadPoolExecutor;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.mina2;

import java.nio.charset.Charset;
import java.util.List;

import org.apache.camel.LoggingLevel;
import org.apache.camel.RuntimeCamelException;
import org.apache.camel.util.jsse.SSLContextParameters;
import org.apache.mina.core.filterchain.IoFilter;
import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.filter.codec.ProtocolCodecFactory;

/**
* Mina2 configuration
*/
public class Mina2Configuration implements Cloneable {

private String protocol;
private String host;
private int port;
private boolean sync = true;
private boolean textline;
private Mina2TextLineDelimiter textlineDelimiter;
private ProtocolCodecFactory codec;
private String encoding;
private long timeout = 3000;
private boolean lazySessionCreation = true;
private boolean transferExchange;
private boolean minaLogger;
private int encoderMaxLineLength = -1;
private int decoderMaxLineLength = -1;
private List<IoFilter> filters;
private boolean allowDefaultCodec = true;
private boolean disconnect;
private boolean disconnectOnNoReply = true;
private LoggingLevel noReplyLogLevel = LoggingLevel.WARN;
private SSLContextParameters sslContextParameters;
private boolean autoStartTls = true;
private int maximumPoolSize = 16; // 16 is the default mina setting
<<<<<<< HEAD
private IoHandlerAdapter ioHandler;
=======
private boolean orderedThreadPoolExecutor = true;
>>>>>>> 6541d9bc3c504862973e5c488d3b7061900bba6a

/**
* Returns a copy of this configuration
*/
public Mina2Configuration copy() {
try {
return (Mina2Configuration) clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeCamelException(e);
}
}

public String getCharsetName() {
if (encoding == null) {
return null;
}
if (!Charset.isSupported(encoding)) {
throw new IllegalArgumentException("The encoding: " + encoding + " is not supported");
}

return Charset.forName(encoding).name();
}

public String getProtocol() {
return protocol;
}

public void setProtocol(String protocol) {
this.protocol = protocol;
}

public String getHost() {
return host;
}

public void setHost(String host) {
this.host = host;
}

public int getPort() {
return port;
}

public void setPort(int port) {
this.port = port;
}

public boolean isSync() {
return sync;
}

public void setSync(boolean sync) {
this.sync = sync;
}

public boolean isTextline() {
return textline;
}

public void setTextline(boolean textline) {
this.textline = textline;
}

public Mina2TextLineDelimiter getTextlineDelimiter() {
return textlineDelimiter;
}

public void setTextlineDelimiter(Mina2TextLineDelimiter textlineDelimiter) {
this.textlineDelimiter = textlineDelimiter;
}

public ProtocolCodecFactory getCodec() {
return codec;
}

public void setCodec(ProtocolCodecFactory codec) {
this.codec = codec;
}

public String getEncoding() {
return encoding;
}

public void setEncoding(String encoding) {
this.encoding = encoding;
}

public long getTimeout() {
return timeout;
}

public void setTimeout(long timeout) {
this.timeout = timeout;
}

public boolean isLazySessionCreation() {
return lazySessionCreation;
}

public void setLazySessionCreation(boolean lazySessionCreation) {
this.lazySessionCreation = lazySessionCreation;
}

public boolean isTransferExchange() {
return transferExchange;
}

public void setTransferExchange(boolean transferExchange) {
this.transferExchange = transferExchange;
}

public void setEncoderMaxLineLength(int encoderMaxLineLength) {
this.encoderMaxLineLength = encoderMaxLineLength;
}

public int getEncoderMaxLineLength() {
return encoderMaxLineLength;
}

public void setDecoderMaxLineLength(int decoderMaxLineLength) {
this.decoderMaxLineLength = decoderMaxLineLength;
}

public int getDecoderMaxLineLength() {
return decoderMaxLineLength;
}

public boolean isMinaLogger() {
return minaLogger;
}

public void setMinaLogger(boolean minaLogger) {
this.minaLogger = minaLogger;
}

public List<IoFilter> getFilters() {
return filters;
}

public void setFilters(List<IoFilter> filters) {
this.filters = filters;
}

public boolean isDatagramProtocol() {
return protocol.equals("udp");
}

public void setAllowDefaultCodec(boolean allowDefaultCodec) {
this.allowDefaultCodec = allowDefaultCodec;
}

public boolean isAllowDefaultCodec() {
return allowDefaultCodec;
}

public boolean isDisconnect() {
return disconnect;
}

public void setDisconnect(boolean disconnect) {
this.disconnect = disconnect;
}

public boolean isDisconnectOnNoReply() {
return disconnectOnNoReply;
}

public void setDisconnectOnNoReply(boolean disconnectOnNoReply) {
this.disconnectOnNoReply = disconnectOnNoReply;
}

public LoggingLevel getNoReplyLogLevel() {
return noReplyLogLevel;
}

public void setNoReplyLogLevel(LoggingLevel noReplyLogLevel) {
this.noReplyLogLevel = noReplyLogLevel;
}

public SSLContextParameters getSslContextParameters() {
return sslContextParameters;
}

public void setSslContextParameters(SSLContextParameters sslContextParameters) {
this.sslContextParameters = sslContextParameters;
}

public boolean isAutoStartTls() {
return autoStartTls;
}

public void setAutoStartTls(boolean autoStartTls) {
this.autoStartTls = autoStartTls;
}

public int getMaximumPoolSize() {
return maximumPoolSize;
}

public void setMaximumPoolSize(int maximumPoolSize) {
this.maximumPoolSize = maximumPoolSize;
}

<<<<<<< HEAD
public IoHandlerAdapter getIoHandler() {
return ioHandler;
}

public void setIoHandler(IoHandlerAdapter ioHandler) {
this.ioHandler = ioHandler;
}



=======
public boolean isOrderedThreadPoolExecutor() {
return orderedThreadPoolExecutor;
}

public void setOrderedThreadPoolExecutor(boolean orderedThreadPoolExecutor) {
this.orderedThreadPoolExecutor = orderedThreadPoolExecutor;
}
>>>>>>> 6541d9bc3c504862973e5c488d3b7061900bba6a
}
Loading