Java Doc for ChannelData.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » tribes » io » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.tribes.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.tribes.io.ChannelData

ChannelData
public class ChannelData implements ChannelMessage(Code)
The ChannelData object is used to transfer a message through the channel interceptor stack and eventually out on a transport to be sent to another node. While the message is being processed by the different interceptors, the message data can be manipulated as each interceptor seems appropriate.
author:
   Peter Rossbach
author:
   Filip Hanik
version:
   $Revision: 538977 $ $Date: 2007-05-17 17:43:49 +0200 (jeu., 17 mai 2007) $


Field Summary
public static  ChannelData[]EMPTY_DATA_ARRAY
    
public static  booleanUSE_SECURE_RANDOM_FOR_UUID
    

Constructor Summary
public  ChannelData()
    
public  ChannelData(boolean generateUUID)
    
public  ChannelData(byte[] uniqueId, XByteBuffer message, long timestamp)
    

Method Summary
public static  StringbToS(byte[] data)
    
public  Objectclone()
    
public  Objectdeepclone()
    
public  booleanequals(Object o)
    
public  voidgenerateUUID()
    
public  MembergetAddress()
    
public static  ChannelDatagetDataFromPackage(XByteBuffer xbuf)
    
public static  ChannelDatagetDataFromPackage(byte[] b)
    
public  byte[]getDataPackage()
    
public  byte[]getDataPackage(byte[] data, int offset)
    
public  intgetDataPackageLength()
    
public  XByteBuffergetMessage()
    
public  intgetOptions()
    
public  longgetTimestamp()
    
public  byte[]getUniqueId()
    
public  inthashCode()
    
public static  booleansendAckAsync(int options)
    
public static  booleansendAckSync(int options)
    
public  voidsetAddress(Member address)
    
public  voidsetMessage(XByteBuffer message)
    
public  voidsetOptions(int options)
    
public  voidsetTimestamp(long timestamp)
    
public  voidsetUniqueId(byte[] uniqueId)
    
public  StringtoString()
    

Field Detail
EMPTY_DATA_ARRAY
public static ChannelData[] EMPTY_DATA_ARRAY(Code)



USE_SECURE_RANDOM_FOR_UUID
public static boolean USE_SECURE_RANDOM_FOR_UUID(Code)




Constructor Detail
ChannelData
public ChannelData()(Code)
Creates an empty channel data with a new unique Id
See Also:   ChannelData.ChannelData(boolean)



ChannelData
public ChannelData(boolean generateUUID)(Code)
Create an empty channel data object
Parameters:
  generateUUID - boolean - if true, a unique Id will be generated



ChannelData
public ChannelData(byte[] uniqueId, XByteBuffer message, long timestamp)(Code)
Creates a new channel data object with data
Parameters:
  uniqueId - - unique message id
Parameters:
  message - - message data
Parameters:
  timestamp - - message timestamp




Method Detail
bToS
public static String bToS(byte[] data)(Code)



clone
public Object clone()(Code)
Create a shallow clone, only the data gets recreated ClusterData



deepclone
public Object deepclone()(Code)
Complete clone ClusterData



equals
public boolean equals(Object o)(Code)
Compares to ChannelData objects, only compares on getUniqueId().equals(o.getUniqueId())
Parameters:
  o - Object boolean



generateUUID
public void generateUUID()(Code)
Generates a UUID and invokes setUniqueId



getAddress
public Member getAddress()(Code)
Returns the source or reply-to address Member



getDataFromPackage
public static ChannelData getDataFromPackage(XByteBuffer xbuf)(Code)
Deserializes a ChannelData object from a byte array
Parameters:
  b - byte[] ChannelData



getDataFromPackage
public static ChannelData getDataFromPackage(byte[] b)(Code)



getDataPackage
public byte[] getDataPackage()(Code)
Serializes the ChannelData object into a byte[] array byte[]



getDataPackage
public byte[] getDataPackage(byte[] data, int offset)(Code)



getDataPackageLength
public int getDataPackageLength()(Code)



getMessage
public XByteBuffer getMessage()(Code)
Returns the message byte buffer



getOptions
public int getOptions()(Code)
returns the message options see org.apache.catalina.tribes.Channel#sendMessage(org.apache.catalina.tribes.Member[], java.io.Serializable, int)



getTimestamp
public long getTimestamp()(Code)
Returns the timestamp.



getUniqueId
public byte[] getUniqueId()(Code)
Returns the uniqueId.



hashCode
public int hashCode()(Code)



sendAckAsync
public static boolean sendAckAsync(int options)(Code)
Utility method, returns true if the options flag indicates that an ack is to be sent after the message has been received but not yet processed
Parameters:
  options - int - the options for the message boolean
See Also:   org.apache.catalina.tribes.Channel.SEND_OPTIONS_USE_ACK
See Also:   org.apache.catalina.tribes.Channel.SEND_OPTIONS_SYNCHRONIZED_ACK



sendAckSync
public static boolean sendAckSync(int options)(Code)
Utility method, returns true if the options flag indicates that an ack is to be sent after the message has been received and processed
Parameters:
  options - int - the options for the message boolean
See Also:   org.apache.catalina.tribes.Channel.SEND_OPTIONS_USE_ACK
See Also:   org.apache.catalina.tribes.Channel.SEND_OPTIONS_SYNCHRONIZED_ACK



setAddress
public void setAddress(Member address)(Code)
Sets the source or reply-to address
Parameters:
  address - Member



setMessage
public void setMessage(XByteBuffer message)(Code)

Parameters:
  message - The message to send.



setOptions
public void setOptions(int options)(Code)

Parameters:
  sets - the message options



setTimestamp
public void setTimestamp(long timestamp)(Code)

Parameters:
  timestamp - The timestamp to send



setUniqueId
public void setUniqueId(byte[] uniqueId)(Code)

Parameters:
  uniqueId - The uniqueId to send.



toString
public String toString()(Code)



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.