Browsing All Posts published on »May, 2011«

TechDoc: Using comma separated values instead of JSON or XML for efficient data transfer

May 24, 2011

0

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…]

TechDoc: Method Calls and Events on Remote Objects

May 19, 2011

0

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…]

TechDoc: Calling remote methods – Sending requests and responses

May 18, 2011

0

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…]

TechDoc: Securing your SmartSpaces

May 12, 2011

0

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…]

TechDoc: Identifying- and connecting to- SmartSpaces and Sandboxes

May 12, 2011

0

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…]

TechDoc: SmartSpaces-Client design principles and the Core Library

May 10, 2011

0

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…]

TechDoc: Simple HTTP server – Serving HTML and binary content in the cluster

May 10, 2011

0

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…]

TechDoc: JSON and JSON libraries used

May 9, 2011

0

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…]

TechDoc: Events and Messages for Smart Spaces

May 6, 2011

0

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…]

TechDoc: Finding and identifying SmartSpace Servers in a local network

May 6, 2011

0

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…]

Follow

Get every new post delivered to your Inbox.