com.waveset.session
Class ImporterContext

java.lang.Object
  extended bycom.waveset.session.ImporterContext
All Implemented Interfaces:
java.lang.Cloneable

public class ImporterContext
extends java.lang.Object
implements java.lang.Cloneable

An object passed into ImporterCommand implementations that provides a window into the execution environment. Try to supply the necessary system resources here, to keep the task's awareness of its execution context constrained. This will make it easier to run tasks in a variety of contexts if necessary.

The context may be used by more than one task thread, so everything in here needs to be reentrant.


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
ImporterContext(com.waveset.repository.Repository repo, com.waveset.server.Server server, Session session)
          Build a task context object.
 
Method Summary
 java.lang.Object clone()
           
 com.waveset.repository.Repository getRepository()
          Obtain a repository.
 com.waveset.server.Server getServer()
          Obtain the server.
 Session getSession()
          Obtain the session
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

ImporterContext

public ImporterContext(com.waveset.repository.Repository repo,
                       com.waveset.server.Server server,
                       Session session)
Build a task context object.

Method Detail

clone

public java.lang.Object clone()

getRepository

public com.waveset.repository.Repository getRepository()
Obtain a repository.

Some tasks might need direct access to the repository.


getServer

public com.waveset.server.Server getServer()
Obtain the server.


getSession

public Session getSession()
Obtain the session