code: protected void setStatus(int status) {
  	if (this.status == status) return;
  	this.status = status;
  
  	if (listeners == null) return;
  	int size = listeners.size();
  	for(int i=0;i<size;i++) {
  	    GramJobListener listener = (GramJobListener)listeners.elementAt(i);
  	    listener.statusChanged(this);
  	}
      }
docs: Sets the status of the job.
  User should not call this function.
  
  @param status status of the job