NetRenderService Class Reference

#include <lib_net.h>

Inheritance diagram for NetRenderService:

Public Member Functions

MachineGroupGetMachineHead () const
 
MachineGetFirstMachine () const
 
MachineFindMachine (const C4DUuid &uid, MACHINELIST list, VERIFICATIONBIT bits=VERIFICATIONBIT::NONE) const
 
maxon::RWSpinlockGetMachineLock ()
 
void GetAllMachineUuids (maxon::BaseArray< C4DUuid > &machineUuids, MACHINELIST list=MACHINELIST::ALL, VERIFICATIONBIT bits=VERIFICATIONBIT::NONE, Bool includeLocalMachine=true, Bool includeZeroConfMachines=true)
 
RenderJobFindRenderJob (const C4DUuid &jobUuid, Bool lookInServerList) const
 
const C4DUuid GetUuid () const
 
void GetMacAddress (maxon::BaseArray< UChar > &macAddress) const
 
void CopyClientTasksFrom (maxon::BaseArray< C4DUuid > &jobUuids, maxon::BaseArray< Task > &tasks)
 
RepositoryGetRepository ()
 
UserPoolGetUserPool ()
 
maxon::RWSpinlockGetClientRenderJobLock ()
 
String GetName () const
 
Bool IsRunning () const
 
Int32 GetCpuCount () const
 
void NetConsoleOutput (maxon::OUTPUT flags, const maxon::String &value, maxon::OUTPUTLOCATION output, const maxon::SourceLocation &loc)
 
Bool AddLogToJob (const C4DUuid &jobUuid, const String &log, Bool doLock, Bool append)
 
Bool AddLogToMachine (const C4DUuid &machineUuid, const String &log, Bool doLock)
 
Bool AddMachine (const String &address=String(), const String &securityToken=String(), Bool allowGui=true, const C4DUuid *uuidOfMachineToOverwrite=nullptr)
 
String GetCurrentJobCommandAsString () const
 
RenderJobGetActive () const
 
CREATEJOBRESULT CreateRenderJob (const String &docName, C4DUuid &jobUuid, RENDERJOBCREATOR creator, const String &username, BaseThread *bt=nullptr, const Filename *watchFolderName=nullptr)
 
RENDERRESULT InitRendering (BaseDocument *doc, const BaseContainer &rdata, const C4DUuid &jobUuid, NETRENDERFLAGS flags, PictureViewer *pv, const BaseContainer &machines, MultipassBitmap *bmp=nullptr, ProgressHook *prog=nullptr, WriteProgressHook *wprog=nullptr, void *context=nullptr, Bool *useFrameNumberAsSuffix=nullptr, Filename *dispname=nullptr, const maxon::BaseArray< Bool > *renderTasks=nullptr)
 
RENDERRESULT StartRendering (THREADMODE mode, BaseDocument *doc, const C4DUuid &jobUuid, BaseThread *bt)
 
Bool VerifyServerOnClient (THREADMODE mode, const C4DUuid &machineUuid, const String &securityToken, Bool setClientAsGlobalSelected, Bool doLock=true, Int32 waitUntilExecutionInMs=0)
 
Bool DeleteRenderJob (const C4DUuid &jobUuid, Bool informClients)
 
Bool GetGlobalSelected (maxon::BaseArray< C4DUuid > &machines)
 
Bool GetJobsList (const BaseContainer &settings, maxon::BaseArray< BaseContainer > &jobs, Bool triggerWatchDog, DETAILSELECTOR rdata, DETAILSELECTOR assets, DETAILSELECTOR results, DETAILSELECTOR log, const C4DUuid *getOnlyThisJob=nullptr, Bool selectedJobOnly=false, const C4DUuid *user=nullptr)
 
Bool GetMachinesList (maxon::BaseArray< BaseContainer > &machines, Int32 logCount, const C4DUuid *getOnlyThisMachine) const
 
void GetGlobalSelectedMachines (maxon::BaseArray< C4DUuid > &machines, Bool &atLeastOneMachineOnline)
 
Bool InitAndStartRenderingFullAsync (const C4DUuid &jobUuid)
 
void StopRendering (THREADMODE mode, const C4DUuid &jobUuid, RENDERRESULT result)
 
Bool InsertJobBefore (const C4DUuid &jobUuid1, const C4DUuid &jobUuid2)
 
Bool InsertJobAfter (const C4DUuid &jobUuid1, const C4DUuid &jobUuid2)
 
Bool SetDefaultSceneName (const C4DUuid &jobUuid, const Filename &defaultSceneName)
 
Bool Message (const C4DUuid &remoteUuid, const NetworkIpAddrPort *remoteAddr, Bool isPrivate, const BaseContainer &msg, BaseContainer &result)
 
Bool ClearResults (const C4DUuid &jobUuid)
 
Bool RemoveResult (const C4DUuid &jobUuid, const Filename &resResultPath)
 
EDITION GetEdition () const
 
BaseContainerGetNetPreferences () const
 
maxon::Result< void > CopyRenderTaskFrom (const C4DUuid &jobUuid, maxon::BaseArray< RenderTask > &todo)
 

Member Function Documentation

◆ GetMachineHead()

MachineGroup* GetMachineHead ( ) const

◆ GetFirstMachine()

Machine* GetFirstMachine ( ) const

◆ FindMachine()

Machine* FindMachine ( const C4DUuid uid,
MACHINELIST  list,
VERIFICATIONBIT  bits = VERIFICATIONBIT::NONE 
) const

◆ GetMachineLock()

maxon::RWSpinlock& GetMachineLock ( )

◆ GetAllMachineUuids()

void GetAllMachineUuids ( maxon::BaseArray< C4DUuid > &  machineUuids,
MACHINELIST  list = MACHINELIST::ALL,
VERIFICATIONBIT  bits = VERIFICATIONBIT::NONE,
Bool  includeLocalMachine = true,
Bool  includeZeroConfMachines = true 
)

◆ FindRenderJob()

RenderJob* FindRenderJob ( const C4DUuid jobUuid,
Bool  lookInServerList 
) const

◆ GetUuid()

const C4DUuid GetUuid ( ) const

◆ GetMacAddress()

void GetMacAddress ( maxon::BaseArray< UChar > &  macAddress) const

◆ CopyClientTasksFrom()

void CopyClientTasksFrom ( maxon::BaseArray< C4DUuid > &  jobUuids,
maxon::BaseArray< Task > &  tasks 
)

◆ GetRepository()

Repository& GetRepository ( )

◆ GetUserPool()

UserPool& GetUserPool ( )

◆ GetClientRenderJobLock()

maxon::RWSpinlock& GetClientRenderJobLock ( )

◆ GetName()

String GetName ( ) const

◆ IsRunning()

Bool IsRunning ( ) const

◆ GetCpuCount()

Int32 GetCpuCount ( ) const

◆ NetConsoleOutput()

void NetConsoleOutput ( maxon::OUTPUT  flags,
const maxon::String value,
maxon::OUTPUTLOCATION  output,
const maxon::SourceLocation loc 
)

◆ AddLogToJob()

Bool AddLogToJob ( const C4DUuid jobUuid,
const String log,
Bool  doLock,
Bool  append 
)

◆ AddLogToMachine()

Bool AddLogToMachine ( const C4DUuid machineUuid,
const String log,
Bool  doLock 
)

◆ AddMachine()

Bool AddMachine ( const String address = String(),
const String securityToken = String(),
Bool  allowGui = true,
const C4DUuid uuidOfMachineToOverwrite = nullptr 
)

◆ GetCurrentJobCommandAsString()

String GetCurrentJobCommandAsString ( ) const

◆ GetActive()

RenderJob* GetActive ( ) const

◆ CreateRenderJob()

CREATEJOBRESULT CreateRenderJob ( const String docName,
C4DUuid jobUuid,
RENDERJOBCREATOR  creator,
const String username,
BaseThread bt = nullptr,
const Filename watchFolderName = nullptr 
)

◆ InitRendering()

RENDERRESULT InitRendering ( BaseDocument doc,
const BaseContainer rdata,
const C4DUuid jobUuid,
NETRENDERFLAGS  flags,
PictureViewer *  pv,
const BaseContainer machines,
MultipassBitmap bmp = nullptr,
ProgressHook prog = nullptr,
WriteProgressHook wprog = nullptr,
void *  context = nullptr,
Bool useFrameNumberAsSuffix = nullptr,
Filename dispname = nullptr,
const maxon::BaseArray< Bool > *  renderTasks = nullptr 
)

◆ StartRendering()

RENDERRESULT StartRendering ( THREADMODE  mode,
BaseDocument doc,
const C4DUuid jobUuid,
BaseThread bt 
)

◆ VerifyServerOnClient()

Bool VerifyServerOnClient ( THREADMODE  mode,
const C4DUuid machineUuid,
const String securityToken,
Bool  setClientAsGlobalSelected,
Bool  doLock = true,
Int32  waitUntilExecutionInMs = 0 
)

◆ DeleteRenderJob()

Bool DeleteRenderJob ( const C4DUuid jobUuid,
Bool  informClients 
)

◆ GetGlobalSelected()

Bool GetGlobalSelected ( maxon::BaseArray< C4DUuid > &  machines)

◆ GetJobsList()

Bool GetJobsList ( const BaseContainer settings,
maxon::BaseArray< BaseContainer > &  jobs,
Bool  triggerWatchDog,
DETAILSELECTOR  rdata,
DETAILSELECTOR  assets,
DETAILSELECTOR  results,
DETAILSELECTOR  log,
const C4DUuid getOnlyThisJob = nullptr,
Bool  selectedJobOnly = false,
const C4DUuid user = nullptr 
)

◆ GetMachinesList()

Bool GetMachinesList ( maxon::BaseArray< BaseContainer > &  machines,
Int32  logCount,
const C4DUuid getOnlyThisMachine 
) const

◆ GetGlobalSelectedMachines()

void GetGlobalSelectedMachines ( maxon::BaseArray< C4DUuid > &  machines,
Bool atLeastOneMachineOnline 
)

◆ InitAndStartRenderingFullAsync()

Bool InitAndStartRenderingFullAsync ( const C4DUuid jobUuid)

◆ StopRendering()

void StopRendering ( THREADMODE  mode,
const C4DUuid jobUuid,
RENDERRESULT  result 
)

◆ InsertJobBefore()

Bool InsertJobBefore ( const C4DUuid jobUuid1,
const C4DUuid jobUuid2 
)

◆ InsertJobAfter()

Bool InsertJobAfter ( const C4DUuid jobUuid1,
const C4DUuid jobUuid2 
)

◆ SetDefaultSceneName()

Bool SetDefaultSceneName ( const C4DUuid jobUuid,
const Filename defaultSceneName 
)

◆ Message()

Bool Message ( const C4DUuid remoteUuid,
const NetworkIpAddrPort remoteAddr,
Bool  isPrivate,
const BaseContainer msg,
BaseContainer result 
)

◆ ClearResults()

Bool ClearResults ( const C4DUuid jobUuid)

◆ RemoveResult()

Bool RemoveResult ( const C4DUuid jobUuid,
const Filename resResultPath 
)

◆ GetEdition()

EDITION GetEdition ( ) const

◆ GetNetPreferences()

BaseContainer* GetNetPreferences ( ) const

◆ CopyRenderTaskFrom()

maxon::Result<void> CopyRenderTaskFrom ( const C4DUuid jobUuid,
maxon::BaseArray< RenderTask > &  todo 
)