Java API's

Dear Team,

Using Java API how can we get all the devices within a server registered in jive?

Regards,
Rajas
Regards,
TCS_GMRT
Hi
See DbServer class documentation.

example to get all devices of all classes in one server:

  DbServer server = new DbServer(serverName);
  String[] classes = server.get_class_list();
  List<String> deviceList = new ArrayList<>();
  for (String _class: classes) {
     String[] devices = server.get_device_name(_class);
     for (String device : devices)
        deviceList.add(device);
  }

Regards
Pascal
Edited 7 years ago
 
Register or login to create to post a reply.