de.jw.cloud42.webapp
Class BundlingThread

java.lang.Object
  extended by java.lang.Thread
      extended by de.jw.cloud42.webapp.BundlingThread
All Implemented Interfaces:
java.lang.Runnable

public class BundlingThread
extends java.lang.Thread

Thread class, handles bundling a new AMI as background task.

Author:
fbitzer

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BundlingThread(java.lang.String dnsName, java.lang.String privateKey, AwsCredentials credentials, java.lang.String bucket, java.lang.String imageName, boolean use64Bit, boolean doNotify, java.lang.String messageTopic, java.lang.String messageText, java.lang.String messageInfo, byte[] privateKeyFile, byte[] certFile)
          Construktor, gathers required information at startup.
 
Method Summary
 RemoteResult getResult()
          Getter for the result of the bundling process.
 void run()
          This is the thread function that is invoked with Thread.start().
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundlingThread

public BundlingThread(java.lang.String dnsName,
                      java.lang.String privateKey,
                      AwsCredentials credentials,
                      java.lang.String bucket,
                      java.lang.String imageName,
                      boolean use64Bit,
                      boolean doNotify,
                      java.lang.String messageTopic,
                      java.lang.String messageText,
                      java.lang.String messageInfo,
                      byte[] privateKeyFile,
                      byte[] certFile)
Construktor, gathers required information at startup.

Parameters:
dnsName -
privateKey -
credentials -
bucket -
imageName -
use64Bit -
doNotify -
messageTopic -
messageText -
messageInfo -
privateKeyFile -
certFile -
Method Detail

run

public void run()
This is the thread function that is invoked with Thread.start(). It starts bundling by invoking the RemoteControl class.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getResult

public RemoteResult getResult()
Getter for the result of the bundling process.

Returns:


Copyright © 2010 just works! Software. All Rights Reserved.