Package net.jini.core.entry

Examples of net.jini.core.entry.Entry


  }

  private static void emptyJobRepository(RMServer server)
  {
    try {
      Entry entry;
      Object ob;
      entry = new JobInfo();
      do {
        ob = server.space.take(entry, null,
                               JavaSpace.NO_WAIT);
View Full Code Here


    }
    // Now do the submission
    String[] groups = { System.getProperty("user.name") };
    UserProperties userProps = new UserProperties("full name",
              groups[0]);
    Entry jobEntry [] = { new Name(appParams.getName()),
        new Name(groups[0]) ,
        new JobUserKey(appParams.getName(),
           userProps,
           "localhost",
           new Date())};
View Full Code Here

    // Now do the submission
    String[] groups = { System.getProperty("user.name") };
    UserProperties userProps = new UserProperties("full name",
              groups[0]);
    Entry jobEntry [] = { new Name(appParams.getName()),
        new Name(groups[0]) ,
        new JobUserKey(appParams.getName(),
           userProps,
           "localhost",
           new Date())};
View Full Code Here

  {
    if (e.getActionCommand().equals("Submit")) {
      int index = list.getSelectedIndex();
      if(index > -1) {
        ServiceItem queueItem = browser.getServiceItem(index, serviceCache);
        Entry queueAttrs[] = queueItem.attributeSets;
       
        // Find Name of service (there's got to be an easier way XXX)
        for (int i=0; i<queueAttrs.length; ++i) {
          if (queueAttrs[i] instanceof Name) {
            console.append("Submitting job to " +
View Full Code Here

  {
    if(e.getClickCount() > 1) {
      int index = list.getSelectedIndex();
      //Show Compute Monitor
      ServiceItem queueItem = browser.getServiceItem(index, serviceCache);
      Entry queueAttrs[] = queueItem.attributeSets;
      QueueInterface queue = (QueueInterface)queueItem.service;

      // Find Name of service (there's got to be an easier way XXX)
      for (int i=0; i<queueAttrs.length; ++i) {
  if (queueAttrs[i] instanceof Name) {
View Full Code Here

    try {
      ServiceMatches sm = ((ServiceRegistrar)
                           e.getSource()).lookup(template, 10);
      for(int h = 0; h < sm.items.length; h ++) {
        if(sm.items[h].service != null) {
          Entry attr [] = sm.items[h].attributeSets;
          // Looking for ServiceUIFactoryEntry object
          for(int i = 0 ; i < attr.length; i++) {
            if(attr[i] instanceof ServiceUIFactoryEntry) {
              ServiceUIFactory factory = ((ServiceUIFactoryEntry)
                                          attr[i]).factory;
View Full Code Here

      for(int i = 0; i < p.length; i ++)
        p[i] = pList.nextToken();
      String script = getScriptContent(scriptFile);
      UserProperties user = new UserProperties("Real Name",
                                               userID);
      Entry entry [] = { new JobUserKey(appName,
                                        user,
                                        "localhost",
                                        new Date()),
                         new Name(appName),
                         new Name(userID) };
View Full Code Here

  // ServiceItem.  Must explicitly check for this case
  // (i.e. the first clause below) to properly detect a
  // service going away (at least for app agent case, which
  // builds it own ServiceMatches object).
  if(sm.items[h] != null && sm.items[h].service != null) {
    Entry attr [] = sm.items[h].attributeSets;
    if(attr[0] instanceof Name) {
      bean.makeLink(attr[0]);
      nm = bean.getName();
    } else {
      nm = sm.items[h].service.getClass().getName();
View Full Code Here

   * @see org.springmodules.test.AbstractDependencyInjectionSpringContextTests#onTearDown()
   */
  protected void onTearDown() throws Exception {
    killWorkerThreads();

    Entry entry = new Entry() {
    };

    Entry e = null;
    do {
      e = template.takeIfExists(e, 5);
      System.out.println("Cleanup: " + e);
    } while (e != null);
  }
View Full Code Here

   
    tmCtrl.expectAndReturn(tm.create(-1), txCreated);
    // tx commit
    tm.commit(txId);

    final Entry entry = new Entry() {
    };

    // dummy mock
    Transaction tx = new Transaction() {
View Full Code Here

TOP

Related Classes of net.jini.core.entry.Entry

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.