Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing full articles (2218 articles)
Browse article index
↧

Using objectCollectionTemplate to create a custom node,but no list info in the left hand view

$
0
0

The first pic is the screenshot of sample "chassis-ui and chassis-service" in SDK 5.1,and in the marked place,lists shows the same.In the java-service code is the BOLD font code.

 

But in the second pic,no IP list in the left side,in fact ,it should show the two IP in the left side.And I can't find where to set the  "REGISTER_IP" to make the param showed in the left side.

 

 

 

   public Object createChassis() {

      int index = _chassisDataStore.size();

      // Creates a new object

      Object chassisReference = _objectRefService.getReference(

            CHASSIS_TYPE, "chassis-test-"+index, null);

      String uid = _objectRefService.getUid(chassisReference);

      // Creates 2 properties

      Map<String, Object> propertiesMap = new HashMap<String, Object>();

      propertiesMap.put(CHASSIS_NAME, "Chassis-beta"+index);

      propertiesMap.put(CHASSIS_SERVER_TYPE, "Chassis_Type"+index);

      _chassisDataStore.put(uid, propertiesMap);

      return chassisReference;

   }

 

QQ截图20140723171324.jpg

 

 

Object chassisReference = _objectRefService.getReference(          CHASSIS_TYPE, ip, null);
String uid = _objectRefService.getUid(chassisReference);
Map<String, Object> propertiesMap = new HashMap<String, Object>();
propertiesMap.put(REGISTER_IP, ip);
propertiesMap.put(REGISTER_USERNAME, username);
propertiesMap.put(REGISTER_PORT, port);
_chassisDataStore.put(uid, propertiesMap);

 

QQ截图20140723164206.jpg

↧

Viewing full articles (2218 articles)
Browse article index

Latest Images

Trending Articles



Latest Images