Package com.sun.sgs.kernel

Examples of com.sun.sgs.kernel.ComponentRegistry


            SgsTestNode.getDefaultProperties("TestTxnMembers", null, null);
        p.setProperty(StandardProperties.NODE_TYPE,
                      NodeType.coreServerNode.name());
        p.setProperty("com.sun.sgs.impl.kernel.profile.level", "MEDIUM");
        serverNode = new SgsTestNode("TextTxnMembers", null, p);
        ComponentRegistry registry = serverNode.getSystemRegistry();
        profileCollector = registry.getComponent(ProfileCollector.class);
        txnScheduler = registry.getComponent(TransactionScheduler.class);
    }
View Full Code Here


     * @throws  Exception if a problem occurs when creating the service
     */
    private DataService createDataService(Properties props) throws Exception {
  DataService dataService =
      new DataServiceImpl(props, systemRegistry, txnProxy);
  ComponentRegistry services =
      new SingletonComponentRegistry(dataService);
  ComponentRegistry managers =
      new SingletonComponentRegistry(
    new ProfileDataManager(dataService));
  Object newKernelContext = kernelContextConstructor.newInstance(
      "TestWatchdogServiceImpl", services, managers);
  contextResolverSetTaskState.invoke(null, newKernelContext, taskOwner);
View Full Code Here

     * @throws  Exception if a problem occurs when creating the service
     */
    private DataService createDataService(Properties props) throws Exception {
  DataService dataService =
      new DataServiceImpl(props, systemRegistry, txnProxy);
  ComponentRegistry services =
      new SingletonComponentRegistry(dataService);
  ComponentRegistry managers =
      new SingletonComponentRegistry(
    new ProfileDataManager(dataService));
  Object newKernelContext = kernelContextConstructor.newInstance(
      "TestWatchdogServiceImpl", services, managers);
  contextResolverSetTaskState.invoke(null, newKernelContext, taskOwner);
View Full Code Here

TOP

Related Classes of com.sun.sgs.kernel.ComponentRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.