/** {@inheritDoc} */ public EquipmentTaskResult execute() { notifyTaskStart(); notifyTaskMessage("Attempting to collect data from ME"); SystemCollectDataType result = (SystemCollectDataType) mobileEquipment.sendCommand( LCDefinitions.METHOD_NAME_SYSTEM_COLLECT_DATA, new Object[] {type}, this); if (result.getStatus() != 0) { resultCode = result.getStatus(); resultMessage = mobileEquipment.getLoaderCommunicationService().getLoaderErrorDesc(resultCode); } else { resultMessage = result.getCollectedData(); if (resultMessage == null || resultMessage.trim().length() == 0) { resultMessage = "No flash report received from ME."; } } return new EquipmentTaskResult(resultCode, resultMessage, null, false); }
/** {@inheritDoc} */ public String toString() { return getId() + "@" + mobileEquipment.toString(); }