Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for acquire (0.15 sec)

  1. src/main/java/jcifs/SmbTransportPool.java

    
        /**
         * Get transport connection
         * 
         * @param tc
         *            context to use
         * @param address
         * @param port
         * @param exclusive
         *            whether to acquire an unshared connection
         * @return a transport connection to the target
         */
        SmbTransport getSmbTransport ( CIFSContext tc, Address address, int port, boolean exclusive );
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 09:02:44 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NetServerEnumIterator.java

            }
            else {
                throw new SmbException("The requested list operations is invalid: " + locator.getURL());
            }
    
            this.treeHandle = th.acquire();
            try {
                this.next = open();
            }
            catch ( Exception e ) {
                this.treeHandle.release();
                throw e;
            }
    
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

                }
                else {
                    this.handle = this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0).acquire();
                }
                return this.handle;
            }
            return this.handle.acquire();
        }
    
    
        protected static IOException seToIoe ( SmbException se ) {
            IOException ioe = se;
            Throwable root = se.getCause();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                                    log.debug("Acquire tree on first usage " + t);
                                }
                                t.acquire();
                                this.treeAcquired = true;
                            }
                        }
                    }
                    if ( this.delegate != null && !this.delegateAcquired ) {
                        log.debug("Acquire delegate on first usage");
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            }
        }
    
    
        /**
         * @return a file handle with increased usage count
         */
        public SmbFileHandleImpl acquire () {
            long usage = this.usageCount.incrementAndGet();
            if ( log.isTraceEnabled() ) {
                log.trace(String.format("Acquire %s (%d)", this, usage));
            }
            return this;
        }
    
    
        /**
         * 
         */
        public void markClosed () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                    }
                    // one extra acquire to keep this open till the stream is released
                    return this.handle.acquire();
                }
    
            }
            log.trace("Pipe already open");
            return this.handle.acquire();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#getInput()
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Apr 13 17:05:22 GMT 2020
    - 10.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            release();
        }
    
    
        /**
         * @return tree handle with increased usage count
         */
        public SmbTreeHandleImpl acquire () {
            if ( this.usageCount.incrementAndGet() == 1 ) {
                this.treeConnection.acquire();
            }
            return this;
        }
    
    
        @Override
        public void release () {
            long us = this.usageCount.decrementAndGet();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionImpl.java

            throw new ClassCastException();
        }
    
    
        /**
         * @return session increased usage count
         */
        public SmbSessionImpl acquire () {
            long usage = this.usageCount.incrementAndGet();
            if ( log.isTraceEnabled() ) {
                log.trace("Acquire session " + usage + " " + this);
            }
    
            if ( usage == 1 ) {
                synchronized ( this ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:41:04 GMT 2021
    - 49K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                        continue;
                    }
    
                    if ( log.isTraceEnabled() ) {
                        log.trace("Reusing transport connection " + conn);
                    }
                    return conn.acquire();
                }
            }
    
            return null;
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 12.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileOutputStream.java

    
        protected synchronized SmbFileHandleImpl ensureOpen () throws CIFSException {
            if ( !isOpen() ) {
                // one extra acquire to keep this open till the stream is released
                this.handle = this.file.openUnshared(this.openFlags, this.access, this.sharing, SmbConstants.ATTR_NORMAL, 0).acquire();
                if ( this.append ) {
                    this.fp = this.handle.getInitialSize();
                    if ( log.isDebugEnabled() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
Back to top