ITeye博客

tomboxfan

tomboxfan · 共 112 篇文章

Schema Registry

https://docs.confluent.io/current/schema-registry/docs/index.html# 什么是Schema Registry? Schema Registry 主要用于管理Avro的Schema. Schema不断的演变,Schema Registry可以把它的版本变化管理起来。同时它提供了一个Restful API接口,你可以通过这个Restful API接口来获取你需要版本的Avro Schema. Kafka client可以使用Schema Resgitry的plugin,这样所有Kafka client 发送接受的Avro msg使用的…

2018-09-10 12:40 · Message · 评论(0)

TibListener

package listener; import com.tibco.tibrv.Tibrv; import com.tibco.tibrv.TibrvException; import com.tibco.tibrv.TibrvListener; import com.tibco.tibrv.TibrvMsg; import com.tibco.tibrv.TibrvMsgCallback; import com.tibco.tibrv.TibrvRvdTransport; import constants.Constants; public class TibListener imple…

2011-02-11 17:36 · Tibco RV · 评论(0)

TibPublisher

package publisher; import com.tibco.tibrv.Tibrv; import com.tibco.tibrv.TibrvException; import com.tibco.tibrv.TibrvMsg; import com.tibco.tibrv.TibrvRvdTransport; import constants.Constants; public class TibPublisher implements Constants { private TibrvRvdTransport transport = null; public TibPubli…

2011-02-11 17:24 · Tibco RV · 评论(0)

isin logger

util class

2010-08-24 11:04 · util Class · 评论(0)

Tibco RV Sample Listener

import org.apache.log4j.Logger; import util.ConfigUtil; import util.Constants; import com.barcap.bondscape.monitor.PriceUpdateMonitor; import com.tibco.tibrv.Tibrv; import com.tibco.tibrv.TibrvDispatcher; import com.tibco.tibrv.TibrvException; import com.tibco.tibrv.TibrvListener; import com.tibco.…

2010-04-29 15:58 · Tibco RV · 评论(0)

ConfigUtil

package util; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; public class ConfigUtil { private Properties prop = new Properties(); public ConfigUtil() throws FileNotFoundException, IO…

2010-04-28 17:27 · util Class · 评论(0)

sample code

includes basic 1) spring datasource config 2) log4j.xml config 3) BaseDao/BaseDaoImpl

2010-04-28 15:43 · util Class · 评论(0)

T is part of return and no parameter is needed in method definition

Method definition private <T extends ModelData> ListStore<T> createCommaSeparatedWildcardListStore() { ListStore<T> store = new CustomFilterListStore<T>(); store.addFilter( new CommaSeparatedWildcardStoreFilter<T>()); return store; } Method usage this .companiesListStore = createCommaSeparatedWildc…

2009-12-09 15:25 · Generics · 评论(0)

SQL Summary

show primary key info sp_pkeys EMPLOYEE set a explicit pk name during creating table CREATE TABLE EMPLOYEE ( ID int Not Null CONSTRAINT pk_EMPLOYEE_ID PRIMARY KEY, FirstName nvarchar(20), LastName nvarchar(20) ) or CREATE TABLE EMPLOYEE ( ID int Not Null, FirstName nvarchar(20), LastName nvarchar(2…

2009-12-09 11:41 · Sql Server · 评论(0)

数据库分页

sqlserver2000的分页就是利用top、order by、asc、desc这几个关健字来控制分页查询。 mysql是通过limit等关健字。 而oracle则是利用rownum这个虚列来进行分页。 http://www.vifir.com/bbs/html/20080527/426030.html

2009-12-07 11:56 · Sql Server · 评论(0)

eclipse breakpoint doesn't work

simply delete .metadata folder of workspace, reimport all projects, rebuild,rerun.

2009-12-04 11:01 · eclipse · 评论(0)

equals(), hashCode() and toString()

@Override public boolean equals(Object object) { return EqualsBuilder. reflectionEquals ( this , object); } @Override public int hashCode() { return HashCodeBuilder. reflectionHashCode ( this ); } @Override public String toString() { return ToStringBuilder. reflectionToString ( this );

2009-11-18 21:49 · Java Basic · 评论(0)

GXT tricky issues

I’ve learned 3 tricky issue solutions today, of GXT, credit to genius Kevin. “did you forget to inherit a required module” error. This error is because, when GWT compiling Java source code into javascript, it needs the java code source code. If you in a GWT application, use a class which doesn’t in…

2009-11-17 01:03 · GXT · 评论(0)

SQL Server 日期格式转换

SQL Server中文版的默认的 日期 字段datetime 格式 是yyyy-mm-dd Thh:mm:ss.mmm 例如: select getdate() 2004-09-12 11:06:08.177 整理了一下SQL Server里面可能经常会用到的 日期格式 转换方法: 举例如下: select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','') …

2009-11-10 19:34 · Sql Server · 评论(0)

GXT CSS Usage

It’s pretty simple. Some key points to note as follow: 1) Quite often, you find your change to the .css file doesn’t take effect. The key question here, are you changing the right .css file? I find several .css files in my project. One of them is in war/css/aa.css, another is in ./css/aa.css. 2) Ad…

2009-11-02 16:40 · GXT · 评论(0)