|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.ZetaClient
Kernel of ZetaGrid.
| Field Summary | |
private boolean |
active
Is true if and only if the client is running. |
private static boolean |
downloadCompleted
|
private static ZetaProperties |
properties
Contains a persistent set of the ZetaGrid properties. |
private static boolean |
unknownHostExceptionOccur
true if an UnknownHostException occurs. |
| Constructor Summary | |
private |
ZetaClient()
Constructs the environment for the client. |
| Method Summary | |
private void |
downloadFiles()
Sends local information (filenames of the local directory (max. 900 characters), hostname, host address, os name, os version, os architecture, task name) to the server and receives required libraries for the runtime environment of the task. |
(package private) static void |
encrypt(int randomize,
byte[] keyClassData,
java.lang.String inFilename,
java.lang.String outFilename)
Encrypts a specified file. |
(package private) static void |
encrypt(int randomize,
java.lang.String inFilename,
java.lang.String outFilename)
Encrypts a specified file using the default encryption key. |
(package private) static java.lang.String |
encryptURLFile(java.lang.String urlFile)
Encrypts the file attribute of a URL if the parameter 'encryption.url' is equal to true. |
private static void |
exit()
Terminates the client process. |
private java.lang.Object[] |
extractSignature(java.lang.String signatures,
java.lang.String osName,
java.lang.String arch,
java.lang.String program)
Searches the digital signature of a specified program, os name and architecture in all downloaded digital signatures. |
static java.lang.String |
getKey()
Returns a unique key of this computer. |
private java.lang.String |
getSignatures(java.io.InputStream in)
Converts the digital signatures from an input stream to a string. |
private boolean |
ignoreFilename(java.lang.String filename)
|
static boolean |
isUnknownHostExceptionOccur()
Returns true if an UnknownHostException occurs. |
static void |
main(java.lang.String[] args)
Main program to start the client. |
private void |
setProxyAuthentification()
|
private void |
startComputationManager()
Starts the computation manager. |
(package private) static boolean |
verify(java.lang.String key,
java.lang.String signature,
byte[] data)
Verifies the digital signature of the data using the specified key |
private boolean |
verifySignatures(java.lang.String signatures)
Verifies the digital signature of all signatures. |
private void |
writeData(java.lang.String signature,
Key key,
java.io.InputStream in,
java.lang.String outName)
Writes a program on hard disk if the digital signature is correct. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean active
private static boolean downloadCompleted
private static boolean unknownHostExceptionOccur
true if an UnknownHostException occurs.
private static ZetaProperties properties
| Constructor Detail |
private ZetaClient()
| Method Detail |
public static void main(java.lang.String[] args)
args - argumens from the command line; 'exit' will terminate the active clientpublic static boolean isUnknownHostExceptionOccur()
true if an UnknownHostException occurs.
true if an UnknownHostException occurs.private void downloadFiles()
private boolean ignoreFilename(java.lang.String filename)
private void startComputationManager()
throws java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodExceptionprivate static void exit()
private void writeData(java.lang.String signature,
Key key,
java.io.InputStream in,
java.lang.String outName)
throws java.io.IOException
signature - digital signature of the programkey - public key of the digital signaturein - input stream with the program dataoutName - filename of the program
java.io.IOException - if an I/O error occurs.
private java.lang.String getSignatures(java.io.InputStream in)
throws java.io.IOException
in - input stream with the digital signatures
java.io.IOException - if an I/O error occurs.
private boolean verifySignatures(java.lang.String signatures)
throws java.io.IOException
signatures - all digital signatures
true if the digital signature of all signatures is correct.
java.io.IOException - if an I/O error occurs.
private java.lang.Object[] extractSignature(java.lang.String signatures,
java.lang.String osName,
java.lang.String arch,
java.lang.String program)
throws java.io.IOException
signatures - all downloaded digital signaturesosName - os namearch - processor architectureprogram - name of the program
java.io.IOException - if an I/O error occurs.private void setProxyAuthentification()
public static java.lang.String getKey()
static void encrypt(int randomize,
java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
randomize - random number for the key establishment protocolinFilename - name of the file which should be encryptedoutFilename - name of the encrypted file
java.io.IOException - if an I/O error occurs.
static void encrypt(int randomize,
byte[] keyClassData,
java.lang.String inFilename,
java.lang.String outFilename)
throws java.io.IOException
randomize - random number for the key establishment protocolkeyClassData - the bytes that make up the class data which contains the key for the encryption algorithminFilename - name of the file which should be encryptedoutFilename - name of the encrypted file
java.io.IOException - if an I/O error occurs.
static java.lang.String encryptURLFile(java.lang.String urlFile)
throws java.io.IOException
urlFile - file attribute of a URL
java.io.IOException - if an I/O error occurs.
static boolean verify(java.lang.String key,
java.lang.String signature,
byte[] data)
throws java.io.IOException
java.io.IOException - if an I/O error occurs.
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||