source: trunk/doc/omq/common/util/Serializers/KryoImp.html @ 96

Last change on this file since 96 was 85, checked in by stoda, 11 years ago

Javadocs updated

File size: 14.6 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="es">
4<head>
5<!-- Generated by javadoc (version 1.7.0_25) on Wed Jul 10 13:13:17 CEST 2013 -->
6<title>KryoImp</title>
7<meta name="date" content="2013-07-10">
8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9</head>
10<body>
11<script type="text/javascript"><!--
12    if (location.href.indexOf('is-external=true') == -1) {
13        parent.document.title="KryoImp";
14    }
15//-->
16</script>
17<noscript>
18<div>JavaScript is disabled on your browser.</div>
19</noscript>
20<!-- ========= START OF TOP NAVBAR ======= -->
21<div class="topNav"><a name="navbar_top">
22<!--   -->
23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24<!--   -->
25</a>
26<ul class="navList" title="Navigation">
27<li><a href="../../../../overview-summary.html">Overview</a></li>
28<li><a href="package-summary.html">Package</a></li>
29<li class="navBarCell1Rev">Class</li>
30<li><a href="class-use/KryoImp.html">Use</a></li>
31<li><a href="package-tree.html">Tree</a></li>
32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33<li><a href="../../../../index-files/index-1.html">Index</a></li>
34<li><a href="../../../../help-doc.html">Help</a></li>
35</ul>
36</div>
37<div class="subNav">
38<ul class="navList">
39<li><a href="../../../../omq/common/util/Serializers/JavaImp.html" title="class in omq.common.util.Serializers"><span class="strong">Prev Class</span></a></li>
40<li>Next Class</li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?omq/common/util/Serializers/KryoImp.html" target="_top">Frames</a></li>
44<li><a href="KryoImp.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li>Field&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li>Field&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">omq.common.util.Serializers</div>
83<h2 title="Class KryoImp" class="title">Class KryoImp</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<li>java.lang.Object</li>
88<li>
89<ul class="inheritance">
90<li>omq.common.util.Serializers.KryoImp</li>
91</ul>
92</li>
93</ul>
94<div class="description">
95<ul class="blockList">
96<li class="blockList">
97<dl>
98<dt>All Implemented Interfaces:</dt>
99<dd><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></dd>
100</dl>
101<hr>
102<br>
103<pre>public class <span class="strong">KryoImp</span>
104extends java.lang.Object
105implements <a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></pre>
106<div class="block">Kryo serializerimplementation. It uses the Kryo libraries.</div>
107<dl><dt><span class="strong">Author:</span></dt>
108  <dd>Sergi Toda <sergi.toda@estudiants.urv.cat></dd></dl>
109</li>
110</ul>
111</div>
112<div class="summary">
113<ul class="blockList">
114<li class="blockList">
115<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116<ul class="blockList">
117<li class="blockList"><a name="constructor_summary">
118<!--   -->
119</a>
120<h3>Constructor Summary</h3>
121<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
122<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
123<tr>
124<th class="colOne" scope="col">Constructor and Description</th>
125</tr>
126<tr class="altColor">
127<td class="colOne"><code><strong><a href="../../../../omq/common/util/Serializers/KryoImp.html#KryoImp()">KryoImp</a></strong>()</code>&nbsp;</td>
128</tr>
129</table>
130</li>
131</ul>
132<!-- ========== METHOD SUMMARY =========== -->
133<ul class="blockList">
134<li class="blockList"><a name="method_summary">
135<!--   -->
136</a>
137<h3>Method Summary</h3>
138<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
139<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
140<tr>
141<th class="colFirst" scope="col">Modifier and Type</th>
142<th class="colLast" scope="col">Method and Description</th>
143</tr>
144<tr class="altColor">
145<td class="colFirst"><code>java.lang.Object</code></td>
146<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/KryoImp.html#deserializeObject(byte[], java.lang.Class)">deserializeObject</a></strong>(byte[]&nbsp;bytes,
147                 java.lang.Class&lt;?&gt;&nbsp;type)</code>&nbsp;</td>
148</tr>
149<tr class="rowColor">
150<td class="colFirst"><code><a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a></code></td>
151<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/KryoImp.html#deserializeRequest(byte[], omq.server.RemoteObject)">deserializeRequest</a></strong>(byte[]&nbsp;bytes,
152                  <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)</code>
153<div class="block">Deserialize a Request</div>
154</td>
155</tr>
156<tr class="altColor">
157<td class="colFirst"><code><a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a></code></td>
158<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/KryoImp.html#deserializeResponse(byte[], java.lang.Class)">deserializeResponse</a></strong>(byte[]&nbsp;bytes,
159                   java.lang.Class&lt;?&gt;&nbsp;type)</code>
160<div class="block">Deserialize a Response</div>
161</td>
162</tr>
163<tr class="rowColor">
164<td class="colFirst"><code>byte[]</code></td>
165<td class="colLast"><code><strong><a href="../../../../omq/common/util/Serializers/KryoImp.html#serialize(java.lang.Object)">serialize</a></strong>(java.lang.Object&nbsp;obj)</code>
166<div class="block">Serialize</div>
167</td>
168</tr>
169</table>
170<ul class="blockList">
171<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
172<!--   -->
173</a>
174<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
175<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
176</ul>
177</li>
178</ul>
179</li>
180</ul>
181</div>
182<div class="details">
183<ul class="blockList">
184<li class="blockList">
185<!-- ========= CONSTRUCTOR DETAIL ======== -->
186<ul class="blockList">
187<li class="blockList"><a name="constructor_detail">
188<!--   -->
189</a>
190<h3>Constructor Detail</h3>
191<a name="KryoImp()">
192<!--   -->
193</a>
194<ul class="blockListLast">
195<li class="blockList">
196<h4>KryoImp</h4>
197<pre>public&nbsp;KryoImp()</pre>
198</li>
199</ul>
200</li>
201</ul>
202<!-- ============ METHOD DETAIL ========== -->
203<ul class="blockList">
204<li class="blockList"><a name="method_detail">
205<!--   -->
206</a>
207<h3>Method Detail</h3>
208<a name="serialize(java.lang.Object)">
209<!--   -->
210</a>
211<ul class="blockList">
212<li class="blockList">
213<h4>serialize</h4>
214<pre>public&nbsp;byte[]&nbsp;serialize(java.lang.Object&nbsp;obj)
215                 throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
216<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#serialize(java.lang.Object)">ISerializer</a></code></strong></div>
217<div class="block">Serialize</div>
218<dl>
219<dt><strong>Specified by:</strong></dt>
220<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#serialize(java.lang.Object)">serialize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
221<dt><span class="strong">Parameters:</span></dt><dd><code>obj</code> - - object to serialize</dd>
222<dt><span class="strong">Returns:</span></dt><dd>objectSerialized</dd>
223<dt><span class="strong">Throws:</span></dt>
224<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
225</li>
226</ul>
227<a name="deserializeRequest(byte[], omq.server.RemoteObject)">
228<!--   -->
229</a>
230<ul class="blockList">
231<li class="blockList">
232<h4>deserializeRequest</h4>
233<pre>public&nbsp;<a href="../../../../omq/common/message/Request.html" title="class in omq.common.message">Request</a>&nbsp;deserializeRequest(byte[]&nbsp;bytes,
234                         <a href="../../../../omq/server/RemoteObject.html" title="class in omq.server">RemoteObject</a>&nbsp;obj)
235                           throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
236<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeRequest(byte[], omq.server.RemoteObject)">ISerializer</a></code></strong></div>
237<div class="block">Deserialize a Request</div>
238<dl>
239<dt><strong>Specified by:</strong></dt>
240<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeRequest(byte[], omq.server.RemoteObject)">deserializeRequest</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
241<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - - serialized request</dd><dd><code>obj</code> - - remoteObject which is receiving requests</dd>
242<dt><span class="strong">Returns:</span></dt><dd>request</dd>
243<dt><span class="strong">Throws:</span></dt>
244<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
245</li>
246</ul>
247<a name="deserializeResponse(byte[], java.lang.Class)">
248<!--   -->
249</a>
250<ul class="blockList">
251<li class="blockList">
252<h4>deserializeResponse</h4>
253<pre>public&nbsp;<a href="../../../../omq/common/message/Response.html" title="class in omq.common.message">Response</a>&nbsp;deserializeResponse(byte[]&nbsp;bytes,
254                           java.lang.Class&lt;?&gt;&nbsp;type)
255                             throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
256<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeResponse(byte[], java.lang.Class)">ISerializer</a></code></strong></div>
257<div class="block">Deserialize a Response</div>
258<dl>
259<dt><strong>Specified by:</strong></dt>
260<dd><code><a href="../../../../omq/common/util/Serializers/ISerializer.html#deserializeResponse(byte[], java.lang.Class)">deserializeResponse</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../omq/common/util/Serializers/ISerializer.html" title="interface in omq.common.util.Serializers">ISerializer</a></code></dd>
261<dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - serialized response</dd><dd><code>type</code> - - return type expected</dd>
262<dt><span class="strong">Returns:</span></dt><dd>response</dd>
263<dt><span class="strong">Throws:</span></dt>
264<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code> - - If the serialization failed</dd></dl>
265</li>
266</ul>
267<a name="deserializeObject(byte[], java.lang.Class)">
268<!--   -->
269</a>
270<ul class="blockListLast">
271<li class="blockList">
272<h4>deserializeObject</h4>
273<pre>public&nbsp;java.lang.Object&nbsp;deserializeObject(byte[]&nbsp;bytes,
274                                 java.lang.Class&lt;?&gt;&nbsp;type)
275                                   throws <a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></pre>
276<dl><dt><span class="strong">Throws:</span></dt>
277<dd><code><a href="../../../../omq/exception/SerializerException.html" title="class in omq.exception">SerializerException</a></code></dd></dl>
278</li>
279</ul>
280</li>
281</ul>
282</li>
283</ul>
284</div>
285</div>
286<!-- ========= END OF CLASS DATA ========= -->
287<!-- ======= START OF BOTTOM NAVBAR ====== -->
288<div class="bottomNav"><a name="navbar_bottom">
289<!--   -->
290</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
291<!--   -->
292</a>
293<ul class="navList" title="Navigation">
294<li><a href="../../../../overview-summary.html">Overview</a></li>
295<li><a href="package-summary.html">Package</a></li>
296<li class="navBarCell1Rev">Class</li>
297<li><a href="class-use/KryoImp.html">Use</a></li>
298<li><a href="package-tree.html">Tree</a></li>
299<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
300<li><a href="../../../../index-files/index-1.html">Index</a></li>
301<li><a href="../../../../help-doc.html">Help</a></li>
302</ul>
303</div>
304<div class="subNav">
305<ul class="navList">
306<li><a href="../../../../omq/common/util/Serializers/JavaImp.html" title="class in omq.common.util.Serializers"><span class="strong">Prev Class</span></a></li>
307<li>Next Class</li>
308</ul>
309<ul class="navList">
310<li><a href="../../../../index.html?omq/common/util/Serializers/KryoImp.html" target="_top">Frames</a></li>
311<li><a href="KryoImp.html" target="_top">No Frames</a></li>
312</ul>
313<ul class="navList" id="allclasses_navbar_bottom">
314<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
315</ul>
316<div>
317<script type="text/javascript"><!--
318  allClassesLink = document.getElementById("allclasses_navbar_bottom");
319  if(window==top) {
320    allClassesLink.style.display = "block";
321  }
322  else {
323    allClassesLink.style.display = "none";
324  }
325  //-->
326</script>
327</div>
328<div>
329<ul class="subNavList">
330<li>Summary:&nbsp;</li>
331<li>Nested&nbsp;|&nbsp;</li>
332<li>Field&nbsp;|&nbsp;</li>
333<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
334<li><a href="#method_summary">Method</a></li>
335</ul>
336<ul class="subNavList">
337<li>Detail:&nbsp;</li>
338<li>Field&nbsp;|&nbsp;</li>
339<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
340<li><a href="#method_detail">Method</a></li>
341</ul>
342</div>
343<a name="skip-navbar_bottom">
344<!--   -->
345</a></div>
346<!-- ======== END OF BOTTOM NAVBAR ======= -->
347</body>
348</html>
Note: See TracBrowser for help on using the repository browser.