Remote Objects, Sockets and Data When you send data from one Remote Object to another over Sockets, you want this to happen fast and without too much waste. I started using JSON for the HotForestGreen framework, but started to dislike it for the overhead it creates. There is too much redundancy in the way it… [Read more…]
Remote Objects A Remote Object is – in principle – any object that extends the BaseRemoteObject class. Remote Objects are representatives of one single Object, but distributed over multiple locations. Purpose 1: synchronizing objects When the user changes the values on a Remote Object and that change is submitted to the Cluster, we want those… [Read more…]
Requests and Responses Requests – Are comparable to method calls, but then to all objects in the scope of your applation Responses – Are responses to your Request. Static and on Objects There are two types of remote methods: Static methods - Which are implemented on Class-level and are called via ClassName.myStaticMethod(); Methods on an Object -… [Read more…]
What you have when you started: 30 minutes and up and running If you installed your SmartSpaces Cluster for the first time, running one or more Servers and everything happening Ad Hoc via the automatic Discovery Servers, you now have the following: SmartSpaces Servers communication anything to anyone – Blabbering all your secrets to anyone… [Read more…]
Definitions: SmartSpaces, SmartSpace Hubs and SandBoxes SmartSpace: A location that is wired up and made “smart” and interactive using computing power, sensors and computer controlled devices. (Global) SmartSpace Hub: A Server somewhere on the web to which a Local SmartSpace (Application) can connect. The global connection can be used to: Share data – Over the… [Read more…]
What is a SmartSpaces Client? A SmartSpaces Client runs on a Client computer and is used to connect to a Smart Space Application Pool. More concrete:when you enter a Smart Space, you want to be able to connect to it. To do this, you open a specific application which is a SmartSpaces Client. What is… [Read more…]
Addressing the issue of serving Remote Controls, web pages and binary data The SmartSpaces servers are very simple Socket Servers. Their goal is to provide a light weight infrastructure to distribute simple Text based messages through. But how do you send images from one SmartSpaces Node to another? Or offer your Clients a Remote Control… [Read more…]
Basis JSON looks like this: {"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "onclick": "OpenDoc()"}, {"value": "Close", "onclick": "CloseDoc()"} ] } }} Objects and variables are represented as string values organized in brackets. Reasons to use JSON Serialization and de-serialization of objects are one of the core… [Read more…]
All SmartSpaces Object do three things: Send messages – Which can either be: A Request for information – Sent to the group A Response on the Request – Sent back to the Requester An Event that took place – For others to respond on, but not to respond to A message – Which can be… [Read more…]
Basis All SmartSpace objects can operate both as Clients and Servers. When a new SmartSpace object enters the network, it will: Scan that network for other objects. Check which objects are SmartSpace Servers Request a Public Application manifest Identify which Servers host a specific Application Sandbox the SmartSpace object will connect to. Step 1: Scanning… [Read more…]
May 24, 2011
0