more code
[iotcloud.git] / src / java / iotcloud / TableStatus.java
index 27f9017d006b660bb5072d176fe587fcaa41240e..05e589641ce93d85d0795fa8ff04761a1792226e 100644 (file)
@@ -4,13 +4,14 @@ 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;
+       }
 }