Java Doc for FiberImpl.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) 


dalma.impl.FiberImpl

FiberImpl
final public class FiberImpl extends FiberSPI implements Serializable,ConditionListener(Code)
Smallest execution unit inside a Conversation .

Persistence and Fiber

Fiber can be persisted when it's FiberState.CREATED and FiberState.WAITING .
author:
   Kohsuke Kawaguchi


Inner Class :static class PersistedData implements Serializable

Field Summary
final  intid
     Uniquely identifies FiberImpl among other fibers that belong to the same owner.
final  ConversationImplowner
    Conversation to which this FiberImpl belongs to.

Constructor Summary
 FiberImpl(ConversationImpl owner, T init)
    

Method Summary
public static  FiberImpl<T>create(T entryPoint)
    
public static  FiberImplcurrentFiber(boolean mustReturnNonNull)
     Gets the Fiber that the current thread is executing.
 PersistedData<T>dehydrate()
     Called when the state of the FiberImpl is being moved to the disk.
public  ConversationImplgetOwner()
    
public  TgetRunnable()
    
public  FiberStategetState()
    
protected synchronized  Set<FiberCompletionCondition>getWaitList()
    
 voidhydrate(PersistedData<T> c)
     Called when the state of the FiberImpl is being moved from the disk.
public synchronized  voidjoin()
    
public synchronized  voidonActivated(Condition cond)
     Called by the endpoint threads when FiberImpl.cond becomes active.
 voidonLoad()
     Called after the conversation is restored from the disk.
synchronized  voidremove()
    
public synchronized  voidrun()
     Called from the executor thread to run this fiber until it suspends or completes. This method is synchronized to prevent a still-running conversation from being run again concurrently, which happens when: 1.
public  voidstart()
    
public synchronized  Tsuspend(Condition<T> c)
    

Field Detail
id
final int id(Code)
Uniquely identifies FiberImpl among other fibers that belong to the same owner. Necessary for serialization of the continuation to work correctly.



owner
final ConversationImpl owner(Code)
Conversation to which this FiberImpl belongs to.




Constructor Detail
FiberImpl
FiberImpl(ConversationImpl owner, T init)(Code)




Method Detail
create
public static FiberImpl<T> create(T entryPoint)(Code)

See Also:   Fiber.create(Runnable)



currentFiber
public static FiberImpl currentFiber(boolean mustReturnNonNull)(Code)
Gets the Fiber that the current thread is executing.
Parameters:
  mustReturnNonNull - if true and the current thread isn't executing any fiber, this methodthrows an exception.



dehydrate
PersistedData<T> dehydrate()(Code)
Called when the state of the FiberImpl is being moved to the disk.



getOwner
public ConversationImpl getOwner()(Code)



getRunnable
public T getRunnable()(Code)



getState
public FiberState getState()(Code)



getWaitList
protected synchronized Set<FiberCompletionCondition> getWaitList()(Code)



hydrate
void hydrate(PersistedData<T> c)(Code)
Called when the state of the FiberImpl is being moved from the disk.



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



onActivated
public synchronized void onActivated(Condition cond)(Code)
Called by the endpoint threads when FiberImpl.cond becomes active.



onLoad
void onLoad()(Code)
Called after the conversation is restored from the disk.



remove
synchronized void remove()(Code)
Called by ConversationImpl to clean up this fiber (as a part of removing the whole conversation.)



run
public synchronized void run()(Code)
Called from the executor thread to run this fiber until it suspends or completes. This method is synchronized to prevent a still-running conversation from being run again concurrently, which happens when: 1. a dock parks 2. a signal arrives and conversation resumes 3. the conversation gets queued and picked up 4. the conversation gets run



start
public void start()(Code)



suspend
public synchronized T suspend(Condition<T> c)(Code)



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