Java Doc for ConversationImpl.java in  » Workflow-Engines » Dalma » dalma » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » Dalma » dalma.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   dalma.spi.ConversationSPI
      dalma.impl.ConversationImpl

ConversationImpl
final public class ConversationImpl extends ConversationSPI implements Serializable(Code)
Represents a running conversation. TODO: we need a better way for a running user's conversation to expose information to the caller.

The monitor of this object is used to notify the completion of a conversation.

Persisting Conversation

There are two different modes of 'persistence' for this object (and fibers.) One is called hydration/dehydration, which is when we just persist the execution state of fibers to the disk to save memory usage (and to improve fault tolerance.)

The other is called save/load, which is when we persist the conversation object itself, but excluding the execution state of user code, to prepare for the engine to go down.
author:
   Kohsuke Kawaguchi



Field Summary
final  CounterfiberId
     Generates fiber id.
final protected  List<FiberImpl>fibers
     All the FiberImpl s that belong to this conversation.
final  intid
     Every conversation gets unique ID (per engine).
transient  booleanisRemoving
     Set to true if the ConversationImpl.remove() operation is in progress.
transient  CounterrunningCounts
     The number of Continuation s that are FiberState.RUNNING running right now.
transient  Set<ConversationCondition>waitList
     Other conversations that are blocking for the completion of this conversation.

Constructor Summary
 ConversationImpl(EngineImpl engine, Workflow target)
     Creates a new conversation that starts with the given target.

Method Summary
public  voidaddGenerator(GeneratorImpl g)
    
public static  ConversationImplcurrentConversation()
     Returns a ConversationImpl instance that the current thread is executing.
public  DategetCompletionDate()
    
public  EngineImplgetEngine()
    
protected  FiberImplgetFiber(int id)
    
public  GeneratorImplgetGenerator(UUID id)
    
public  intgetId()
    
public  List<LogRecord>getLog()
    
public  LoggergetLogger()
    
public  DategetStartDate()
    
public  ConversationStategetState()
     Gets the current state of the conversation.
public  StringgetTitle()
    
public synchronized  voidjoin()
    
public static  ConversationImplload(EngineImpl engine, File dir)
     Loads a ConversationImpl object from the disk.
synchronized  voidonFiberEndedRunning(FiberImpl fiber)
    
synchronized  voidonFiberStartedRunning(FiberImpl fiber)
    
public  voidremove()
    
public  voidsetTitle(String title)
    

Field Detail
fiberId
final Counter fiberId(Code)
Generates fiber id.



fibers
final protected List<FiberImpl> fibers(Code)
All the FiberImpl s that belong to this conversation. Indexed by their id.



id
final int id(Code)
Every conversation gets unique ID (per engine). This is used so that a serialized Conversation (as a part of the stack frame) can connect back to the running Conversation instance.



isRemoving
transient boolean isRemoving(Code)
Set to true if the ConversationImpl.remove() operation is in progress. When true, Fiber s are prevented from being executed.



runningCounts
transient Counter runningCounts(Code)
The number of Continuation s that are FiberState.RUNNING running right now.



waitList
transient Set<ConversationCondition> waitList(Code)
Other conversations that are blocking for the completion of this conversation. Transient, because ConversationCondition s in this queue re-register themselves. Always non-null.




Constructor Detail
ConversationImpl
ConversationImpl(EngineImpl engine, Workflow target) throws IOException(Code)
Creates a new conversation that starts with the given target.




Method Detail
addGenerator
public void addGenerator(GeneratorImpl g)(Code)



currentConversation
public static ConversationImpl currentConversation()(Code)
Returns a ConversationImpl instance that the current thread is executing.



getCompletionDate
public Date getCompletionDate()(Code)



getEngine
public EngineImpl getEngine()(Code)



getFiber
protected FiberImpl getFiber(int id)(Code)



getGenerator
public GeneratorImpl getGenerator(UUID id)(Code)



getId
public int getId()(Code)



getLog
public List<LogRecord> getLog()(Code)



getLogger
public Logger getLogger()(Code)



getStartDate
public Date getStartDate()(Code)



getState
public ConversationState getState()(Code)
Gets the current state of the conversation. always non-null.



getTitle
public String getTitle()(Code)



join
public synchronized void join() throws InterruptedException(Code)



load
public static ConversationImpl load(EngineImpl engine, File dir) throws IOException(Code)
Loads a ConversationImpl object from the disk.



onFiberEndedRunning
synchronized void onFiberEndedRunning(FiberImpl fiber)(Code)



onFiberStartedRunning
synchronized void onFiberStartedRunning(FiberImpl fiber)(Code)



remove
public void remove()(Code)



setTitle
public void setTitle(String title)(Code)



Methods inherited from dalma.spi.ConversationSPI
abstract public void addGenerator(GeneratorImpl generator)(Code)(Java Doc)
public static ConversationSPI currentConversation()(Code)(Java Doc)
abstract public EngineSPI getEngine()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.