ZetaGrid v1.9

zeta
Class ZetaCalc

java.lang.Object
  |
  +--zeta.ZetaCalc
All Implemented Interfaces:
java.lang.Runnable

public class ZetaCalc
extends java.lang.Object
implements java.lang.Runnable

Manages the used resources for the computation.


Field Summary
private  int computationIsActive
           
private  java.io.File exitFile
           
private  java.lang.Thread outputThread
           
private  ZetaProperties properties
          Contains a persistent set of the ZetaGrid properties.
private  Task task
           
private  WorkUnitManager workUnitManager
           
 
Constructor Summary
ZetaCalc()
          Constructs the environment how to use the resources for the defined task.
 
Method Summary
private  void appendTimeInfo(long millis, java.lang.StringBuffer buffer)
          Appends time information.
private  void checkExit()
          Checks if the specifed 'exit.filename' exists and terminate the computation and the client.
private  java.io.File getExitFile()
           
 void run()
          Starts one thread to calculate per defined processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

private ZetaProperties properties
Contains a persistent set of the ZetaGrid properties.


task

private Task task

workUnitManager

private WorkUnitManager workUnitManager

outputThread

private java.lang.Thread outputThread

computationIsActive

private int computationIsActive

exitFile

private java.io.File exitFile
Constructor Detail

ZetaCalc

public ZetaCalc()
Constructs the environment how to use the resources for the defined task.

Method Detail

run

public void run()
Starts one thread to calculate per defined processor. Every thread retrieves and sumbits work units for the defined task.

Specified by:
run in interface java.lang.Runnable

appendTimeInfo

private void appendTimeInfo(long millis,
                            java.lang.StringBuffer buffer)
Appends time information.


checkExit

private void checkExit()
Checks if the specifed 'exit.filename' exists and terminate the computation and the client.


getExitFile

private java.io.File getExitFile()

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.