|
@@ -46,10 +46,10 @@ import java.util.Objects;
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author netspider
|
|
* @author netspider
|
|
* @author emeroad
|
|
* @author emeroad
|
|
- *
|
|
|
|
|
|
+ *
|
|
*/
|
|
*/
|
|
@Repository
|
|
@Repository
|
|
public class HbaseHostApplicationMapDao implements HostApplicationMapDao {
|
|
public class HbaseHostApplicationMapDao implements HostApplicationMapDao {
|
|
@@ -125,7 +125,8 @@ public class HbaseHostApplicationMapDao implements HostApplicationMapDao {
|
|
|
|
|
|
private byte[] createKey(Application parentApplication, long time) {
|
|
private byte[] createKey(Application parentApplication, long time) {
|
|
Buffer buffer = new AutomaticBuffer();
|
|
Buffer buffer = new AutomaticBuffer();
|
|
- buffer.putPadString(parentApplication.getName(), HbaseTableConstants.APPLICATION_NAME_MAX_LEN);
|
|
|
|
|
|
+ //TODO 直接改成96看一哈
|
|
|
|
+ buffer.putPadString(parentApplication.getName(), 96);
|
|
buffer.putShort(parentApplication.getServiceTypeCode());
|
|
buffer.putShort(parentApplication.getServiceTypeCode());
|
|
buffer.putLong(time);
|
|
buffer.putLong(time);
|
|
return buffer.getBuffer();
|
|
return buffer.getBuffer();
|