当前位置: 首页>>代码示例>>Java>>正文


Java ActivationGroupDesc类代码示例

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


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

示例1: registerGroup

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupID registerGroup(ActivationGroupDesc desc)
    throws ActivationException, RemoteException
{
    Thread.dumpStack();
    checkShutdown();
    // RegistryImpl.checkAccess() is done in the SameHostOnlyServerRef
    // during unmarshallCustomData and is not applicable to local access.
    checkArgs(desc, null);

    ActivationGroupID id = new ActivationGroupID(systemStub);
    GroupEntry entry = new GroupEntry(id, desc);
    // table insertion must take place before log update
    groupTable.put(id, entry);
    addLogRecord(new LogRegisterGroup(id, desc));
    return id;
}
 
开发者ID:ojdkbuild,项目名称:lookaside_java-1.8.0-openjdk,代码行数:17,代码来源:Activation.java

示例2: registerGroup

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupID registerGroup(ActivationGroupDesc agdesc)
        throws ActivationException {
    waitStartup();
    ActivationGroupID agid = new ActivationGroupID(this);
    ActivationGroupInfo agi = new ActivationGroupInfo(agid, agdesc);
    if (groupInfoByGroupId.containsKey(agid)) {
        // rmi.2E=This group is already registered.
        throw new ActivationException(Messages.getString("rmi.2E")); //$NON-NLS-1$
    }
    groupInfoByGroupId.put(agid, agi);
    if (!restoreLock) {
        writeDelta(Delta.PUT, "group", agid, agdesc); //$NON-NLS-1$
        // rmi.log.45=Delta was saved:
        rLog.log(persistenceDebugLevel, Messages.getString("rmi.log.45") //$NON-NLS-1$
                + Delta.PUT + "," + "group" + ", " + agid + ", " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
                + agdesc);
    }

    return agid;
}
 
开发者ID:shannah,项目名称:cn1,代码行数:21,代码来源:Rmid.java

示例3: main

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
/**
 * Main program to start a VM for an activation group.
 */
public static void main(String args[])
{
    try {
        if (System.getSecurityManager() == null) {
            System.setSecurityManager(new SecurityManager());
        }
        // read group id, descriptor, and incarnation number from stdin
        MarshalInputStream in = new MarshalInputStream(System.in);
        ActivationGroupID id  = (ActivationGroupID)in.readObject();
        ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
        long incarnation = in.readLong();

        // create and set group for the VM
        ActivationGroup.createGroup(id, desc, incarnation);
    } catch (Exception e) {
        System.err.println("Exception in starting ActivationGroupInit:");
        e.printStackTrace();
    } finally {
        try {
            System.in.close();
            // note: system out/err shouldn't be closed
            // since the parent may want to read them.
        } catch (Exception ex) {
            // ignore exceptions
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:31,代码来源:ActivationGroupInit.java

示例4: registerGroup

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupID registerGroup(ActivationGroupDesc desc)
    throws ActivationException, RemoteException
{
    checkShutdown();
    RegistryImpl.checkAccess("ActivationSystem.registerGroup");
    checkArgs(desc, null);

    ActivationGroupID id = new ActivationGroupID(systemStub);
    GroupEntry entry = new GroupEntry(id, desc);
    // table insertion must take place before log update
    groupTable.put(id, entry);
    addLogRecord(new LogRegisterGroup(id, desc));
    return id;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:Activation.java

示例5: setActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
                                                  ActivationGroupDesc desc)
    throws ActivationException, UnknownGroupException, RemoteException
{
    checkShutdown();
    RegistryImpl.checkAccess(
        "ActivationSystem.setActivationGroupDesc");

    checkArgs(desc, null);
    return getGroupEntry(id).setActivationGroupDesc(id, desc, true);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:Activation.java

示例6: getActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
    throws ActivationException, UnknownGroupException, RemoteException
{
    checkShutdown();
    RegistryImpl.checkAccess
        ("ActivationSystem.getActivationGroupDesc");

    return getGroupEntry(id).desc;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Activation.java

示例7: registerGroup

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupID registerGroup(ActivationGroupDesc desc)
    throws ActivationException, RemoteException
{
    checkShutdown();
    // RegistryImpl.checkAccess() is done in the SameHostOnlyServerRef
    // during unmarshallCustomData and is not applicable to local access.
    checkArgs(desc, null);

    ActivationGroupID id = new ActivationGroupID(systemStub);
    GroupEntry entry = new GroupEntry(id, desc);
    // table insertion must take place before log update
    groupTable.put(id, entry);
    addLogRecord(new LogRegisterGroup(id, desc));
    return id;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:Activation.java

示例8: setActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupDesc setActivationGroupDesc(ActivationGroupID id,
                                                  ActivationGroupDesc desc)
    throws ActivationException, UnknownGroupException, RemoteException
{
    checkShutdown();
    // RegistryImpl.checkAccess() is done in the SameHostOnlyServerRef
    // during unmarshallCustomData and is not applicable to local access.

    checkArgs(desc, null);
    return getGroupEntry(id).setActivationGroupDesc(id, desc, true);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:12,代码来源:Activation.java

示例9: getActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID id)
    throws ActivationException, UnknownGroupException, RemoteException
{
    checkShutdown();
    // RegistryImpl.checkAccess() is done in the SameHostOnlyServerRef
    // during unmarshallCustomData and is not applicable to local access.

    return getGroupEntry(id).desc;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:10,代码来源:Activation.java

示例10: setActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
/** @inheritDoc */
public ActivationGroupDesc setActivationGroupDesc(
  ActivationGroupID groupId, ActivationGroupDesc groupDesc)
    throws ActivationException, UnknownGroupException, RemoteException
{
  return super.setActivationGroupDesc(groupId, groupDesc);
}
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:ActivationSystemImpl.java

示例11: getActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
/**
 * Get the descriptor of the given activation group.
 *
 * @return the activation group descriptor, never null.
 * @throws UnknownGroupException if such group is unknown
 */
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID groupId)
    throws ActivationException, UnknownGroupException, RemoteException
{
  ActivationGroupDesc desc = (ActivationGroupDesc) groupDescs.get(groupId);
  if (desc == null)
    throw new UnknownGroupException(groupId == null ? "null"
                                                   : groupId.toString());
  return desc;
}
 
开发者ID:vilie,项目名称:javify,代码行数:16,代码来源:ActivationSystemTransient.java

示例12: setActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
/**
 * Replace the activation group descriptor, return the previous descriptor.
 */
public ActivationGroupDesc setActivationGroupDesc(
                                                  ActivationGroupID groupId,
                                                  ActivationGroupDesc groupDesc)
    throws ActivationException, UnknownGroupException, RemoteException
{
  ActivationGroupDesc prev = getActivationGroupDesc(groupId);
  groupDescs.put(groupId, groupDesc);
  return prev;
}
 
开发者ID:vilie,项目名称:javify,代码行数:13,代码来源:ActivationSystemTransient.java

示例13: getActivationGroupDesc

import java.rmi.activation.ActivationGroupDesc; //导入依赖的package包/类
/**
 * Get the descriptor of the given activation group.
 * 
 * @return the activation group descriptor, never null.
 * @throws UnknownGroupException if such group is unknown
 */
public ActivationGroupDesc getActivationGroupDesc(ActivationGroupID groupId)
    throws ActivationException, UnknownGroupException, RemoteException
{
  ActivationGroupDesc desc = (ActivationGroupDesc) groupDescs.get(groupId);
  if (desc == null)
    throw new UnknownGroupException(groupId == null ? "null"
                                                   : groupId.toString());
  return desc;
}
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:16,代码来源:ActivationSystemTransient.java


注:本文中的java.rmi.activation.ActivationGroupDesc类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。