Changeset 77 for trunk/src/main/java/omq/common/util
- Timestamp:
- 07/04/13 16:45:14 (11 years ago)
- Location:
- trunk/src/main/java/omq/common/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/main/java/omq/common/util/OmqConnectionFactory.java
r51 r77 56 56 57 57 // Get host info of rabbimq (where it is) 58 String host = env.getProperty(ParameterQueue. SERVER_HOST);59 int port = Integer.parseInt(env.getProperty(ParameterQueue. SERVER_PORT));58 String host = env.getProperty(ParameterQueue.RABBIT_HOST); 59 int port = Integer.parseInt(env.getProperty(ParameterQueue.RABBIT_PORT)); 60 60 61 61 boolean ssl = Boolean.parseBoolean(env.getProperty(ParameterQueue.ENABLE_SSL)); -
trunk/src/main/java/omq/common/util/ParameterQueue.java
r44 r77 12 12 */ 13 13 14 public static String SERIALIZER_NAME = "omq.serializer"; 14 /** 15 * Set the proxy's serializer method 16 */ 17 public static String PROXY_SERIALIZER = "omq.serializer"; 15 18 16 19 /** 17 20 * Set whether the messages must be compressed or not 18 21 */ 19 public static String ENABLE COMPRESSION = "omq.compression";22 public static String ENABLE_COMPRESSION = "omq.compression"; 20 23 21 24 /** 22 25 * Set the ip where the rabbitmq server is. 23 26 */ 24 public static String SERVER_HOST = "omq.host";27 public static String RABBIT_HOST = "omq.host"; 25 28 26 29 /** 27 30 * Set the port that rabbitmq uses. 28 31 */ 29 public static String SERVER_PORT = "omq.port";32 public static String RABBIT_PORT = "omq.port"; 30 33 31 34 /** … … 51 54 52 55 /** 53 * Set the clients event queue. Every client must have a different queue54 * name.55 */56 public static String EVENT_REPLY_QUEUE = "omq.reply_queue_event";57 58 /**59 56 * Set if the queues must be durable. The queues won't be lost when rabbitmq 60 57 * crashes if DURABLE_QUEUES is set trues. … … 72 69 public static String MESSAGE_TTL_IN_QUEUES = "omq.message_ttl_queue"; 73 70 74 // TODO persisten messages? the messages will be saved in the disk if this71 // TODO persistent messages? the messages will be saved in the disk if this 75 72 // flag is set true 76 73 74 /** 75 * Set if the system will use ssl 76 */ 77 77 public static String ENABLE_SSL = "omq.enable_ssl"; 78 public static String DEBUGFILE = "omq.debug_file";79 78 79 /** 80 * Set how many time we have to wait to retry the connection with the server 81 * when this goes down 82 */ 80 83 public static String RETRY_TIME_CONNECTION = "omq.retry_connection"; 81 84 82 /* 83 * Values85 /** 86 * Set how many threads will be created to invoke remote methods 84 87 */ 85 86 // Change this!!!87 public static String RPC_TYPE = "direct";88 89 88 public static String NUM_THREADS = "omq.num_threads"; 90 89 91 public static String REGISTRY_NAME = "REGISTRY"; 90 /** 91 * Set the specific name of a multi queue in a specific object 92 */ 93 public static String MULTI_QUEUE_NAME = "omq.multi_queue_name"; 94 95 /** 96 * Set if server will delete a queue when is no longer in use 97 */ 98 public static String AUTO_DELETE_QUEUE = "omq.auto_delete"; 99 100 /** 101 * Set if we are declaring an exclusive queue (restricted to this 102 * connection) 103 */ 104 public static String EXCLUSIVE_QUEUE = "omq.exclusive_queue"; 105 106 /** 107 * Set 1 to indicate the message will be nonpersistent and 2 to indicate it 108 * will be persistent 109 */ 110 public static String DELIVERY_MODE = "omq.delivery_mode"; 92 111 93 112 /** -
trunk/src/main/java/omq/common/util/Serializer.java
r72 r77 40 40 41 41 private Boolean getEnableCompression() { 42 return Boolean.valueOf(env.getProperty(ParameterQueue.ENABLE COMPRESSION, "false"));42 return Boolean.valueOf(env.getProperty(ParameterQueue.ENABLE_COMPRESSION, "false")); 43 43 } 44 44 … … 46 46 if (serializer == null) { 47 47 try { 48 String className = env.getProperty(ParameterQueue. SERIALIZER_NAME, Serializer.JAVA);48 String className = env.getProperty(ParameterQueue.PROXY_SERIALIZER, Serializer.JAVA); 49 49 50 50 if (className == null || className.isEmpty()) { … … 98 98 } 99 99 100 // TODO: remove this function and think about the event serialization101 100 public byte[] serialize(Object obj) throws SerializerException { 102 101 ISerializer instance = getInstance();
Note: See TracChangeset
for help on using the changeset viewer.