📄 splitfurthermessage.java
字号:
/*
* @(#)$Id: SplitFurtherMessage.java,v 1.1 2005/09/06 04:18:19 burkhart Exp $
*
* Copyright (c) 2001-2004 Regents of the University of California.
* All rights reserved.
*
* This file is distributed under the terms in the attached BERKELEY-LICENSE
* file. If you do not find these files, copies can be found by writing to:
* Computer Science Division, Database Group, Universite of California,
* 617 Soda Hall #1776, Berkeley, CA 94720-1776. Attention: Berkeley License
*
* Copyright (c) 2003-2004 Intel Corporation. All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE file.
* If you do not find these files, copies can be found by writing to:
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,
* Berkeley, CA, 94704. Attention: Intel License Inquiry.
*/
package pier.indexes.prefixhashtree;
import java.net.InetSocketAddress;
import pier.messages.IndexMessage;
import pier.messages.IndexSendMessage;
import services.network.Payload;
import util.BitID;
import util.network.serialization.GenericByteBuffer;
import util.network.serialization.SerializationManager;
import util.network.serialization.SerializeInetSocketAddress;
import util.network.serialization.SerializeString;
/**
* Class SplitFurtherMessage
*
* Just the same as IndexMessage, just a different type to make message sorting easier.
* Sent when a split is finished, to make sure the leaf nodes will continue to split
* if necessary.
*/
public class SplitFurtherMessage extends IndexMessage {
public static long serialVersionUID =
SerializationManager.getSerialUID("pier.indexes.prefixhashtree.SplitFurtherMessage");
/**
* Constructor QueryForwardRequest
*
* @param inputBuffer
*/
public SplitFurtherMessage(GenericByteBuffer inputBuffer) {
super(inputBuffer);
}
/**
* Method serialize
*
* @param outputBuffer
* @return
*/
public long serialize(GenericByteBuffer outputBuffer) {
super.serialize(outputBuffer);
return serialVersionUID;
}
/**
* Constructor QueryForwardRequest
*/
protected SplitFurtherMessage() {}
/**
* Method toString
* @return
*/
public String toString() {
return "<SplitFurtherMessage: N:" + indexName + ", T:" + indexType + ", S:"
+ source + ", M:" + messageID + ", A:" + additionalData + ">";
}
/**
* Method allocate
*
* @param indexName
* @param indexType
* @param source
* @param messageID
* @param newNodeKey
* @return
*/
public static SplitFurtherMessage allocate(String indexName, String indexType, InetSocketAddress source,
long messageID) {
SplitFurtherMessage message = new SplitFurtherMessage();
message.init(indexName, indexType, 0, source, messageID, new BitID());
return message;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -