Multicontrol SDN architecture - load-balancing

How can I make two pox controllers communicate to transfer the load within them?
I could invoke two pox controller but switch just communicating with one controller?

Please refer this link...it a similar question Communicating between multiple pox controllers
sorry there was a mistake in comment.... i am not able to edit it

Related

MVVM - calling UI-logic in code behind from ViewModel

I'm working on some .Net XAML application using MVVM pattern.
According to MVVM I keep my app logic in VM and in Code Behind I do UI-related actions.
But I need to execute some UI-related code in Code Behind in respond to some logic in VM.
Example:
I need to show an error message (custom toast notification in my case) when login operation failed. Login operation resides in VM, but I can't use any UI-specific classes in my VM, so I made an event in VM and hooking up to in in Code Behind, doing UI stuff.
Is it a violation of MVVM pattern? If yes, then how to solve my case?
Ideally communication between View and ViewModel in MVVM pattern done through Mediator to avoid hard-referencing View from VM. Having a mediator,
View can subscribe to certain type of message.
Then VM send the message to mediator,
mediator broadcast the message, so all party that subscribed will get it.
Upon receiving, View can respond by executing certain UI logic according to the message
The CodeProject link above shows how to implement a mediator class. But I will suggest to use a popular MVVM framework since you'll find it has Mediator implementation and many other tools for MVVM available out-of-the-box.

Sencha Touch 2.1 creating common class for AJAX request

I have two doubts
1)I am using sencha touch 2.1 for my application. And i want to create a common class for AJAX request because i am going to call from many controllers. Now my question is inside which directory(like model,store,controller) the common class for AJAX will come.And how i refer that class in app.js
2)I want to set some configs like common url,text,etc for my app. How can i achieve this.
Thanks in advance.
1) Ext.Ajax is a singleton class of Ext.data.Connection, so you can already use it throughout your application without creating many instances.
2) As stated in the Ext.Ajax documentation, you can simply set Ext.data.Connection configs on the Ext.Ajax instance.
Ext.Ajax.setUrl('defaultUrl.json');
Ext.Ajax.request({}); // will use the above URL
You can get a list of all the available configs by looking at the Ext.data.Connection class reference.

Objective-C using delegate methods for multiple services

I have a problem using delegates. I have an object that provides some services. Now these services need another (async) service (another object provides that). So two different services require the same (third) service. These two calls need to be handled different in the delegate method of the third service. How do i do that? Is there a design pattern for that?
I would just create some ServiceHandlerObject and register that as the third services delegate. And then just use a different ServiceHandlerObject for each service to provide. But i have no idea if this is "the way you do it".

WCF Add Service Reference

I am wanting to know how to add more then just one interface type in a service. at the moment i can only get one to show . I have a few other interfaces i would like to see appear under the service list, How do i do this?
Just found out that because i am a newbie i cannot post pictures yet so i'll try to describe my screen shot..... on my client application i want to add a service reference. I can find my mex endpoint and it finds my service however i can only find one interface type assoicated with the *ervice. when i click on the interface type i am presented with the available operations but i am wanting to add more then just one interface type to the service branch of the services treeview in the services window of the add service reference dialog box.
I am not sure if the words interface and contract are interchangeable
Thanks
Chris
you can find good information from this question and also on Msdn

Client Side Binding using by Converting the WCF Services to JSON

We have a Requirement of Consuming the WCf Services which is hosted in IIS like http://localhost/someservice.svc.
We would like to consume that Service via java script and bind my sample data controls called grid view on client side itself.
I think this can be done by Serializing and deserialzing to JSON and consume the data source and bind the grid controls.
Pls Refer the below link
http://forums.infragistics.com/forums/p/48035/258346.aspx
I would like to Achieve my func like the above link.
Can you pls guide me to achieve this Tasks.
Thanks
Regards
N.Balaji
Balaji,
Yes, you can definitely enable your WCF service (whether within IIS or not) to use JSON.
You do need to make one choice: do you want to use that service from the ASP .NET AJAX framework, or do you want to create a more general solution that is not tied down to that framework's usage within the browser?
If it's the former, use WebScriptEnablingBehavior. If it's the latter, use WebHttpBehavior.
For either scenario, detailed instructions are available in the following two MSDN sections:
AJAX Integration and JSON Support
WCF Web Http Programming Model