public void setName (final String name)
  {
    if (name == null || name.trim ().length () == 0)
    {
      throw new IllegalArgumentException ("Scheduler name cannot be empty.");
    }

    m_sName = name;

    if (m_sThreadName == null)
    {
      // thread name not already set, use default thread name
      setThreadName (name + "_QuartzSchedulerThread");
    }
  }
public void setName ( final String name ) { if ( name == null || name . trim ( ) . length ( ) == 0 ) { throw new IllegalArgumentException ( "Scheduler name cannot be empty." ) ; } m_sName = name ; if ( m_sThreadName == null ) { setThreadName ( name + "_QuartzSchedulerThread" ) ; } }
<p>
Set the name for the <code>{@link QuartzScheduler}</code>.
</p>

@exception IllegalArgumentException
if name is null or empty.