cgl.narada.transport.udp
Class UDPPackageCombine
java.lang.Object
java.lang.Thread
cgl.narada.transport.udp.UDPPackageCombine
- All Implemented Interfaces:
- Runnable
public class UDPPackageCombine
- extends Thread
Title: UDPPackageCombine
Description: Helps to combine small packages which are the part of a bigger
package
- Version:
- 1.0
| 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 |
UDPPackageCombine
public UDPPackageCombine(boolean db)
- Constructor
getHT
public Hashtable getHT()
getSizeHT
public Hashtable getSizeHT()
shutdownServices
public void shutdownServices()
recombinePack
public byte[] recombinePack(long pnumber,
int wholepacksize,
int offset,
byte[] comingpackage)
- combines small packages which is part of bigger package
- Parameters:
pnumber - unique number of big packagewholepacksize - the whole size of big packageoffset - offset of small package in the big packagecomingpackage - the bytes of recevied small package
- Returns:
- combined package
run
public void run()
- This suns a thread which drops a packages if they are not complited in a
given time
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
main
public static void main(String[] args)
For comments and suggestions please send
e-mail to
The NaradaBrokering Project