• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DefaultActivationGroup类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中gnu.java.rmi.activation.DefaultActivationGroup的典型用法代码示例。如果您正苦于以下问题:Java DefaultActivationGroup类的具体用法?Java DefaultActivationGroup怎么用?Java DefaultActivationGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DefaultActivationGroup类属于gnu.java.rmi.activation包,在下文中一共展示了DefaultActivationGroup类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setSystem

点赞 2

import gnu.java.rmi.activation.DefaultActivationGroup; //导入依赖的package包/类
/**
 * Set the activation system for this virtual machine. The system can only
 * be set if no group is active.
 *
 * @param aSystem the system to set
 *
 * @throws ActivationException if some group is active now.
 */
public static void setSystem(ActivationSystem aSystem)
    throws ActivationException
{
  if (currentGroupId!=null)
    throw new ActivationException("Group active");
  else
    {
      try
        {
          // Register the default transient activation system and group.
          system = aSystem;
          ActivationGroupDesc def = new ActivationGroupDesc(
             DefaultActivationGroup.class.getName(),
            "",
            null,
            null,
            null);
          currentGroupId = system.registerGroup(def);
        }
      catch (Exception ex)
      {
        InternalError ierr = new InternalError("Unable to start default AG");
        ierr.initCause(ex);
        throw ierr;
      }
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:36,
代码来源:ActivationGroup.java

示例2: setSystem

点赞 2

import gnu.java.rmi.activation.DefaultActivationGroup; //导入依赖的package包/类
/**
 * Set the activation system for this virtual machine. The system can only
 * be set if no group is active. 
 * 
 * @param aSystem the system to set
 *  
 * @throws ActivationException if some group is active now.
 */
public static void setSystem(ActivationSystem aSystem)
    throws ActivationException
{
  if (currentGroupId!=null)
    throw new ActivationException("Group active");
  else
    {
      try 
        {
          // Register the default transient activation system and group.
          system = aSystem;
          ActivationGroupDesc def = new ActivationGroupDesc(
             DefaultActivationGroup.class.getName(),
            "",
            null,
            null,
            null);
          currentGroupId = system.registerGroup(def);
        }
      catch (Exception ex)
      {
        InternalError ierr = new InternalError("Unable to start default AG");
        ierr.initCause(ex);
        throw ierr;
      }
    }  
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:36,
代码来源:ActivationGroup.java

示例3: ActivationGroupDesc

点赞 1

import gnu.java.rmi.activation.DefaultActivationGroup; //导入依赖的package包/类
/**
 * Create the new activation group descriptor that will use the default
 * activation group implementation with the given properties and
 * environment.
 *
 * @param aProperties the properties that override the system properties
 * @param environment the command line (and parameters), indicating, where to
 *          find the jre executable and with that parameters to call it. May
 *          be null if the default executable should be used. In this case,
 *          the activation group with the null name (the system default group)
 *          will be created.
 */
public ActivationGroupDesc(Properties aProperties,
                           ActivationGroupDesc.CommandEnvironment environment)
{
  this(DefaultActivationGroup.class.getName(), null, null, aProperties,
       environment);
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:19,
代码来源:ActivationGroupDesc.java

示例4: ActivationGroupDesc

点赞 1

import gnu.java.rmi.activation.DefaultActivationGroup; //导入依赖的package包/类
/**
 * Create the new activation group descriptor that will use the default
 * activation group implementation with the given properties and
 * environment.
 * 
 * @param aProperties the properties that override the system properties
 * @param environment the command line (and parameters), indicating, where to
 *          find the jre executable and with that parameters to call it. May
 *          be null if the default executable should be used. In this case,
 *          the activation group with the null name (the system default group)
 *          will be created.
 */
public ActivationGroupDesc(Properties aProperties,
                           ActivationGroupDesc.CommandEnvironment environment)
{
  this(DefaultActivationGroup.class.getName(), null, null, aProperties,
       environment);
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:19,
代码来源:ActivationGroupDesc.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)