org.elite.jdcbot.framework
Class BotEventDispatchThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.elite.jdcbot.framework.BotEventDispatchThread
All Implemented Interfaces:
java.lang.Runnable

public class BotEventDispatchThread
extends java.lang.Thread

Created on 31-May-08

Since:
0.7.1
Version:
0.1
Author:
AppleGrew

Nested Class Summary
private  class BotEventDispatchThread.DispatchEntity
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  jDCBot _bot
           
private  java.util.List<BotEventDispatchThread.DispatchEntity> dispatch
           
private  int ON_DOWNLOAD_COMPLETE
           
private  int ON_UPDATE_MY_INFO
           
private  int ON_UPLOAD_COMPLETE
           
private  int ON_UPLOAD_START
           
private  boolean running
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BotEventDispatchThread(jDCBot bot)
           
 
Method Summary
(package private)  void callOnDownloadComplete(User user, DUEntity due, boolean success, BotException e)
           
(package private)  void callOnUpdateMyInfo(java.lang.String user)
           
(package private)  void callOnUploadComplete(User user, DUEntity due, boolean success, BotException e)
           
(package private)  void callOnUploadStart(User user, DUEntity due)
           
private  java.lang.Object getArg(java.lang.Object[] args, int i)
           
 void run()
           
 void stopIt()
           
 
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
 

Field Detail

ON_DOWNLOAD_COMPLETE

private final int ON_DOWNLOAD_COMPLETE
See Also:
Constant Field Values

ON_UPLOAD_COMPLETE

private final int ON_UPLOAD_COMPLETE
See Also:
Constant Field Values

ON_UPLOAD_START

private final int ON_UPLOAD_START
See Also:
Constant Field Values

ON_UPDATE_MY_INFO

private final int ON_UPDATE_MY_INFO
See Also:
Constant Field Values

dispatch

private java.util.List<BotEventDispatchThread.DispatchEntity> dispatch

running

private volatile boolean running

_bot

private jDCBot _bot
Constructor Detail

BotEventDispatchThread

public BotEventDispatchThread(jDCBot bot)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getArg

private java.lang.Object getArg(java.lang.Object[] args,
                                int i)

callOnDownloadComplete

void callOnDownloadComplete(User user,
                            DUEntity due,
                            boolean success,
                            BotException e)

callOnUploadComplete

void callOnUploadComplete(User user,
                          DUEntity due,
                          boolean success,
                          BotException e)

callOnUploadStart

void callOnUploadStart(User user,
                       DUEntity due)

callOnUpdateMyInfo

void callOnUpdateMyInfo(java.lang.String user)

stopIt

public void stopIt()