throw new IllegalArgumentException("The element MachineData must be specified and contain at least the current status information");
if (Utility.stringIsNullOrEmpty(req.getMachineData().getUri())) {
throw new IllegalArgumentException("The element MachineData must specify a uri representing the system, typically in the format urn:hostname:system");
+ "(uri, memoryused, percentcpu, id, utcdatetime, threads, startedat) "
+ "VALUES (?, ?, ?, ?, ? ,?, ?);");
com.setString(1, Utility.truncate(req.getMachineData().getUri(), MAXTEXT));
if (req.getMachineData().getBytesusedMemory() == null) {
com.setNull(2, java.sql.Types.BIGINT);
com.setString(8, req.getMachineData().getUri());
+ "rawdatamachinesensor (uri, id, utcdatetime, dataname, datavalue)"
+ " VALUES (?, ?, ?, ?, ?);");
com.setString(1, Utility.truncate(req.getMachineData().getUri(), MAXTEXT));
com.setString(2, UUID.randomUUID().toString());
com.setLong(3, now);
com.setString(10, Utility.truncate(req.getMachineData().getDriveInformation().get(i).getOperationalstatus(), MAXTEXT));
com.setString(11, Utility.truncate(req.getDomainname(), MAXTEXT));
com.setString(12, Utility.truncate(req.getMachineData().getUri(), MAXTEXT));
com.executeUpdate();
} catch (Exception ex) {