Examples of share()


Examples of com.sun.jna.Pointer.share()

                  + " Event ID: " + record.EventID.intValue()
                  + " Event Type: " + record.EventType.intValue()
                  + " Event Source: " + pevlr.getString(record.size(), true));
                */
                dwRead -= record.Length.intValue();
                pevlr = pevlr.share(record.Length.intValue());
            }
      }
        assertTrue("Unexpected error after reading event log: "
                   + new Win32Exception(rc),
                   rc == W32Errors.ERROR_HANDLE_EOF || rc == 0);
View Full Code Here

Examples of com.sun.jna.Pointer.share()

            Pointer base = ptr.getValue();
            int off = 0;
            for(int i = 0, count = numChildren.getValue(); i < count; i++) {
                X11.WindowByReference wref = new X11.WindowByReference();
                wref.setPointer(base.share(off));
                off += Pointer.SIZE;
                ret.add(new X11WindowReference(display, wref.getValue()));
            }

            X.XFree(ptr.getValue());
View Full Code Here

Examples of com.sun.jna.Pointer.share()

              + " Event ID: " + record.EventID.intValue()
              + " Event Type: " + record.EventType.intValue()
              + " Event Source: " + pevlr.getString(record.size(), true));
              */
          dwRead -= record.Length.intValue();
          pevlr = pevlr.share(record.Length.intValue());
            }
      }
      assertTrue(rc == W32Errors.ERROR_HANDLE_EOF || rc == 0);
      assertTrue(Advapi32.INSTANCE.CloseEventLog(h));     
    }
View Full Code Here

Examples of com.turn.ttorrent.client.Client.share()

      // Set a shutdown hook that will stop the sharing/seeding and send
      // a STOPPED announce request.
      Runtime.getRuntime().addShutdownHook(
        new Thread(new Client.ClientShutdown(c, null)));

      c.share(seedTimeValue);
      if (Client.ClientState.ERROR.equals(c.getState())) {
        System.exit(1);
      }
    } catch (Exception e) {
      logger.error("Fatal error: {}", e.getMessage(), e);
View Full Code Here

Examples of net.jxta.share.ContentManager.share()

            CheckSumCalc checkSum = new CheckSumCalc();


            for (int i = 0; i < list.length; i++) {
                if (list[i].isFile()) {//Sharing Files and check sums in network
                    contentManager.share(list[i], checkSum.getFileSum(list[i]));
                }
            }
            printOnLog("======= Conteúdo compartilhado =======\n");
            //viewing the shared contents
            Content[] content = cms.getContentManager().getContent();
View Full Code Here

Examples of org.apache.geronimo.connector.outbound.connectiontracking.SharedConnectorInstanceContext.share()

    public void before(Object[] context, ServletRequest httpRequest, ServletResponse httpResponse, int dispatch) {
        try {
            SharedConnectorInstanceContext newConnectorInstanceContext = new SharedConnectorInstanceContext(unshareableResources, applicationManagedSecurityResources, false);
            ConnectorInstanceContext oldContext = trackedConnectionAssociator.enter(newConnectorInstanceContext);
            if (oldContext != null) {
                newConnectorInstanceContext.share(oldContext);
            }
            context[oldIndex] = oldContext;
            context[newIndex] = newConnectorInstanceContext;
        } catch (ResourceException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of org.apache.geronimo.connector.outbound.connectiontracking.SharedConnectorInstanceContext.share()

    public void before(BeforeAfterContext beforeAfterContext, ServletRequest httpRequest, ServletResponse httpResponse, int dispatch) {
        try {
            SharedConnectorInstanceContext newConnectorInstanceContext = new SharedConnectorInstanceContext(unshareableResources, applicationManagedSecurityResources, false);
            ConnectorInstanceContext oldContext = trackedConnectionAssociator.enter(newConnectorInstanceContext);
            if (oldContext != null) {
                newConnectorInstanceContext.share(oldContext);
            }
            beforeAfterContext.contexts[oldIndex] = oldContext;
            beforeAfterContext.clearRequiredFlags[oldIndex] = true;

            beforeAfterContext.contexts[newIndex] = newConnectorInstanceContext;
View Full Code Here

Examples of org.hive2hive.core.model.FolderIndex.share()

    // if the friend receives write access, he gets the protection key
    if (context.getPermissionType() == PermissionType.WRITE) {
      logger.debug("Friend '{}' gets WRITE access to the shared folder '{}'.", context.getFriendId(),
          context.getFolder().getName());
      sharedNode.share(context.consumeNewProtectionKeys());
    } else {
      logger.debug("Friend '{}' gets READ access to the shared folder '{}'.",
          context.getFriendId(), context.getFolder().getName());
      sharedNode.share(null);
    }
View Full Code Here

Examples of org.hive2hive.core.model.FolderIndex.share()

          context.getFolder().getName());
      sharedNode.share(context.consumeNewProtectionKeys());
    } else {
      logger.debug("Friend '{}' gets READ access to the shared folder '{}'.",
          context.getFriendId(), context.getFolder().getName());
      sharedNode.share(null);
    }

    // remove the parent and only send the sub-tree
    sharedNode.setParent(null);
View Full Code Here

Examples of org.hive2hive.core.model.FolderIndex.share()

        logger.debug("Sharing an already shared folder '{}' with friend '{}'.",
            folderIndex.getName(), context.getFriendId());
        folderIndex.addUserPermissions(context.getUserPermission());
      } else {
        // make the node shared with the new protection keys
        folderIndex.share(context.consumeNewProtectionKeys());
        // add read/write user permission of friend
        folderIndex.addUserPermissions(context.getUserPermission());
        // add write user permission of user itself
        folderIndex.addUserPermissions(new UserPermission(userId, PermissionType.WRITE));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.