formatting
[iotcloud.git] / src / java / iotcloud / TableStatus.java
index 27f9017d006b660bb5072d176fe587fcaa41240e..83aa9ccfa7e165095af34183042b9e3c807a9f8c 100644 (file)
@@ -3,14 +3,15 @@ import java.nio.ByteBuffer;
 
 class TableStatus extends Entry {
        int maxslots;
-       
-       TableStatus(int _maxslots) {
+
+       TableStatus(Slot slot, int _maxslots) {
+               super(slot);
                maxslots=_maxslots;
        }
-       
-       static Entry decode(ByteBuffer bb) {
+
+       static Entry decode(Slot slot, ByteBuffer bb) {
                int maxslots=bb.getInt();
-               return new TableStatus(maxslots);
+               return new TableStatus(slot, maxslots);
        }
 
        void encode(ByteBuffer bb) {
@@ -21,4 +22,8 @@ class TableStatus extends Entry {
        int getSize() {
                return Integer.BYTES+Byte.BYTES;
        }
+
+       byte getType() {
+               return Entry.TypeTableStatus;
+       }
 }