Search in sources :

Example 6 with KeyStringValueString

use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString in project rocketmq-externals by apache.

the class RedisEventTest method getKeyValuePair.

private KeyValuePair getKeyValuePair() {
    KeyValuePair pair = new KeyStringValueString();
    pair.setKey("key".getBytes());
    pair.setValue("value".getBytes());
    return pair;
}
Also used : KeyValuePair(com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair) KeyStringValueString(com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString)

Example 7 with KeyStringValueString

use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString in project rocketmq-externals by apache.

the class ListenerTest method testEventListener.

@Test
public void testEventListener() {
    EventListener eventListener = new RedisEventListener(this.config, processor);
    KeyValuePair pair = new KeyStringValueString();
    eventListener.onEvent(null, pair);
}
Also used : KeyValuePair(com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair) KeyStringValueString(com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString) EventListener(com.moilioncircle.redis.replicator.event.EventListener) RedisEventListener(org.apache.rocketmq.connect.redis.processor.RedisEventListener) RedisEventListener(org.apache.rocketmq.connect.redis.processor.RedisEventListener) Test(org.junit.Test)

Example 8 with KeyStringValueString

use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString in project rocketmq-externals by apache.

the class RedisSourceTaskTest method getRedisEvent.

private RedisEvent getRedisEvent() {
    RedisEvent redisEvent = new RedisEvent();
    KeyStringValueString event = new KeyStringValueString();
    event.setKey("key".getBytes());
    event.setValue("value".getBytes());
    event.setValueRdbType(RDB_TYPE_STRING);
    redisEvent.setEvent(event);
    redisEvent.setReplId("replId");
    redisEvent.setReplOffset(6000L);
    redisEvent.setStreamDB(0);
    return redisEvent;
}
Also used : RedisEvent(org.apache.rocketmq.connect.redis.pojo.RedisEvent) KeyStringValueString(com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString)

Example 9 with KeyStringValueString

use of com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString in project rocketmq-externals by apache.

the class ProcessorTest method getKeyValuePair.

private KeyValuePair getKeyValuePair() {
    KeyValuePair pair = new KeyStringValueString();
    pair.setKey("key".getBytes());
    pair.setValue("value".getBytes());
    return pair;
}
Also used : KeyValuePair(com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair) KeyStringValueString(com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString)

Aggregations

KeyStringValueString (com.moilioncircle.redis.replicator.rdb.datatype.KeyStringValueString)9 KeyValuePair (com.moilioncircle.redis.replicator.rdb.datatype.KeyValuePair)7 Test (org.junit.Test)6 EventListener (com.moilioncircle.redis.replicator.event.EventListener)3 Config (org.apache.rocketmq.connect.redis.common.Config)3 RedisEventListener (org.apache.rocketmq.connect.redis.processor.RedisEventListener)3 RedisEvent (org.apache.rocketmq.connect.redis.pojo.RedisEvent)2 DefaultRedisEventProcessor (org.apache.rocketmq.connect.redis.processor.DefaultRedisEventProcessor)2 RedisEventProcessor (org.apache.rocketmq.connect.redis.processor.RedisEventProcessor)2 ExceptionListener (com.moilioncircle.redis.replicator.ExceptionListener)1 GetSetCommand (com.moilioncircle.redis.replicator.cmd.impl.GetSetCommand)1 BatchedKeyStringValueString (com.moilioncircle.redis.replicator.rdb.iterable.datatype.BatchedKeyStringValueString)1 BatchedKeyValuePair (com.moilioncircle.redis.replicator.rdb.iterable.datatype.BatchedKeyValuePair)1 DefaultRedisEventHandler (org.apache.rocketmq.connect.redis.handler.DefaultRedisEventHandler)1 RedisEventHandler (org.apache.rocketmq.connect.redis.handler.RedisEventHandler)1 KVEntry (org.apache.rocketmq.connect.redis.pojo.KVEntry)1 RedisExceptionListener (org.apache.rocketmq.connect.redis.processor.RedisExceptionListener)1