Package net.jini.lookup.entry

Examples of net.jini.lookup.entry.Name


  public RMServer(String rmsName)
    throws RMServerException, ClassNotFoundException
  {
    this(rmsName, null,
         new Class[] { Class.forName("net.jini.space.JavaSpace") },
         new Entry[] { new Name("JobRepository") },
         new String[] { System.getProperty("user.name") },
         null,
         new Class[] {
           Class.forName("net.jini.core.transaction.server.TransactionManager")},
         null, new String[] { System.getProperty("user.name") });
View Full Code Here


  public RMServer(String rmsName, String locator)
    throws RMServerException, ClassNotFoundException
  {
    this(rmsName, locator,
         new Class[] { Class.forName("net.jini.space.JavaSpace") },
         new Entry[] { new Name("JobRepository") },
         new String[] { System.getProperty("user.name") },
         null,
         new Class[] {
           Class.forName("net.jini.core.transaction.server.TransactionManager")},
         null, new String[] { System.getProperty("user.name") });
View Full Code Here

      try {
        ServiceUIFactoryEntry ui = new
          ServiceUIFactoryEntry("Monitor", new
            JobMonitorJFrameFactory());
        if(ce.attributes == null) {
          Entry [] jEntry = { ui, new Name(ce.jobInfo.queueName),
                              new Name(ce.jobInfo.userID),
                              new Name(ce.jobInfo.key.toString())};
          createJobService(ce.jobInfo, jEntry);
        } else {
          int i = 0;
          Entry [] jEntry = new Entry[ce.attributes.length + 3];
          for(; i < ce.attributes.length; i++)
            jEntry[i] = ce.attributes[i];
          jEntry[i++] = ui;
          jEntry[i++] = new Name(ce.jobInfo.queueName);
          jEntry[i++] = new Name(ce.jobInfo.key.toString());
          createJobService(ce.jobInfo, jEntry);
        }
        //Writes the control entry in the job repository and
        //deletes the attribute list
        ce.jobStatus = JobStatus.JAMQUEUED;
View Full Code Here

 
  private static void addQMaster(RMServer server)
  {
    try {
      Entry[] attrQueue = {
        new Name(SGEQueue.QMASTER_NAME),
        new QueueInfo(SGEQueue.QMASTER_NAME,
                      QueueStatus.QUEUE_ENABLED,
                      new Boolean(true), // interactive
                      new Boolean(true), // batch
                      Boolean.FALSE, // dedicated
View Full Code Here

      }


      try {
        Entry[] attrQueue = {
          new Name(queue.getName()),
          new QueueInfo(queue.getName(),
                        new QueueStatus(queue.getState()),
                        new Boolean(queue.isInteractive()), // interactive
                        new Boolean(queue.isBatch()), // batch
                        Boolean.FALSE, // dedicated
View Full Code Here

      StartApp myNativeApp =
  new StartApp(new NativeApp(),
         new Entry[]
         {
           new Name("NativeApp"),
       new NativeAppUI(),
       },
           locators,
           myJoiners);

      StartApp myUserdefinedApp =
  new StartApp(new UserDefinedApp(),
         new Entry[]
         {
           new Name("UserDefinedApp"),
       new UserAppUI(),
       },
           locators,
           myJoiners);

      StartApp mySortApp =
  new StartApp(new SortApp(),
         new Entry[]
         {
           new Name("SortApp"),
       new SortAppUI(),
       },
           locators,
           myJoiners);
View Full Code Here

                                               userID);
      Entry entry [] = { new JobUserKey(appName,
                                        user,
                                        "localhost",
                                        new Date()),
                         new Name(appName),
                         new Name(userID) };
      q.submit(new AppParams(appName, null, script, p, true), entry,
               user);
      //Start a service listener waiting for the Job service
      JAMServiceUILauncher launcher = new
        JAMServiceUILauncher(lookupManager, entry,
View Full Code Here

  protected Object createInstance() throws Exception {
    ServiceTemplate templ;

    if (template == null) {
      Class[] types = (serviceClass == null ? null : new Class[] { serviceClass });
      Entry[] entry = (serviceName == null ? null : new Entry[] { new Name(serviceName) });

      templ = new ServiceTemplate(null, types, entry);
    }
    else
      templ = template;
View Full Code Here

        if (System.getSecurityManager() == null) {
            System.setSecurityManager(new RMISecurityManager());
        }

        Class<?>[] classes = new Class<?>[] {net.jini.space.JavaSpace.class};
        Name sn = new Name(spaceName);
        ServiceTemplate tmpl = new ServiceTemplate(null/* serviceID */, classes, new Entry[] {sn});

        LookupLocator locator = new LookupLocator(url); // <protocol>://<hostname>
        ServiceRegistrar sr = locator.getRegistrar();
        JavaSpace space = (JavaSpace) sr.lookup(tmpl);
View Full Code Here

        if (System.getSecurityManager() == null) {
            System.setSecurityManager(new RMISecurityManager());
        }

        Class<?>[] classes = new Class<?>[] {net.jini.space.JavaSpace.class};
        Name sn = new Name(spaceName);
        ServiceTemplate tmpl = new ServiceTemplate(null/* serviceID */, classes, new Entry[] {sn});

        LookupLocator locator = new LookupLocator(url); // <protocol>://<hostname>
        ServiceRegistrar sr = locator.getRegistrar();
        JavaSpace space = (JavaSpace) sr.lookup(tmpl);
View Full Code Here

TOP

Related Classes of net.jini.lookup.entry.Name

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.