- Timestamp:
- 06/26/13 11:20:06 (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:ignore
set to
target
-
Property
svn:ignore
set to
-
trunk/pom.xml
r54 r62 4 4 <groupId>objectmq</groupId> 5 5 <artifactId>objectmq</artifactId> 6 <version>0.5. 1</version>6 <version>0.5.3</version> 7 7 <name>objectmq</name> 8 8 <description>Middleware based on AMQP</description> … … 108 108 <manifest> 109 109 <addClasspath>true</addClasspath> 110 <classpathPrefix>lib/</classpathPrefix>111 110 </manifest> 112 </archive> 111 </archive> 113 112 </configuration> 114 113 </plugin> -
trunk/src/main/java/omq/client/proxy/Proxymq.java
r59 r62 98 98 99 99 // set the serializer type 100 serializerType = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer. java);100 serializerType = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA); 101 101 102 102 listeners = new HashMap<String, EventListener<?>>(); -
trunk/src/main/java/omq/common/util/Serializer.java
r53 r62 22 22 // private static final Logger logger = 23 23 // Logger.getLogger(Serializer.class.getName()); 24 public static final String kryo= "kryo";25 public static final String java= "java";26 public static final String gson= "gson";24 public static final String KRYO = "kryo"; 25 public static final String JAVA = "java"; 26 public static final String GSON = "gson"; 27 27 28 28 // Client serializer … … 47 47 if (serializer == null) { 48 48 try { 49 String className = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer. java);50 49 String className = env.getProperty(ParameterQueue.SERIALIZER_NAME, Serializer.JAVA); 50 51 51 if (className == null || className.isEmpty()) { 52 52 throw new ClassNotFoundException("Class name is null or empty."); 53 53 } 54 54 55 55 serializer = getInstance(className); 56 56 } catch (Exception ex) { … … 62 62 } 63 63 64 public ISerializer getInstance(String type) throws SerializerException { 65 if ( kryo.equals(type)) {64 public ISerializer getInstance(String type) throws SerializerException { 65 if (KRYO.equals(type)) { 66 66 if (kryoSerializer == null) { 67 67 kryoSerializer = new KryoImp(); 68 68 } 69 69 return kryoSerializer; 70 } else if ( gson.endsWith(type)) {70 } else if (GSON.equals(type)) { 71 71 if (gsonSerializer == null) { 72 72 gsonSerializer = new GsonImp(); 73 73 } 74 74 return gsonSerializer; 75 } else {75 } else if (JAVA.equals(type)) { 76 76 if (javaSerializer == null) { 77 77 javaSerializer = new JavaImp(); … … 79 79 return javaSerializer; 80 80 } 81 82 throw new SerializerException("Serializer not found."); 81 83 } 82 84 -
trunk/src/main/java/omq/exception/SerializerException.java
r44 r62 8 8 private static final long serialVersionUID = 1L; 9 9 10 public SerializerException(String message) { 11 super(message); 12 } 13 10 14 public SerializerException(String message, Throwable cause) { 11 15 super(message, cause); -
trunk/src/test/java/omq/test/calculator/CalculatorTest.java
r54 r62 53 53 @Parameters 54 54 public static Collection<Object[]> data() { 55 Object[][] data = new Object[][] { { Serializer. java }, { Serializer.gson }, { Serializer.kryo} };55 Object[][] data = new Object[][] { { Serializer.JAVA }, { Serializer.GSON }, { Serializer.KRYO } }; 56 56 return Arrays.asList(data); 57 57 } -
trunk/src/test/java/omq/test/exception/ExceptionTest.java
r54 r62 50 50 @Parameters 51 51 public static Collection<Object[]> data() { 52 Object[][] data = new Object[][] { { Serializer. java }, { Serializer.gson }, { Serializer.kryo} };52 Object[][] data = new Object[][] { { Serializer.JAVA }, { Serializer.GSON }, { Serializer.KRYO } }; 53 53 return Arrays.asList(data); 54 54 } -
trunk/src/test/java/omq/test/faultTolerance/FaultToleranceTest.java
r54 r62 53 53 @Parameters 54 54 public static Collection<Object[]> data() { 55 Object[][] data = new Object[][] { { Serializer. java }, { Serializer.gson }, { Serializer.kryo} };55 Object[][] data = new Object[][] { { Serializer.JAVA }, { Serializer.GSON }, { Serializer.KRYO } }; 56 56 return Arrays.asList(data); 57 57 } -
trunk/src/test/java/omq/test/multiProcess/MultiProcessTest.java
r58 r62 49 49 @Parameters 50 50 public static Collection<Object[]> data() { 51 Object[][] data = new Object[][] { { Serializer. java }, { Serializer.gson }, { Serializer.kryo} };51 Object[][] data = new Object[][] { { Serializer.JAVA }, { Serializer.GSON }, { Serializer.KRYO } }; 52 52 return Arrays.asList(data); 53 53 } -
trunk/src/test/java/omq/test/stopBroker/StopBrokerTest.java
r54 r62 50 50 @Parameters 51 51 public static Collection<Object[]> data() { 52 Object[][] data = new Object[][] { { Serializer. java }, { Serializer.gson }, { Serializer.kryo} };52 Object[][] data = new Object[][] { { Serializer.JAVA }, { Serializer.GSON }, { Serializer.KRYO } }; 53 53 return Arrays.asList(data); 54 54 } -
trunk/src/test/java/omq/test/temporal/ProvaTest.java
r54 r62 77 77 @Parameters 78 78 public static Collection<Object[]> data() { 79 Object[][] data = new Object[][] { { Serializer. java} /*79 Object[][] data = new Object[][] { { Serializer.JAVA } /* 80 80 * , { 81 81 * Serializer
Note: See TracChangeset
for help on using the changeset viewer.