VirtualBox

Ignore:
Timestamp:
Apr 3, 2009 2:23:27 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45632
Message:

SDK licensing

Location:
trunk/src/VBox/Main/webservice/samples/java
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/samples/java/axis/clienttest.java

    r16124 r18694  
    55 * User Manual, which describe in detail how to get this code running.
    66 *
    7  * Copyright (C) 2008 Sun Microsystems, Inc.
    8  *
    9  * This file is part of VirtualBox Open Source Edition (OSE), as
    10  * available from http://www.virtualbox.org. This file is free software;
    11  * you can redistribute it and/or modify it under the terms of the GNU
    12  * General Public License (GPL) as published by the Free Software
    13  * Foundation, in version 2 as it comes in the "COPYING" file of the
    14  * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16  *
    17  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    18  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    19  * additional information or have any questions.
     7 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
     8 *
     9 * The following license applies to this file only:
     10 *
     11 * Permission is hereby granted, free of charge, to any person
     12 * obtaining a copy of this software and associated documentation
     13 * files (the "Software"), to deal in the Software without
     14 * restriction, including without limitation the rights to use,
     15 * copy, modify, merge, publish, distribute, sublicense, and/or
     16 * sell copies of the Software, and to permit persons to whom the
     17 * Software is furnished to do so, subject to the following conditions:
     18 *
     19 * The above copyright notice and this permission notice shall be
     20 * included in all copies or substantial portions of the Software.
     21 *
     22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     29 * OTHER DEALINGS IN THE SOFTWARE.
    2030 */
    2131
  • trunk/src/VBox/Main/webservice/samples/java/jax-ws/clienttest.java

    r18609 r18694  
    55 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread.
    66 *
    7  * Copyright (C) 2008 Sun Microsystems, Inc.
    8  *
    9  * This file is part of VirtualBox Open Source Edition (OSE), as
    10  * available from http://www.virtualbox.org. This file is free software;
    11  * you can redistribute it and/or modify it under the terms of the GNU
    12  * General Public License (GPL) as published by the Free Software
    13  * Foundation, in version 2 as it comes in the "COPYING" file of the
    14  * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16  *
    17  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    18  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    19  * additional information or have any questions.
     7 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
     8 *
     9 * The following license applies to this file only:
     10 *
     11 * Permission is hereby granted, free of charge, to any person
     12 * obtaining a copy of this software and associated documentation
     13 * files (the "Software"), to deal in the Software without
     14 * restriction, including without limitation the rights to use,
     15 * copy, modify, merge, publish, distribute, sublicense, and/or
     16 * sell copies of the Software, and to permit persons to whom the
     17 * Software is furnished to do so, subject to the following conditions:
     18 *
     19 * The above copyright notice and this permission notice shall be
     20 * included in all copies or substantial portions of the Software.
     21 *
     22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     29 * OTHER DEALINGS IN THE SOFTWARE.
    2030 */
    2131/* Somewhat ugly way to support versioning */
     
    94104    public void test3()
    95105    {
    96        
     106
    97107        IWebsessionManager mgr1 = new IWebsessionManager("http://localhost:18082/");
    98108        IWebsessionManager mgr2 = new IWebsessionManager("http://localhost:18083/");
    99109        IVirtualBox vbox1 = mgr1.logon("test", "test");
    100110        IVirtualBox vbox2 = mgr2.logon("test", "test");
    101        
     111
    102112
    103113        System.out.println("connection 1 to VirtualBox version " + vbox1.getVersion());
     
    110120        vbox1 = mgr1.logon("test", "test");
    111121        vbox2 = mgr2.logon("test", "test");
    112        
     122
    113123        System.out.println("second connection 1 to VirtualBox version " + vbox1.getVersion());
    114124        System.out.println("second connection 2 to VirtualBox version " + vbox2.getVersion());
  • trunk/src/VBox/Main/webservice/samples/java/jax-ws/metrictest.java

    r18609 r18694  
    22 * Sample of performance API usage, written in Java.
    33 *
    4  * Don't forget to run VBOX webserver
    5  * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread.
    6  *
    7  * Copyright (C) 2008 Sun Microsystems, Inc.
    8  *
    9  * This file is part of VirtualBox Open Source Edition (OSE), as
    10  * available from http://www.virtualbox.org. This file is free software;
    11  * you can redistribute it and/or modify it under the terms of the GNU
    12  * General Public License (GPL) as published by the Free Software
    13  * Foundation, in version 2 as it comes in the "COPYING" file of the
    14  * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15  * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16  *
    17  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    18  * Clara, CA 95054 USA or visit http://www.sun.com if you need
    19  * additional information or have any questions.
     4 * Don't forget to run VBOX webserver
     5 * with 'vboxwebsrv -t 1000' command, to calm down watchdog thread.
     6 *
     7 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
     8 *
     9 * The following license applies to this file only:
     10 *
     11 * Permission is hereby granted, free of charge, to any person
     12 * obtaining a copy of this software and associated documentation
     13 * files (the "Software"), to deal in the Software without
     14 * restriction, including without limitation the rights to use,
     15 * copy, modify, merge, publish, distribute, sublicense, and/or
     16 * sell copies of the Software, and to permit persons to whom the
     17 * Software is furnished to do so, subject to the following conditions:
     18 *
     19 * The above copyright notice and this permission notice shall be
     20 * included in all copies or substantial portions of the Software.
     21 *
     22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     23 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     24 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     25 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     26 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     27 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     28 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     29 * OTHER DEALINGS IN THE SOFTWARE.
    2030 */
    2131import com.sun.xml.ws.commons.virtualbox{VBOX_API_SUFFIX}.*;
     
    100110        Holder<List<Long>> indices =  new Holder<List<Long>>();
    101111        Holder<List<Long>> lengths =  new Holder<List<Long>>();
    102         List<Integer> values = 
     112        List<Integer> values =
    103113            _collector.queryMetricsData(filterMetrics, filterObjects,
    104114                                        names, objects, units, scales, sequenceNumbers, indices, lengths);
     
    165175            List<PerformanceData> metricData = perf.query(Arrays.asList(new String[]{"*"}),
    166176                                                          allObjects);
    167             for (PerformanceData md : metricData) 
     177            for (PerformanceData md : metricData)
    168178            {
    169179                System.out.println("(" + getObjectName(md.object) + ") " +
     
    200210        }
    201211    }
    202    
     212
    203213    public static void main(String[] args) throws InterruptedException
    204214    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette