/usr/share/doc/libosgi-compendium-java/api/org/osgi/service/dmt/spi/ReadableDataSession.html is in libosgi-compendium-java-doc 5.0.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html>
<head>
<!-- Generated by javadoc -->
<title>ReadableDataSession</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ReadableDataSession";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/osgi/service/dmt/spi/MountPoint.html" title="interface in org.osgi.service.dmt.spi"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../org/osgi/service/dmt/spi/ReadWriteDataSession.html" title="interface in org.osgi.service.dmt.spi"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/osgi/service/dmt/spi/ReadableDataSession.html" target="_top">Frames</a></li>
<li><a href="ReadableDataSession.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.osgi.service.dmt.spi</div>
<h2 title="Interface ReadableDataSession" class="title">Interface ReadableDataSession</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><a href="../../../../../org/osgi/service/dmt/spi/ReadWriteDataSession.html" title="interface in org.osgi.service.dmt.spi">ReadWriteDataSession</a>, <a href="../../../../../org/osgi/service/dmt/spi/TransactionalDataSession.html" title="interface in org.osgi.service.dmt.spi">TransactionalDataSession</a></dd>
</dl>
<hr>
<br>
<pre>public interface <span class="typeNameLabel">ReadableDataSession</span></pre>
<div class="block">Provides read-only access to the part of the tree handled by the plugin that
created this session.
<p>
Since the <a href="../../../../../org/osgi/service/dmt/spi/ReadWriteDataSession.html" title="interface in org.osgi.service.dmt.spi"><code>ReadWriteDataSession</code></a> and <a href="../../../../../org/osgi/service/dmt/spi/TransactionalDataSession.html" title="interface in org.osgi.service.dmt.spi"><code>TransactionalDataSession</code></a>
interfaces inherit from this interface, some of the method descriptions do
not apply for an instance that is only a <code>ReadableDataSession</code>. For
example, the <a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#close--"><code>close()</code></a> method description also contains information
about its behaviour when invoked as part of a transactional session.
<p>
The <code>nodePath</code> parameters appearing in this interface always contain an
array of path segments identifying a node in the subtree of this plugin. This
parameter contains an absolute path, so the first segment is always
".". Special characters appear escaped in the segments.
<p>
<strong>Error handling</strong>
<p>
When a tree access command is called on the DmtAdmin service, it must perform
an extensive set of checks on the parameters and the authority of the caller
before delegating the call to a plugin. Therefore plugins can take certain
circumstances for granted: that the path is valid and is within the subtree
of the plugin and the session, the command can be applied to the given node
(e.g. the target of <code>getChildNodeNames</code> is an interior node), etc. All
errors described by the error codes <a href="../../../../../org/osgi/service/dmt/DmtException.html#INVALID_URI"><code>DmtException.INVALID_URI</code></a>,
<a href="../../../../../org/osgi/service/dmt/DmtException.html#URI_TOO_LONG"><code>DmtException.URI_TOO_LONG</code></a>, <a href="../../../../../org/osgi/service/dmt/DmtException.html#PERMISSION_DENIED"><code>DmtException.PERMISSION_DENIED</code></a>,
<a href="../../../../../org/osgi/service/dmt/DmtException.html#COMMAND_NOT_ALLOWED"><code>DmtException.COMMAND_NOT_ALLOWED</code></a> and
<a href="../../../../../org/osgi/service/dmt/DmtException.html#TRANSACTION_ERROR"><code>DmtException.TRANSACTION_ERROR</code></a> are fully filtered out before control
reaches the plugin.
<p>
If the plugin provides meta-data for a node, the DmtAdmin service must also
check the constraints specified by it, as described in <a href="../../../../../org/osgi/service/dmt/MetaNode.html" title="interface in org.osgi.service.dmt"><code>MetaNode</code></a>. If
the plugin does not provide meta-data, it must perform the necessary checks
for itself and use the <a href="../../../../../org/osgi/service/dmt/DmtException.html#METADATA_MISMATCH"><code>DmtException.METADATA_MISMATCH</code></a> error code to
indicate such discrepancies.
<p>
The DmtAdmin does not check that the targeted node exists before calling the
plugin. It is the responsibility of the plugin to perform this check and to
throw a <a href="../../../../../org/osgi/service/dmt/DmtException.html#NODE_NOT_FOUND"><code>DmtException.NODE_NOT_FOUND</code></a> if needed. In this case the
DmtAdmin must pass through this exception to the caller of the corresponding
DmtSession method.
<p>
The plugin can use the remaining error codes as needed. If an error does not
fit into any other category, the <a href="../../../../../org/osgi/service/dmt/DmtException.html#COMMAND_FAILED"><code>DmtException.COMMAND_FAILED</code></a> code
should be used.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#close--">close</a></span>()</code>
<div class="block">Closes a session.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getChildNodeNames-java.lang.String:A-">getChildNodeNames</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the list of children names of a node.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/osgi/service/dmt/MetaNode.html" title="interface in org.osgi.service.dmt">MetaNode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getMetaNode-java.lang.String:A-">getMetaNode</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the meta data which describes a given node.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeSize-java.lang.String:A-">getNodeSize</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the size of the data in a leaf node.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeTimestamp-java.lang.String:A-">getNodeTimestamp</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the timestamp when the node was last modified.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeTitle-java.lang.String:A-">getNodeTitle</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the title of a node.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeType-java.lang.String:A-">getNodeType</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the type of a node.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeValue-java.lang.String:A-">getNodeValue</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the data contained in a leaf or interior node.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#getNodeVersion-java.lang.String:A-">getNodeVersion</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Get the version of a node.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#isLeafNode-java.lang.String:A-">isLeafNode</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Tells whether a node is a leaf or an interior node of the DMT.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#isNodeUri-java.lang.String:A-">isNodeUri</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Check whether the specified path corresponds to a valid node in the DMT.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/osgi/service/dmt/spi/ReadableDataSession.html#nodeChanged-java.lang.String:A-">nodeChanged</a></span>(java.lang.String[] nodePath)</code>
<div class="block">Notifies the plugin that the given node has changed outside the scope of
the plugin, therefore the Version and Timestamp properties must be
updated (if supported).</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="nodeChanged-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nodeChanged</h4>
<pre>void nodeChanged(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Notifies the plugin that the given node has changed outside the scope of
the plugin, therefore the Version and Timestamp properties must be
updated (if supported). This method is needed because the ACL property of
a node is managed by the DmtAdmin instead of the plugin. The DmtAdmin
must call this method whenever the ACL property of a node changes.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node that has changed</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="close--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>void close()
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Closes a session. This method is always called when the session ends for
any reason: if the session is closed, if a fatal error occurs in any
method, or if any error occurs during commit or rollback. In case the
session was invalidated due to an exception during commit or rollback, it
is guaranteed that no methods are called on the plugin until it is
closed. In case the session was invalidated due to a fatal exception in
one of the tree manipulation methods, only the rollback method is called
before this (and only in atomic sessions).
<p>
This method should not perform any data manipulation, only cleanup
operations. In non-atomic read-write sessions the data manipulation
should be done instantly during each tree operation, while in atomic
sessions the <code>DmtAdmin</code> always calls
<a href="../../../../../org/osgi/service/dmt/spi/TransactionalDataSession.html#commit--"><code>TransactionalDataSession.commit()</code></a> automatically before the
session is actually closed.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the error code <code>COMMAND_FAILED</code> if the
plugin failed to close for any reason</dd>
</dl>
</li>
</ul>
<a name="getChildNodeNames-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChildNodeNames</h4>
<pre>java.lang.String[] getChildNodeNames(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the list of children names of a node. The returned array contains the
names - not the URIs - of the immediate children nodes of the given node.
The returned array may contain <code>null</code> entries, but these are
removed by the DmtAdmin before returning it to the client.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list of child node names as a string array or an empty string
array if the node has no children</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getMetaNode-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMetaNode</h4>
<pre><a href="../../../../../org/osgi/service/dmt/MetaNode.html" title="interface in org.osgi.service.dmt">MetaNode</a> getMetaNode(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the meta data which describes a given node. Meta data can be only
inspected, it can not be changed.
<p>
Meta data support by plugins is an optional feature. It can be used, for
example, when a data plugin is implemented on top of a data store or
another API that has their own metadata, such as a relational database,
in order to avoid metadata duplication and inconsistency. The meta data
specific to the plugin returned by this method is complemented by meta
data from the DmtAdmin before returning it to the client. If there are
differences in the meta data elements known by the plugin and the
<code>DmtAdmin</code> then the plugin specific elements take precedence.
<p>
Note, that a node does not have to exist for having meta-data associated
with it. This method may provide meta-data for any node that can possibly
exist in the tree (any node defined by the Management Object provided by
the plugin). For nodes that are not defined, a <code>DmtException</code> may
be thrown with the <code>NODE_NOT_FOUND</code> error code. To allow easier
implementation of plugins that do not provide meta-data, it is allowed to
return <code>null</code> for any node, regardless of whether it is defined or
not.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a MetaNode which describes meta data information, can be
<code>null</code> if there is no meta data available for the given
node</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodeUri</code> points to a node
that is not defined in the tree (see above)</li><li>
<code>DATA_STORE_FAILURE</code> if an error occurred while accessing
the data store</li><li><code>COMMAND_FAILED</code> if some unspecified
error is encountered while attempting to complete the command
</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getNodeSize-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeSize</h4>
<pre>int getNodeSize(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the size of the data in a leaf node. The value to return depends on
the format of the data in the node, see the description of the
<a href="../../../../../org/osgi/service/dmt/DmtData.html#getSize--"><code>DmtData.getSize()</code></a> method for the definition of node size for each
format.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the leaf node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the size of the data in the node</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>FEATURE_NOT_SUPPORTED</code> if the Size property is not
supported by the plugin</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../org/osgi/service/dmt/DmtData.html#getSize--"><code>DmtData.getSize()</code></a></dd>
</dl>
</li>
</ul>
<a name="getNodeTimestamp-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeTimestamp</h4>
<pre>java.util.Date getNodeTimestamp(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the timestamp when the node was last modified.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the timestamp of the last modification</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>FEATURE_NOT_SUPPORTED</code> if the Timestamp property is
not supported by the plugin</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getNodeTitle-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeTitle</h4>
<pre>java.lang.String getNodeTitle(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the title of a node. There might be no title property set for a node.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the title of the node, or <code>null</code> if the node has no title</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>FEATURE_NOT_SUPPORTED</code> if the Title property is not
supported by the plugin</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getNodeType-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeType</h4>
<pre>java.lang.String getNodeType(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the type of a node. The type of leaf node is the MIME type of the
data it contains. The type of an interior node is a URI identifying a DDF
document; a <code>null</code> type means that there is no DDF document
overriding the tree structure defined by the ancestors.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the type of the node, can be <code>null</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="isNodeUri-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNodeUri</h4>
<pre>boolean isNodeUri(java.lang.String[] nodePath)</pre>
<div class="block">Check whether the specified path corresponds to a valid node in the DMT.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the given node exists in the DMT</dd>
</dl>
</li>
</ul>
<a name="isLeafNode-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLeafNode</h4>
<pre>boolean isLeafNode(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Tells whether a node is a leaf or an interior node of the DMT.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the given node is a leaf node</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getNodeValue-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeValue</h4>
<pre><a href="../../../../../org/osgi/service/dmt/DmtData.html" title="class in org.osgi.service.dmt">DmtData</a> getNodeValue(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the data contained in a leaf or interior node.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node to retrieve</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the data of the leaf node, must not be <code>null</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>FEATURE_NOT_SUPPORTED</code> if the specified node is an
interior node and does not support Java object values</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
<a name="getNodeVersion-java.lang.String:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getNodeVersion</h4>
<pre>int getNodeVersion(java.lang.String[] nodePath)
throws <a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></pre>
<div class="block">Get the version of a node. The version can not be set, it is calculated
automatically by the device. It is incremented modulo 0x10000 at every
modification of the value or any other property of the node, for both
leaf and interior nodes. When a node is created the initial value is 0.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nodePath</code> - the absolute path of the node</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the version of the node</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../org/osgi/service/dmt/DmtException.html" title="class in org.osgi.service.dmt">DmtException</a></code> - with the following possible error codes:
<ul>
<li><code>NODE_NOT_FOUND</code> if <code>nodePath</code> points to a
non-existing node</li>
<li><code>METADATA_MISMATCH</code> if the information could not be
retrieved because of meta-data restrictions</li>
<li><code>FEATURE_NOT_SUPPORTED</code> if the Version property is not
supported by the plugin</li>
<li><code>DATA_STORE_FAILURE</code> if an error occurred while
accessing the data store</li>
<li><code>COMMAND_FAILED</code> if some unspecified error is
encountered while attempting to complete the command</li>
</ul></dd>
<dd><code>java.lang.SecurityException</code> - if the caller does not have the necessary
permissions to execute the underlying management operation</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/osgi/service/dmt/spi/MountPoint.html" title="interface in org.osgi.service.dmt.spi"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../org/osgi/service/dmt/spi/ReadWriteDataSession.html" title="interface in org.osgi.service.dmt.spi"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/osgi/service/dmt/spi/ReadableDataSession.html" target="_top">Frames</a></li>
<li><a href="ReadableDataSession.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|