155 lines
6.8 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
org.omg.PortableInterceptor
</div>
<h2 class="title" title="Interface CurrentOperations">Interface CurrentOperations</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../org/omg/CORBA/CurrentOperations.html" title="在org.omg.CORBA中的接口">CurrentOperations</a></span>
</dd>
</dl>
<dl>
<dt>
All Known Subinterfaces:
</dt>
<dd>
<span><a href="../../../org/omg/PortableInterceptor/Current.html" title="在org.omg.PortableInterceptor中的接口">Current</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">CurrentOperations</span>
extends <a href="../../../org/omg/CORBA/CurrentOperations.html" title="interface in org.omg.CORBA">CurrentOperations</a></pre>
<div class="block">
<span>便携式拦截器当前(也称为<code>PICurrent</code> )仅仅是一个时隙表,每个服务的时隙表用于在其上下文和请求或应答的服务上下文之间传送其上下文数据。</span>
<span>希望使用PICurrent的每个服务在初始化时都会保留一个插槽或插槽并在处理请求和回复时使用这些插槽。</span>
<p> <span>在进行调用之前,通过调用<code>ORB.resolve_initial_references( "PICurrent" )</code></span> <span>从截取点开始,通过<code>RequestInfo</code>对象上的<code>RequestInfo</code>操作<code>get_slot</code>从线程范围移动到请求范围的<code>RequestInfo</code>数据。</span> <span>仍然可以通过<code>resolve_initial_references</code>获得<code>resolve_initial_references</code> 但这是Interceptor的线程范围。</span> </p>
</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>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/CurrentOperations.html#get_slot-int-">get_slot</a></span>(int id)</code>
<div class="block">
通过
<code>get_slot</code>在PICurrent中设置的应用程序的插槽数据。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/PortableInterceptor/CurrentOperations.html#set_slot-int-org.omg.CORBA.Any-">set_slot</a></span>(int id, <a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> data)</code>
<div class="block">
在一个插槽中设置数据。
</div> </td>
</tr>
</tbody>
</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>方法详细信息</h3> <a name="get_slot-int-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>get_slot</h4> <pre><a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> get_slot(int id)
throws <a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></pre>
<div class="block">
<span>通过<code>get_slot</code> PICurrent中设置的应用程序的插槽数据。</span>
<span>数据的格式为Any。</span>
<p> <span>如果给定的时隙没有被设置,一个在任何含有具有一个类型码<code>TCKind</code>的值<code>tk_null</code>被返回并没有价值。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>id</code> -
<code>SlotId</code>返回数据的插槽的
<code>SlotId</code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
给定槽位标识符的数据,以任意形式表示。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></code> - 如果在尚未分配的插槽上调用
<code><a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></code> ,则抛出。
</dd>
<dd>
<code>BAD_INV_ORDER</code> - 抛出如果
<code>get_slot</code>从一个ORB初始化程序内调用
</dd>
</dl> </li>
</ul> <a name="set_slot-int-org.omg.CORBA.Any-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>set_slot</h4> <pre>void set_slot(int id,
<a href="../../../org/omg/CORBA/Any.html" title="class in org.omg.CORBA">Any</a> data)
throws <a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></pre>
<div class="block">
<span>在一个插槽中设置数据。</span>
<span>数据的格式为Any。</span>
<span>如果该插槽中已存在数据,则会被覆盖。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>id</code> - 要设置数据的插槽的
<code>SlotId</code>
</dd>
<dd>
<code>data</code> - 数据,以任何形式,将被设置为识别的插槽。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></code> - 如果在
<code>set_slot</code>的插槽上调用
<code><a href="../../../org/omg/PortableInterceptor/InvalidSlot.html" title="class in org.omg.PortableInterceptor">InvalidSlot</a></code> ,则抛出。
</dd>
<dd>
<code>BAD_INV_ORDER</code> - 抛出如果
<code>set_slot</code>从一个ORB初始化器调用。
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>