本文整理汇总了Java中org.omg.CosNaming.NamingContextPackage.CannotProceed类的典型用法代码示例。如果您正苦于以下问题:Java CannotProceed类的具体用法?Java CannotProceed怎么用?Java CannotProceed使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CannotProceed类属于org.omg.CosNaming.NamingContextPackage包,在下文中一共展示了CannotProceed类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: bind_new_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Create a new context and give it a given name (bound it) in the current
* context. The method benefits from passing the better readable context name.
*
* @param a_name the name being given to the new context.
* @return the newly created context.
* @throws AlreadyBound if the name is already in use.
* @throws InvalidName if the name has zero length or otherwise invalid.
*/
public NamingContext bind_new_context(NameComponent[] a_name)
throws NotFound, AlreadyBound, CannotProceed, InvalidName
{
if (named_contexts.containsKey(a_name[0])
|| named_objects.containsKey(a_name[0]))
throw new AlreadyBound();
NameTransformer transformer = new NameTransformer();
File ctxFolder = new File(contextFolder,
transformer.toString(a_name).replace('/', '.')
+ ".v" + getNum());
NamingContext child = new PersistentContext(orb, ctxFolder, true);
bind_context(a_name, child);
return child;
}
开发者ID:vilie,项目名称:javify,代码行数:27,代码来源:PersistentContext.java
示例2: bind_new_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Create a new context and give it a given name (bound it) in the current
* context. The method benefits from passing the better readable context name.
*
* @param a_name the name being given to the new context.
* @return the newly created context.
* @throws AlreadyBound if the name is already in use.
* @throws InvalidName if the name has zero length or otherwise invalid.
*/
public NamingContext bind_new_context(NameComponent[] a_name)
throws NotFound, AlreadyBound, CannotProceed, InvalidName
{
if (named_contexts.containsKey(a_name[0])
|| named_objects.containsKey(a_name[0]))
throw new AlreadyBound();
NameTransformer transformer = new NameTransformer();
File ctxFolder = new File(contextFolder,
transformer.toString(a_name).replace('/', '.')
+ ".v" + getNum());
NamingContext child = new PersistentContext(orb, ctxFolder, true);
bind_context(a_name, child);
return child;
}
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:27,代码来源:PersistentContext.java
示例3: resolve_str
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public org.omg.CORBA.Object resolve_str(String a_name_string)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream _out = _request("resolve_str", true);
StringNameHelper.write(_out, a_name_string);
in = _invoke(_out);
return ObjectHelper.read(in);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
// Should never happen.
throw new InternalError();
}
catch (RemarshalException _rm)
{
return resolve_str(a_name_string);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:33,代码来源:_NamingContextExtStub.java
示例4: bind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public void bind(NameComponent[] a_name, org.omg.CORBA.Object an_object)
throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
InputStream in = null;
try
{
OutputStream out = _request("bind", true);
NameHelper.write(out, a_name);
ObjectHelper.write(out, an_object);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw5(in, id);
}
catch (RemarshalException remarsh)
{
bind(a_name, an_object);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:29,代码来源:_NamingContextStub.java
示例5: bind_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public void bind_context(NameComponent[] a_name, NamingContext a_context)
throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
InputStream in = null;
try
{
OutputStream out = _request("bind_context", true);
NameHelper.write(out, a_name);
NamingContextHelper.write(out, a_context);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw5(in, id);
}
catch (RemarshalException remarsh)
{
bind_context(a_name, a_context);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:29,代码来源:_NamingContextStub.java
示例6: bind_new_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public NamingContext bind_new_context(NameComponent[] a_name)
throws NotFound, AlreadyBound, CannotProceed,
InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("bind_new_context", true);
NameHelper.write(out, a_name);
in = _invoke(out);
NamingContext __result = NamingContextHelper.read(in);
return __result;
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw5(in, id);
throw new InternalError();
}
catch (RemarshalException remarsh)
{
return bind_new_context(a_name);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:33,代码来源:_NamingContextStub.java
示例7: rebind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public void rebind(NameComponent[] a_name, org.omg.CORBA.Object an_object)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("rebind", true);
NameHelper.write(out, a_name);
ObjectHelper.write(out, an_object);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
}
catch (RemarshalException remarsh)
{
rebind(a_name, an_object);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:29,代码来源:_NamingContextStub.java
示例8: rebind_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public void rebind_context(NameComponent[] a_name, NamingContext a_context)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("rebind_context", true);
NameHelper.write(out, a_name);
NamingContextHelper.write(out, a_context);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
}
catch (RemarshalException remarsh)
{
rebind_context(a_name, a_context);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:29,代码来源:_NamingContextStub.java
示例9: resolve
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public org.omg.CORBA.Object resolve(NameComponent[] a_name)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("resolve", true);
NameHelper.write(out, a_name);
in = _invoke(out);
org.omg.CORBA.Object __result = ObjectHelper.read(in);
return __result;
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
throw4(in, id);
throw new InternalError();
}
catch (RemarshalException remarsh)
{
return resolve(a_name);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:32,代码来源:_NamingContextStub.java
示例10: unbind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public void unbind(NameComponent[] a_name)
throws NotFound, CannotProceed, InvalidName
{
InputStream in = null;
try
{
OutputStream out = _request("unbind", true);
NameHelper.write(out, a_name);
in = _invoke(out);
}
catch (ApplicationException ex)
{
in = ex.getInputStream();
String id = ex.getId();
if (id.equals(NotFoundHelper.id()))
throw NotFoundHelper.read(in);
else if (id.equals(CannotProceedHelper.id()))
throw CannotProceedHelper.read(in);
else if (id.equals(InvalidNameHelper.id()))
throw InvalidNameHelper.read(in);
else
throw new MARSHAL(id);
}
catch (RemarshalException remarsh)
{
unbind(a_name);
}
finally
{
_releaseReply(in);
}
}
开发者ID:vilie,项目名称:javify,代码行数:35,代码来源:_NamingContextStub.java
示例11: bind_new_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/** {@inheritDoc} */
public NamingContext bind_new_context(NameComponent[] a_name)
throws NotFound, AlreadyBound, CannotProceed,
InvalidName
{
return classic.bind_new_context(a_name);
}
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:Ext.java
示例12: bind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Gives the object a name, valid in this context.
*
* @param a_name the name, being given to the object.
* @param an_object the object, being named.
*
* @throws AlreadyBound if the object is already named in this context.
* @throws InvalidName if the name has zero length or otherwise invalid.
*/
public void bind(NameComponent[] a_name, Object an_object)
throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
if (a_name.length == 1)
named_objects.bind(a_name [ 0 ], an_object);
else
{
NamingContext context =
(NamingContext) named_contexts.get(a_name [ 0 ]);
context.bind(getSuffix(a_name), an_object);
}
}
开发者ID:vilie,项目名称:javify,代码行数:22,代码来源:TransientContext.java
示例13: bind_context
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Gives a child context name, valid in this context.
*
* @param a_name the name, being given to the child context.
* @param a_context the child context being named.
*
* @throws AlreadyBound if the child context is already named in
* the current context.
*/
public void bind_context(NameComponent[] a_name, NamingContext a_context)
throws NotFound, CannotProceed, InvalidName, AlreadyBound
{
if (a_name.length == 1)
named_contexts.bind(a_name [ 0 ], a_context);
else
{
NamingContext context =
(NamingContext) named_contexts.get(a_name [ 0 ]);
context.bind_context(getSuffix(a_name), a_context);
}
}
开发者ID:vilie,项目名称:javify,代码行数:22,代码来源:TransientContext.java
示例14: rebind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Names or renames the object.
*
* @param a_name the new name, being given to the object
* in the scope of the current context. If the object is already
* named in this context, it is renamed.
*
* @param an_object the object, being named.
*
* @throws InvalidName if the name has zero length or otherwise invalid.
*/
public void rebind(NameComponent[] a_name, Object an_object)
throws NotFound, CannotProceed, InvalidName
{
if (a_name.length == 1)
named_objects.rebind(a_name [ 0 ], an_object);
else
{
NamingContext context =
(NamingContext) named_contexts.get(a_name [ 0 ]);
context.rebind(getSuffix(a_name), an_object);
}
}
开发者ID:vilie,项目名称:javify,代码行数:24,代码来源:TransientContext.java
示例15: unbind
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Removes the name from the binding context.
*
* @param a_name a name to remove.
*
* @throws InvalidName if the name has zero length or otherwise invalid.
*/
public void unbind(NameComponent[] a_name)
throws NotFound, CannotProceed, InvalidName
{
NameValidator.check(a_name);
// Single node name - handle it.
if (a_name.length == 1)
{
if (named_objects.containsKey(a_name [ 0 ]))
named_objects.remove(a_name [ 0 ]);
else if (named_contexts.containsKey(a_name [ 0 ]))
named_contexts.remove(a_name [ 0 ]);
else
throw new NotFound(NotFoundReason.missing_node, a_name);
}
else
{
// Handle the first node and forward the command.
NamingContext subcontext =
(NamingContext) named_contexts.get(a_name [ 0 ]);
if (subcontext == null)
throw new NotFound(NotFoundReason.missing_node, a_name);
subcontext.unbind(getSuffix(a_name));
}
}
开发者ID:vilie,项目名称:javify,代码行数:35,代码来源:TransientContext.java
示例16: resolveSubContext
import org.omg.CosNaming.NamingContextPackage.CannotProceed; //导入依赖的package包/类
/**
* Find the context, bound to the first name of the given
* name, and pass the remainder (without the first node)
* of the name for that context to resolve.
*
* @param a_name the name to resolve.
*
* @return the resolved context
*/
private Object resolveSubContext(NameComponent[] a_name)
throws NotFound, CannotProceed, InvalidName
{
// A multiple node name.
// This context resolves the first node only.
NamingContext context = (NamingContext) named_contexts.get(a_name [ 0 ]);
if (context == null)
throw new NotFound(NotFoundReason.missing_node, a_name);
NameComponent[] suffix = getSuffix(a_name);
return context.resolve(suffix);
}
开发者ID:vilie,项目名称:javify,代码行数:23,代码来源:TransientContext.java
注:本文中的org.omg.CosNaming.NamingContextPackage.CannotProceed类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论