Java Doc for TCMessageImpl.java in  » Net » Terracotta » com » tc » net » protocol » tcm » 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 » Net » Terracotta » com.tc.net.protocol.tcm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.tc.net.protocol.AbstractTCNetworkMessage
      com.tc.net.protocol.tcm.TCMessageImpl

All known Subclasses:   com.tc.object.msg.DSOMessageBase,
TCMessageImpl
abstract public class TCMessageImpl extends AbstractTCNetworkMessage implements TCMessage(Code)

author:
   teck



Constructor Summary
protected  TCMessageImpl(MessageMonitor monitor, TCByteBufferOutput output, MessageChannel channel, TCMessageType type)
     Creates a new TCMessage to write data into (ie.
protected  TCMessageImpl(MessageMonitor monitor, MessageChannel channel, TCMessageHeader header, TCByteBuffer[] data)
    

Method Summary
public  voiddehydrate()
     Prepares all instance data into the payload byte buffer array in preparation for sending it.
protected  voiddehydrateValues()
    
public  voiddoRecycleOnRead()
    
protected  booleangetBooleanValue()
    
protected  bytegetByteValue()
    
protected  byte[]getBytesArray()
    
public  MessageChannelgetChannel()
    
public  ChannelIDgetChannelID()
    
protected  chargetCharValue()
    
public  ClientIDgetClientID()
    
protected  doublegetDoubleValue()
    
protected  floatgetFloatValue()
    
protected  TCByteBufferInputgetInputStream()
    
protected  intgetIntValue()
    
protected  longgetLongValue()
    
public  TCMessageTypegetMessageType()
    
protected  intgetMessageVersion()
    
protected  ObjectgetObject(TCSerializable target)
    
protected  shortgetShortValue()
    
protected  StringgetStringValue()
    
public synchronized  voidhydrate()
     Reads the payload byte buffer data and sets instance data.
protected  booleanhydrateValue(byte name)
     Subclasses *really* must implement this to set appropriate instance variables with the value of the given name.
protected  booleanisOutputStreamRecycled()
    
protected  voidputNVPair(byte name, boolean value)
    
protected  voidputNVPair(byte name, byte value)
    
protected  voidputNVPair(byte name, char value)
    
protected  voidputNVPair(byte name, double value)
    
protected  voidputNVPair(byte name, float value)
    
protected  voidputNVPair(byte name, int value)
    
protected  voidputNVPair(byte name, long value)
    
protected  voidputNVPair(byte name, short value)
    
protected  voidputNVPair(byte name, String value)
    
protected  voidputNVPair(byte name, TCSerializable object)
    
protected  voidputNVPair(byte name, TCByteBuffer[] data)
    
protected  voidputNVPair(byte name, byte[] bytes)
    
protected  voidrecycleOutputStream()
    
public  voidsend()
    
protected  voidsetMessageVersion(int version)
    


Constructor Detail
TCMessageImpl
protected TCMessageImpl(MessageMonitor monitor, TCByteBufferOutput output, MessageChannel channel, TCMessageType type)(Code)
Creates a new TCMessage to write data into (ie. to send to the network)



TCMessageImpl
protected TCMessageImpl(MessageMonitor monitor, MessageChannel channel, TCMessageHeader header, TCByteBuffer[] data)(Code)
Creates a new TCMessage object backed by the given data array (used when messages are read from the network)
Parameters:
  header -
Parameters:
  data -




Method Detail
dehydrate
public void dehydrate()(Code)
Prepares all instance data into the payload byte buffer array in preparation for sending it.



dehydrateValues
protected void dehydrateValues()(Code)



doRecycleOnRead
public void doRecycleOnRead()(Code)



getBooleanValue
protected boolean getBooleanValue() throws IOException(Code)



getByteValue
protected byte getByteValue() throws IOException(Code)



getBytesArray
protected byte[] getBytesArray() throws IOException(Code)



getChannel
public MessageChannel getChannel()(Code)



getChannelID
public ChannelID getChannelID()(Code)



getCharValue
protected char getCharValue() throws IOException(Code)



getClientID
public ClientID getClientID()(Code)



getDoubleValue
protected double getDoubleValue() throws IOException(Code)



getFloatValue
protected float getFloatValue() throws IOException(Code)



getInputStream
protected TCByteBufferInput getInputStream()(Code)



getIntValue
protected int getIntValue() throws IOException(Code)



getLongValue
protected long getLongValue() throws IOException(Code)



getMessageType
public TCMessageType getMessageType()(Code)



getMessageVersion
protected int getMessageVersion()(Code)



getObject
protected Object getObject(TCSerializable target) throws IOException(Code)



getShortValue
protected short getShortValue() throws IOException(Code)



getStringValue
protected String getStringValue() throws IOException(Code)



hydrate
public synchronized void hydrate() throws IOException, UnknownNameException(Code)
Reads the payload byte buffer data and sets instance data. This should be called after the message is read from the network before it is released to the client for use. XXX:: This synchronization is there to create proper memory boundary.



hydrateValue
protected boolean hydrateValue(byte name) throws IOException(Code)
Subclasses *really* must implement this to set appropriate instance variables with the value of the given name. Return false if the given name is unknown to your message class
Parameters:
  name -



isOutputStreamRecycled
protected boolean isOutputStreamRecycled()(Code)



putNVPair
protected void putNVPair(byte name, boolean value)(Code)



putNVPair
protected void putNVPair(byte name, byte value)(Code)



putNVPair
protected void putNVPair(byte name, char value)(Code)



putNVPair
protected void putNVPair(byte name, double value)(Code)



putNVPair
protected void putNVPair(byte name, float value)(Code)



putNVPair
protected void putNVPair(byte name, int value)(Code)



putNVPair
protected void putNVPair(byte name, long value)(Code)



putNVPair
protected void putNVPair(byte name, short value)(Code)



putNVPair
protected void putNVPair(byte name, String value)(Code)



putNVPair
protected void putNVPair(byte name, TCSerializable object)(Code)



putNVPair
protected void putNVPair(byte name, TCByteBuffer[] data)(Code)



putNVPair
protected void putNVPair(byte name, byte[] bytes)(Code)



recycleOutputStream
protected void recycleOutputStream()(Code)



send
public void send()(Code)



setMessageVersion
protected void setMessageVersion(int version)(Code)



Fields inherited from com.tc.net.protocol.AbstractTCNetworkMessage
final protected static TCLogger logger(Code)(Java Doc)

Methods inherited from com.tc.net.protocol.AbstractTCNetworkMessage
protected String describeMessage()(Code)(Java Doc)
protected String describePayload()(Code)(Java Doc)
public void doRecycleOnWrite()(Code)(Java Doc)
protected String dump()(Code)(Java Doc)
final public int getDataLength()(Code)(Java Doc)
final public TCByteBuffer[] getEntireMessageData()(Code)(Java Doc)
final public TCNetworkHeader getHeader()(Code)(Java Doc)
final public int getHeaderLength()(Code)(Java Doc)
final public TCNetworkMessage getMessagePayload()(Code)(Java Doc)
final public TCByteBuffer[] getPayload()(Code)(Java Doc)
final public Runnable getSentCallback()(Code)(Java Doc)
final public int getTotalLength()(Code)(Java Doc)
protected boolean isRecycled()(Code)(Java Doc)
final public boolean isSealed()(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
final public void seal()(Code)(Java Doc)
final protected void setMessagePayload(TCNetworkMessage subMessage)(Code)(Java Doc)
final protected void setPayload(TCByteBuffer[] newPayload)(Code)(Java Doc)
final public void setSentCallback(Runnable callback)(Code)(Java Doc)
final public String toString()(Code)(Java Doc)
final protected String toString0()(Code)(Java Doc)
final public void wasSent()(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.