live.threads
Class ThreadInitInfo

java.lang.Object
  extended bylive.threads.ThreadInitInfo

public class ThreadInitInfo
extends Object

This class holds information that is needed by a thread in order to start. ThreadedUserAction creates a ZVMTasks object for its subclasses to use, and the ConnectionInfo object holds the parameters that needs to initialize. The ActiveThreadsInfo object is used for tracking.

Author:
Evan Driscoll

Field Summary
private  Cache cache
           
private  ConnectionInfo connection
           
private  ActiveThreadsInfo threads
           
 
Constructor Summary
ThreadInitInfo(ConnectionInfo connectionInfo, ActiveThreadsInfo threadsInfo, Cache cache)
          Creates a new ThreadInitInfo object
 
Method Summary
 ActiveThreadsInfo getActiveThreadsInfo()
          Returns information about the active threads
 Cache getCache()
          Returns LIVE's cache
 ConnectionInfo getConnectionInfo()
          Returns the connection Info information
 void setCache(Cache cache)
          Sets the cache to a new cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private ConnectionInfo connection

threads

private ActiveThreadsInfo threads

cache

private Cache cache
Constructor Detail

ThreadInitInfo

public ThreadInitInfo(ConnectionInfo connectionInfo,
                      ActiveThreadsInfo threadsInfo,
                      Cache cache)
Creates a new ThreadInitInfo object

Parameters:
connectionInfo - User Name, Password, PortName, etc needed to open a socket
threadsInfo - Information about the active threads
cache - The current cache
Method Detail

getConnectionInfo

public ConnectionInfo getConnectionInfo()
Returns the connection Info information

Returns:
ConnectionInfo

getActiveThreadsInfo

public ActiveThreadsInfo getActiveThreadsInfo()
Returns information about the active threads

Returns:
ActiveThreadsInfo

getCache

public Cache getCache()
Returns LIVE's cache

Returns:
Cache

setCache

public void setCache(Cache cache)
Sets the cache to a new cache

Parameters:
cache - New cache


Copyright © 2005