@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (obj == this) {
      return true;
    }
    if (! (obj instanceof CommandScriptDefinition)) {
      return false;
    }

    CommandScriptDefinition rhs = (CommandScriptDefinition) obj;
    return new EqualsBuilder().
            append(script, rhs.script).
            append(scriptType, rhs.scriptType).
            append(timeout, rhs.timeout).isEquals();
  }
Timeout is given in seconds. Default value of 0 is used if not
overridden at xml file
ambari-server/src/main/java/org/apache/ambari/server/state/CommandScriptDefinition.java