Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for currentTimeMillis (0.22 sec)

  1. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            encrypted = false;
            value = System.currentTimeMillis() / 1000 + "\nrole1";
            roleSet = decodedRoleList(roleQueryHelperImpl, value, encrypted);
            assertEquals(1, roleSet.size());
            assertTrue(roleSet.contains("role1"));
    
            encrypted = false;
            value = System.currentTimeMillis() / 1000 + "\nrole1,role2";
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            System.out.println("ArrayMap.put:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                hmap.get(String.valueOf(i));
            }
            System.out.println("HashMap.get:" + (System.currentTimeMillis() - start));
    
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                amap.get(String.valueOf(i));
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Dfs.java

        static class CacheEntry {
            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0)
                    ttl = Dfs.TTL;
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
        static LogStream log = LogStream.getInstance();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.7K bytes
    - Viewed (0)
  4. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  5. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  6. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/TimeoutTest.java

                int port = ss.getLocalPort();
                InetAddress addr = ss.getInetAddress();
    
                long start = System.currentTimeMillis();
                CIFSContext ctx = lowConnectTimeout(getContext());
                try ( SmbResource f = new SmbFile(
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                                long timeout = RESPONSE_TIMEOUT;
                                resp.expiration = System.currentTimeMillis() + timeout;
                                while( resp.hasMoreElements() ) {
                                    wait( timeout );
                                    timeout = resp.expiration - System.currentTimeMillis();
                                    if (timeout <= 0) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                return;
            }
            long expiration = -1;
            if ( this.transportContext.getConfig().getNetbiosCachePolicy() != SmbConstants.FOREVER ) {
                expiration = System.currentTimeMillis() + this.transportContext.getConfig().getNetbiosCachePolicy() * 1000;
            }
            cacheAddress(hostName, addr, expiration);
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                                Hexdump.hexdump( log, snd_buf, 0, out.getLength() );
                            }
                        }
    
                        long start = System.currentTimeMillis();
                        while (timeout > 0) {
                            response.wait( timeout );
    
                            /* JetDirect printer can respond to regular broadcast query
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
Back to top