public synchronized InstanceStatus setStatus ( InstanceStatus status ) { if ( this . status != status ) { InstanceStatus prev = this . status ; this . status = status ; setIsDirty ( ) ; return prev ; } return null ; }
Set the status for this instance .