Java Code Examples for kafka.utils.ZKStringSerializer

The following examples show how to use kafka.utils.ZKStringSerializer. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: DCMonitor   Source File: Resources.java    License: MIT License 5 votes vote down vote up
@Override
public Object deserialize(byte[] bytes) throws ZkMarshallingError {
  if (isZKDirectBytes.get()) {
    return bytes;
  } else {
    return ZKStringSerializer.deserialize(bytes);
  }
}
 
Example 2
Source Project: DCMonitor   Source File: Resources.java    License: MIT License 4 votes vote down vote up
@Override
public byte[] serialize(Object data) throws ZkMarshallingError {
  return ZKStringSerializer.serialize(data);
}
 
Example 3
Source Project: incubator-samoa   Source File: SystemsUtils.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] byteArray) throws ZkMarshallingError {
  return ZKStringSerializer.deserialize(byteArray);
}
 
Example 4
Source Project: incubator-samoa   Source File: SystemsUtils.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object obj) throws ZkMarshallingError {
  return ZKStringSerializer.serialize(obj);
}
 
Example 5
Source Project: Decision   Source File: ZkStringSerializer.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object data){
    return ZKStringSerializer.serialize(data);
}
 
Example 6
Source Project: Decision   Source File: ZkStringSerializer.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] bytes){
    return ZKStringSerializer.deserialize(bytes);
}
 
Example 7
Source Project: samoa   Source File: SystemsUtils.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Object deserialize(byte[] byteArray) throws ZkMarshallingError {
	return ZKStringSerializer.deserialize(byteArray);
}
 
Example 8
Source Project: samoa   Source File: SystemsUtils.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public byte[] serialize(Object obj) throws ZkMarshallingError {
	return ZKStringSerializer.serialize(obj);
}