|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectorg.omg.CORBA.LocalObject
public class LocalObject
用作 Java 語言映射中的本地 IDL 介面實作的基本類別。該類別實作了 org.omg.CORBA.Object 介面中的所有操作。
本地介面是通過使用 CORBA::LocalObject 實作的,它提供 Object 偽操作的實作以及任何其他適用於這些物件的特定於 ORB 的支持機制。物件實作技術本來就是特定於語言映射的。因此,LocalObject 型別不是在 IDL 中定義的,而是在每個語言映射中指定的。
沒有應用於本地物件的方法拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally contrained object"。試圖使用 LocalObject 創建 DII 請求將導致 NO_IMPLEMENT 系統異常。試圖編組或字元串化 LocalObject 將導致 MARSHAL 系統異常。必須像對常規物件參考那樣來縮小或擴大對 LocalObjects 的參考。
LocalObject 被用作本地受約束物件(比如 PortableServer 模組中的那些物件)的基本類別。此規範基於 CORBA Components Volume I - orbos/99-07-01。
CORBA 套件中有關未實作特性的註釋| 建構子摘要 | |
|---|---|
LocalObject()
建構一個預設 LocalObject 實例。 |
|
| 方法摘要 | |
|---|---|
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result,
ExceptionList exceptions,
ContextList contexts)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Object |
_duplicate()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
DomainManager[] |
_get_domain_managers()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Object |
_get_interface_def()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Object |
_get_interface()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Policy |
_get_policy(int policy_type)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
int |
_hash(int maximum)
返回與物件的生命週期一致的雜湊值,使用給定數字作為最大值。 |
InputStream |
_invoke(OutputStream output)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
boolean |
_is_a(String repository_id)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
boolean |
_is_equivalent(Object that)
在 ORB 確定時所需開銷不大的範圍內確定兩個物件參考是否相等。 |
boolean |
_is_local()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
boolean |
_non_existent()
總是返回 false。 |
ORB |
_orb()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
void |
_release()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
void |
_releaseReply(InputStream input)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Request |
_request(String operation)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
OutputStream |
_request(String operation,
boolean responseExpected)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
void |
_servant_postinvoke(ServantObject servant)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
ServantObject |
_servant_preinvoke(String operation,
Class expectedType)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
Object |
_set_policy_override(Policy[] policies,
SetOverrideType set_add)
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
boolean |
validate_connection()
拋出 org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public LocalObject()
LocalObject 實例。
| 方法詳細資訊 |
|---|
public boolean _is_equivalent(Object that)
在 ORB 確定時所需開銷不大的範圍內確定兩個物件參考是否相等。兩個等同的物件參考是相等的。兩個實際參考相同物件的不同物件參考也是相等的。但是,ORB 不需要嘗試確定兩個不同的物件參考是否參考了相同的物件,因為這種確定所需的開銷可能非常昂貴。
此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _is_equivalentthat - 用來檢查相等性的物件參考
true。注意,false 只指示兩個物件參考不同,不一定指示它們所參考的物件不同。public boolean _non_existent()
false。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _non_existentfalsepublic int _hash(int maximum)
org.omg.CORBA.Object 方法的預設實作。
Object 中的 _hashmaximum - 一個 int 值,它標識雜湊碼的最大值
public boolean _is_a(String repository_id)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _is_arepository_id - String
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public Object _duplicate()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _duplicateLocalObject 實例的副本。
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public void _release()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _releaseNO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public Request _request(String operation)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _requestoperation - 一個 String,它提供將由返回的請求所執行的操作的名稱
Request 物件
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋
public Request _create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _create_requestctx - 套件含屬性列表的 Context 物件operation - 表示將被調用的方法名稱的 Stringarg_list - 套件含實際調用的方法參數的 NVListresult - 將用作該方法返回值容器的 NamedValue 物件
Request 物件
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋
public Request _create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result,
ExceptionList exceptions,
ContextList contexts)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _create_requestctx - 套件含屬性列表的 Context 物件operation - 將被調用的方法的名稱arg_list - 套件含實際調用的方法參數的 NVListresult - 將用作該方法返回值容器的 NamedValue 物件exceptions - 一個 ExceptionList 物件,包含該方法可能拋出的異常所組成的列表contexts - 一個 ContextList 物件,包含需要解析並隨 Request 實例一起發送的上下文字元串所組成的列表
Request 物件
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public Object _get_interface()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public Object _get_interface_def()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _get_interface_defInterfaceDef 物件,它提供了有關此物件參考所參考的物件的型別資訊。
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public ORB _orb()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
ObjectImpl 中所包含 Delegate 的 ORB 實例
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public Policy _get_policy(int policy_type)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _get_policypolicy_type - int 值
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public DomainManager[] _get_domain_managers()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _get_domain_managersNO_IMPLEMENTCORBA 套件中有關未實作特性的註釋
public Object _set_policy_override(Policy[] policies,
SetOverrideType set_add)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
Object 中的 _set_policy_overridepolicies - 一個陣列set_add - 一個標誌
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public boolean _is_local()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
對於此 LocalObject 實例返回 true。
true
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋
public ServantObject _servant_preinvoke(String operation,
Class expectedType)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
operation - 指示將提前調用哪一項操作的 StringexpectedType - 上述操作型別的類別
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public void _servant_postinvoke(ServantObject servant)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
servant - 進行後調用的 servant 物件
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋
public OutputStream _request(String operation,
boolean responseExpected)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
此方法由 stub 調用,以獲得用於編組參數的 OutputStream。stub 必須提供操作名稱,並指示是否希望應答(即是否為單向調用)。
operation - 被請求的操作的名稱responseExpected - 如果期望應答,則該值為 true;如果該調用是單向調用,則該值為 false
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋
public InputStream _invoke(OutputStream output)
throws ApplicationException,
RemarshalException
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
可調用此方法來調用某項操作。stub 提供以前由 _request() 調用返回的 OutputStream。_invoke 返回一個套件含已編組應答的 InputStream。如果發生異常,則 _invoke 拋出 ApplicationException 物件,該物件包含一個 InputStream,從中可解組使用者異常狀態。
output - 要調用的 OutputStream
ApplicationException - 如果發生異常,則 _invoke 拋出 ApplicationException 物件,該物件包含一個 InputStream,從中可解組使用者異常狀態。
RemarshalException - 如果發生異常,則 _invoke 拋出 ApplicationException 物件,該物件包含一個 InputStream,從中可解組使用者異常狀態。
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋public void _releaseReply(InputStream input)
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法是 org.omg.CORBA.Object 方法的預設實作。
stub 可以有選擇地調用此方法,以在完成解組時將應答串流釋放回 ORB。stub 傳遞由 _invoke() 或 ApplicationException.getInputStream() 返回的 InputStream。還可以將 null 值傳遞給 _releaseReply,在這種情況下,此方法不執行任何操作。
input - 釋放回 ORB 的應答串流或 null
NO_IMPLEMENTCORBA 套件中有關未實作特性的註釋public boolean validate_connection()
org.omg.CORBA.NO_IMPLEMENT 異常,並帶有訊息 "This is a locally constrained object"。此方法並不應用於本地物件,所以沒有實作。此方法是 org.omg.CORBA.Object 方法的預設實作。
NO_IMPLEMENT - 因為此為本地受約束物件,並且此方法並不應用於本地物件CORBA 套件中有關未實作特性的註釋
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。