Package net.jini.core.lookup

Examples of net.jini.core.lookup.ServiceID


     @param curGroups <code>String</code> array containing the current
     *                   member groups of the registrar referenced by the
     *                   <code>reg</code> parameter
     */
    private void sendDiscarded(ServiceRegistrar reg, String[] curGroups) {
        ServiceID srvcID = reg.getServiceID();
        if(curGroups == null) { // discard request is from external source
            UnicastResponse resp = (UnicastResponse)registrars.get(srvcID);
            if(resp == null) return;
            curGroups = resp.getGroups();
        }//endif
View Full Code Here


        if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Discovery manager is: {0}",
      lookupDiscMgr);
  }   

        ServiceID lookupID = new ServiceID(
      serviceID.getMostSignificantBits(),
      serviceID.getLeastSignificantBits());

  if (initLogger.isLoggable(Level.FINEST)) {
            initLogger.log(Level.FINEST, "Creating JoinManager.");
View Full Code Here

              rawUnicastDiscoveryConstraints);
        maybeAddNewRegistrar(resp);
    } else if(req instanceof CheckGroupsMarker) {
        // handle group changes
        announcement = ((CheckGroupsMarker)req).announcement;
        ServiceID srvcID = announcement.getServiceID();
        UnicastResponse resp = null;
        synchronized (registrars) {
      resp = (UnicastResponse)registrars.get(srvcID);
        }
        if(resp != null) {
View Full Code Here

        public boolean runAfter(List tasks, int size) {
            for(int i=0; i<size; i++) {
                TaskManager.Task t = (TaskManager.Task)tasks.get(i);
                //Compare only instances of this task class
                if( !(t instanceof ServiceIdTask) )  continue;
                ServiceID otherTaskSid = ((ServiceIdTask)t).getServiceID();
                if( thisTaskSid.equals(otherTaskSid) ) {
                    if(thisTaskSeqN > ((ServiceIdTask)t).getSeqN()) {
                        return true;//run this task after the other task
                    }//endif
                }//endif
View Full Code Here

  if(initLogger.isLoggable(Level.FINEST)) {
      initLogger.log(Level.FINEST, "Starting JoinStateManager");
        }
  // Starting causes snapshot to occur
  joinStateManager.startManager(config, txnMgrProxy,
      new ServiceID(topUuid.getMostSignificantBits(),
                    topUuid.getLeastSignificantBits()),
            attributesFor());
     
        if (startupLogger.isLoggable(Level.INFO)) {
            startupLogger.log
View Full Code Here

                                                       item.service,
                                                       item.attributeSets);
            boolean pass = filter.check(filteredItem);
            /* Handle filter fail */
            if(!pass) {
                ServiceID srvcID = item.serviceID;
                ServiceItemReg itemReg = null;
                synchronized(serviceIdMap) {
                    itemReg = (ServiceItemReg)serviceIdMap.get(srvcID);
                }//end sync(serviceIdMap)
                if(itemReg != null) {
View Full Code Here

     *  current test (refer to the description of this method in the
     *  parent class).
     */
    public void setup(QAConfig sysConfig) throws Exception {
        super.setup(sysConfig);
        proxy = new LookupSimulatorProxy(null,new ServiceID(1,2));
        discardStr = new String("attempt to discard a registrar that "
                                +"DOES NOT EXIST in the managed set of "
                                +"registrars ...");
    }//end setup
View Full Code Here

        public boolean runAfter(List tasks, int size) {
            for(int i=0; i<size; i++) {
                TaskManager.Task t = (TaskManager.Task)tasks.get(i);
                //Compare only instances of this task class
                if( !(t instanceof ServiceIdTask) )  continue;
                ServiceID otherTaskSid = ((ServiceIdTask)t).getServiceID();
                if( thisTaskSid.equals(otherTaskSid) ) {
                    if(thisTaskSeqN > ((ServiceIdTask)t).getSeqN()) {
                        return true;//run this task after the other task
                    }//endif
                }//endif
View Full Code Here

  String host = ds.readUTF();
  int port = ds.readInt();
  if (port <= 0 || port >= 65536)
      throw new IOException("port number out of range: " + port);
  locator = new LookupLocator(host, port);
  serviceID = new ServiceID(ds);
  int groupCount = ds.readInt();
  // We know that the minimal length of a string written with
  // DataOutput.writeUTF is two bytes (for the empty string), so
  // we make some attempt to see if the count can plausibly fit
  // into this packet.
View Full Code Here

  /* Kick off independent threads.
   */

  // start the JoinStateManager
  joinStateManager.startManager(config, log, spaceProxy,
      new ServiceID(topUuid.getMostSignificantBits(),
        topUuid.getLeastSignificantBits()),
      attributesFor());

  operationJournal.setDaemon(true);
  operationJournal.start();
View Full Code Here

TOP

Related Classes of net.jini.core.lookup.ServiceID

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.