First benchmark working with capability-based RMI; adjustments in callbacks, etc.
[iot2.git] / benchmarks / drivers / LifxLightBulb / LightBulb_Skeleton.java
index 6580d8d4c0a55e98a014be35827294576376da7e..ced4a23cc30a834378f55af8a4c6653169b624ae 100644 (file)
@@ -14,13 +14,15 @@ public class LightBulb_Skeleton implements LightBulb {
        private LightBulb mainObj;
        private IoTRMIObject rmiObj;
 
-       private final static int object0Id = 0; //LightBulbTest
-       private static Integer[] object0Permission = { 2, 6, 1, 3, 4, 8, 0, 5, 7, 9 };
+       private String callbackAddress;
+       private final static int object0Id = 0; //LightBulbSmart
+       private static Integer[] object0Permission = { 2, 10, 1, 3, 11, 8, 12, 7, 13, 9, 6, 16, 17, 4, 0, 14, 15, 5 };
        private static List<Integer> set0Allowed;
        
 
-       public LightBulb_Skeleton(LightBulb _mainObj, int _port) throws Exception {
+       public LightBulb_Skeleton(LightBulb _mainObj, String _callbackAddress, int _port) throws Exception {
                mainObj = _mainObj;
+               callbackAddress = _callbackAddress;
                rmiObj = new IoTRMIObject(_port);
                set0Allowed = new ArrayList<Integer>(Arrays.asList(object0Permission));
                ___waitRequestInvokeMethod();