Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for currentTimeMillis (0.23 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

                    response_map.put( request, response );
                    doSend( request );
                    response.expiration = System.currentTimeMillis() + timeout;
                    while (!response.isReceived) {
                        wait( timeout );
                        timeout = response.expiration - System.currentTimeMillis();
                        if (timeout <= 0) {
                            throw new TransportException( name +
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/DfsImpl.java

        private static class CacheEntry <T> {
    
            long expiration;
            Map<String, T> map;
    
    
            CacheEntry ( long ttl ) {
                this.expiration = System.currentTimeMillis() + ttl * 1000L;
                this.map = new ConcurrentHashMap<>();
            }
        }
    
        private static class NegativeCacheEntry <T> extends CacheEntry<T> {
    
            /**
             * @param ttl
             */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/FileAttributesTest.java

            try ( SmbResource f = getDefaultShareRoot() ) {
                f.getDiskFreeSpace();
            }
        }
    
    
        public void assertCloseTime ( long timeMs ) {
            if ( timeMs - System.currentTimeMillis() > 5 * 60 * 1000L ) {
                assertTrue("Time is not within 30s, check clocks " + new Date(timeMs), false);
            }
        }
    
    
        @Test
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/transport/Transport.java

                long k = makeKey(curReq);
    
                if ( firstKey == 0 ) {
                    firstKey = k;
                }
    
                if ( timeout > 0 ) {
                    curResp.setExpiration(System.currentTimeMillis() + timeout);
                }
                else {
                    curResp.setExpiration(null);
                }
    
                curResp.setMid(k);
                this.response_map.put(k, curResp);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbSession.java

            if( DOMAIN == null ) {
                throw new SmbException( "A domain was not specified" );
            }
    synchronized (DOMAIN) {
                long now = System.currentTimeMillis();
                int retry = 1;
    
                do {
                    if (dc_list_expiration < now) {
                        NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmHttpFilter.java

            if ( domain == null ) {
                throw new ServletException("A domain was not specified");
            }
            long now = System.currentTimeMillis();
            int retry = 1;
    
            do {
                if ( this.dcListExpiration < now ) {
                    Address[] list = getTransportContext().getNameServiceClient().getNbtAllByName(domain, 0x1C, null, null);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/RandomAccessFileTest.java

            log.debug("Read " + length + " took " + ( System.currentTimeMillis() - start ));
        }
    
    
        /**
         * @param bufSize
         * @param length
         * @param os
         * @throws IOException
         */
        static void writeRandom ( int bufSize, long length, DataOutput os ) throws IOException {
            long start = System.currentTimeMillis();
            byte buffer[] = new byte[bufSize];
            long p = 0;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ReadWriteTest.java

            }
            log.debug("Read " + length + " took " + ( System.currentTimeMillis() - start ));
        }
    
    
        /**
         * @param bufSize
         * @param length
         * @param os
         * @throws IOException
         */
        static void writeRandom ( int bufSize, long length, OutputStream os ) throws IOException {
            long start = System.currentTimeMillis();
            byte buffer[] = new byte[bufSize];
            long p = 0;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/NbtAddress.java

            if( CACHE_POLICY == 0 ) {
                return;
            }
            long expiration = -1;
            if( CACHE_POLICY != FOREVER ) {
                expiration = System.currentTimeMillis() + CACHE_POLICY * 1000;
            }
            cacheAddress( hostName, addr, expiration );
        }
        static void cacheAddress( Name hostName, NbtAddress addr, long expiration ) {
            if( CACHE_POLICY == 0 ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 30.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                        byte[] clientChallenge) {
            if (type2 == null || responseKeyNT == null || clientChallenge == null) {
                return null;
            }
            long nanos1601 = (System.currentTimeMillis() + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L;
            return NtlmPasswordAuthentication.getNTLMv2Response(responseKeyNT,
                        type2.getChallenge(),
                        clientChallenge,
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
Back to top