public void run(){
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("trying to send command..");
    }
    String retValue=commandRunner.runCommand(sourceCommandTagValue);
    if (logger.isDebugEnabled()) {
      logger.debug("notifying the handler");
    }
synchronized (commandExecLock) {
      this.returnValue=retValue;
      cmdExecutionStatus=STATUS_OK;
      commandExecLock.notifyAll();
    }
  }
 catch (  EqCommandTagException ex1) {
    logger.error("a problem with executing command encountered. problem description: " + ex1.getErrorDescription());
synchronized (commandExecLock) {
      cmdExecutionStatus=STATUS_NOK_FROM_EQUIPMENTD;
      cmdExecutionDescription=ex1.getErrorDescription();
    }
  }
catch (  Exception ex2) {
    logger.error("run(): Unexpected error executing the command : " + ex2.getMessage());
synchronized (commandExecLock) {
      cmdExecutionStatus=STATUS_NOK_FROM_EQUIPMENTD;
      cmdExecutionDescription=ex2.getMessage();
    }
  }
}

public void run ( ) { try { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "trying to send command.." ) ; } String retValue = commandRunner . runCommand ( sourceCommandTagValue ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "notifying the handler" ) ; } synchronized ( commandExecLock ) { this . returnValue = retValue ; cmdExecutionStatus = STATUS_OK ; commandExecLock . notifyAll ( ) ; } } catch ( EqCommandTagException ex1 ) { logger . error ( "a problem with executing command encountered. problem description: " + ex1 . getErrorDescription ( ) ) ; synchronized ( commandExecLock ) { cmdExecutionStatus = STATUS_NOK_FROM_EQUIPMENTD ; cmdExecutionDescription = ex1 . getErrorDescription ( ) ; } } catch ( Exception ex2 ) { logger . error ( "run(): Unexpected error executing the command : " + ex2 . getMessage ( ) ) ; synchronized ( commandExecLock ) { cmdExecutionStatus = STATUS_NOK_FROM_EQUIPMENTD ; cmdExecutionDescription = ex2 . getMessage ( ) ; } } }
run ( ) method for actually executing the command
