Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Webclient UI Avoid Caching Data to ObjectStore

$
0
0

Hi laurentsd ,

 

I want to develop a web client plugin using vSphere webclient SDK 5.1.

I referred and modified the chassisRack-ui and chassisRack-service samples according to my requirement.

As suggested by you in one of the thread (https://communities.vmware.com/message/2374748#2374748 ) to do not cache any objects in ObjectStore as it is not intended for it.

I tried to follow the route of getting the objects on the fly at traversal and return only the counts at start up within initializeObjectStore .

 

I have few difficulties in the same:

1) Is it correct that for every count i have to push a dummy object in objectstore to display the actual count in the Screen2 (refer attachment).

...For example to show 4 chasis count i have to push 4 dummy Chassis Objects.

2) If i push dummy objects equals to actual count according to my remote server  response then How can i get the details of those actual objects to display in Screen3.

....

As when i traverse from Screen2 to Screen 3 controls comes to below method

private Object getProperty(Chassis chassis, String propertyName) {

assert (chassis != null);

      if ("name".equals(propertyName)) {

         return chassis.getName();

      } else if ("location".equals(propertyName)) {

         return chassis.getLocation();

      } else if ("rack".equals(propertyName)) {

         return chassis.getRack();

      }

      return UNSUPPORTED_PROPERTY_FLAG;

   }

---------------------------------------------------------------------------------------------------

Now where should i have to write the code to get actual Chasis Object list from remote server  to return as a response while traversing from Screen2 to Screen 3 and return the actual objects for Chasis.?

can you provide any code required to achive the same or what are the entries requires at plugin.xml to have such flow.?

 

I am trying to make you aware the flow of my plugin :

1) My service layer will communicate to my remote server to get actual Objects/Data and which will in turn can be rendered at UI.

and as suggested i don't want to cache the objects to object store.

 

I am attaching the Screens which might clear the Objective.


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>