Package fr.dyade.aaa.jndi2.client

Examples of fr.dyade.aaa.jndi2.client.Trace


    sim.setCacheSimInterface(lruTop);
    DiskSimNative diskSim = new DiskSimNative(sim,"disk_model/simple_array.parv","/tmp/simple_array.out");
    sim.setDiskSim(diskSim);
    FilesystemModel filesystemModel = new FilesystemModel(sim,50,4,17782768);
    sim.setFilesystemModel(filesystemModel);
    Trace trace;
    try {
      trace = new Trace("/Users/steve/os/nfs_traces/1_1b.txt");
    } catch (IOException e) {
      e.printStackTrace();
      return;
    }
    trace.bulkImport(sim);
    System.out.println("registered events: " + simDriver.nevents());
   
    simDriver.run();
    diskSim.endSimulation(simDriver.getCurrentTime());
    lruTop.getStats().print();
View Full Code Here


    sim.setCacheSimInterface(lruTop);
    DiskSimNative diskSim = new DiskSimNative(sim,"disk_model/cheetah9LP.parv","/tmp/TestDiskSimNative.out");
    sim.setDiskSim(diskSim);
    FilesystemModel filesystemModel = new FilesystemModel(sim,1,4,10000);
    sim.setFilesystemModel(filesystemModel);
    Trace trace = new Trace("/Users/steve/os/nfs_traces/test11.txt");
    trace.bulkImport(sim);
    System.out.println("registered events: " + simDriver.nevents());
   
    simDriver.run();
    diskSim.endSimulation(simDriver.getCurrentTime());
    lruTop.getStats().print();
View Full Code Here

  public static NamingConnection getNamingConnection(
    Hashtable env)
    throws NamingException {   
    try {
      NamingConnection namingConnection;
     
      // URL should be as: hascn://host:port
      String url = getEnvProperty(env, "hascn.naming.provider.url");
     
      if (url == null) {
View Full Code Here

      // clone env to be able to change it.
      myEnv = (Hashtable)env.clone();

      String factoryClassName = (String)myEnv.get("scn.naming.factory.class");
      if (factoryClassName == null) {
        namingFactory = new NamingContextFactory();
      } else {
        try {
          Class factoryClass = Class.forName(factoryClassName);
          namingFactory =
            (InitialContextFactory)factoryClass.newInstance();
View Full Code Here

      ReplicationManager manager =
        new ReplicationManager(serverIds);

      AgentEntryPoint agentEP = new AgentEntryPoint();   
      agentEP.setRequestManager(manager);
      ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();   
      replicationEP.setRequestManager(manager);

      HARequestManager haManager = new HARequestManager();
      haManager.setRequestManager(manager);
      HAEntryPoint haEP = new HAEntryPoint();
      haEP.setHARequestManager(haManager);
View Full Code Here

      3,
      getDefault());
    tcpServer.start();

    if (firstTime) {
      ReplicationManager manager =
        new ReplicationManager(serverIds);

      AgentEntryPoint agentEP = new AgentEntryPoint();   
      agentEP.setRequestManager(manager);
      ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();   
      replicationEP.setRequestManager(manager);

      HARequestManager haManager = new HARequestManager();
      haManager.setRequestManager(manager);
      HAEntryPoint haEP = new HAEntryPoint();
      haEP.setHARequestManager(haManager);

      Container container = new Container();   
      container.addEntryPoint(agentEP);
      container.addEntryPoint(replicationEP);
      container.addEntryPoint(haEP);
      container.setLifeCycleListener(haManager);
      container.setBagSerializer(haManager);
      manager.setContainer(container);
      container.deploy();
    }
  }
View Full Code Here

      // clone env to be able to change it.
      myEnv = (Hashtable)env.clone();

      String factoryClassName = (String)myEnv.get("hascn.naming.factory.class");
      if (factoryClassName == null) {
        namingFactory = new HANamingContextFactory();
      } else {
        try {
          Class factoryClass = Class.forName(factoryClassName);
          namingFactory =
            (InitialContextFactory)factoryClass.newInstance();
View Full Code Here

                                                            evt.getUpdatedContextId()),
                                                            evt.getName(),
                                                            evt.getObject(),
                                                            from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().bind(
                           nc,
                           evt.getName(),
                           evt.getObject(),
                           from);
View Full Code Here

                                                              evt.getUpdatedContextId()),
                                                              evt.getName(),
                                                              evt.getObject(),
                                                              from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().rebind(
                             nc,
                             evt.getName(),
                             evt.getObject(),
                             from);
View Full Code Here

                             getServerImpl().getNamingContext(
                                                              evt.getUpdatedContextId()),
                                                              evt.getName(),
                                                              from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().unbind(
                             nc,
                             evt.getName(),
                             from);
    }
View Full Code Here

TOP

Related Classes of fr.dyade.aaa.jndi2.client.Trace

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.