Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for manager (0.22 sec)

  1. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
          final String oldName = Thread.currentThread().getName();
          Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * Runs Runnable r with a security policy that permits precisely the specified permissions. If
       * there is no current security manager, the runnable is run twice, both with and without a
       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        ServiceManager manager = new ServiceManager(asList(a, b));
        RecordingListener listener = new RecordingListener();
        manager.addListener(listener, directExecutor());
        assertState(manager, Service.State.NEW, a, b);
        assertFalse(manager.isHealthy());
        manager.startAsync().awaitHealthy();
        assertState(manager, Service.State.RUNNING, a, b);
        assertTrue(manager.isHealthy());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

     *
     * <pre>{@code
     * class Server {
     *   public static void main(String[] args) {
     *     Set<Service> services = ...;
     *     ServiceManager manager = new ServiceManager(services);
     *     manager.addListener(new Listener() {
     *         public void stopped() {}
     *         public void healthy() {
     *           // Services have been initialized and are healthy, start accepting requests...
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * Runs Runnable r with a security policy that permits precisely the specified permissions. If
       * there is no current security manager, the runnable is run twice, both with and without a
       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  6. guava-gwt/src/com/google/common/DummyJavadocClass.java

     * limitations under the License.
     */
    
    package com.google.common;
    
    /**
     * A dummy class so that the Maven Javadoc plugin will produce a jar. If it doesn't produce a jar,
     * then the Sonatype repository manager issues an error.
     *
     * @author Chris Povirk
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 07 19:38:21 GMT 2020
    - 848 bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Callables.java

      @J2ktIncompatible
      @GwtIncompatible // threads
      private static boolean trySetName(String threadName, Thread currentThread) {
        /*
         * setName should usually succeed, but the security manager can prohibit it. Is there a way to
         * see if we have the modifyThread permission without catching an exception?
         */
        try {
          currentThread.setName(threadName);
          return true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  8. android/pom.xml

            <!--
                In order to build and run the tests against JDK 18+, we need to pass java.security.manager=allow, to make
                the deprecated 'java.lang.SecurityManager' available for use.
             -->
            <jdk>[18,]</jdk>
          </activation>
          <properties>
            <test.add.args>-Djava.security.manager=allow</test.add.args>
          </properties>
        </profile>
      </profiles>
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/PatternFilenameFilter.java

       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
       * parameter as non-nullable (since passing null to a FilenameFilter is unsafe in general), but if
       * someone still manages to pass null, let's continue to have the method work.
       *
       * (PatternFilenameFilter is of course one of those classes that shouldn't be a publicly visible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    be able!  I shall be a great deal too far off to trouble myself
    about you:  you must manage the best way you can; --but I must be
    kind to them,' thought Alice, `or perhaps they won't walk the
    way I want to go!  Let me see:  I'll give them a new pair of
    boots every Christmas.'
    
      And she went on planning to herself how she would manage it.
    `They must go by the carrier,' she thought; `and how funny it'll
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
Back to top