Ref: split Job internal attribut in proper context class

This commit is contained in:
Sheepit Renderfarm
2024-11-20 17:43:26 +00:00
parent ce6aa7ecd4
commit e23ae562e8
7 changed files with 456 additions and 361 deletions

View File

@@ -0,0 +1,42 @@
/*
* Copyright (C) 2024 Laurent CLOUET
* Author Laurent CLOUET <laurent.clouet@nopnop.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2
* of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.sheepit.client;
import lombok.Data;
/**
* Track if the render ask been cancel, is finished...
*/
@Data public class RenderState {
private boolean askForRendererKill = false;
private boolean userBlock = false;
private boolean serverBlock = false;
private boolean incompatibleProcessKill = false;
public void setBlockIncompatibleProcess() {
setAskForRendererKill(true);
setIncompatibleProcessKill(true);
}
public void setBlock() {
setAskForRendererKill(true);
setUserBlock(true);
}
}