ePOST API

rice.post.proxy
Class NetworkLogUploadThread

java.lang.Object
  extended by java.lang.Thread
      extended by rice.post.proxy.NetworkLogUploadThread
All Implemented Interfaces:
java.lang.Runnable

public class NetworkLogUploadThread
extends java.lang.Thread

Author:
jstewart

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  byte[] buffer
           
protected  java.net.InetSocketAddress host
           
protected  java.security.PublicKey key
           
protected  Logger logger
           
protected  int pastry_port
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NetworkLogUploadThread(java.net.InetAddress localHost, int port, java.security.PublicKey key, java.net.InetSocketAddress server, Environment env)
           
 
Method Summary
protected  byte[] getHeader(java.io.File file)
           
 java.net.InetAddress getLocalHost()
           
 void run()
           
protected  void sendFile(java.io.File file, boolean delete)
           
 void sendFiles()
           
protected  void sleep()
           
 
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

host

protected java.net.InetSocketAddress host

buffer

protected byte[] buffer

key

protected java.security.PublicKey key

pastry_port

protected int pastry_port

logger

protected Logger logger
Constructor Detail

NetworkLogUploadThread

public NetworkLogUploadThread(java.net.InetAddress localHost,
                              int port,
                              java.security.PublicKey key,
                              java.net.InetSocketAddress server,
                              Environment env)
Method Detail

getLocalHost

public java.net.InetAddress getLocalHost()

run

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

sleep

protected void sleep()

sendFiles

public void sendFiles()
               throws java.io.IOException
Throws:
java.io.IOException

getHeader

protected byte[] getHeader(java.io.File file)

sendFile

protected void sendFile(java.io.File file,
                        boolean delete)
                 throws java.io.IOException
Throws:
java.io.IOException

ePOST API

Copyright © 2001-2005 - Rice Pastry.