test/jdk/javax/management/security/MBS_LightMBean.java
author lfoltan
Tue, 20 Feb 2018 07:46:40 -0500
changeset 49026 844bf1deff1a
parent 47216 71c04702a3d5
permissions -rw-r--r--
8196884: VS2017 Multiple Type Cast Conversion Compilation Errors Summary: Change the type of symbolic constant badAddressVal and introduce specific casts to fix multiple type cast conversion compilation errors. Reviewed-by: coleenp, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34827
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     1
/*
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     2
 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     4
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     7
 * published by the Free Software Foundation.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     8
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    13
 * accompanied this code).
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    14
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    18
 *
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    21
 * questions.
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    22
 */
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    23
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    24
@SqeDescriptorKey("INTERFACE MBS_LightMBean")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    25
public interface MBS_LightMBean {
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    26
    // Getter for property param
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    27
    @SqeDescriptorKey("ATTRIBUTE Param")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    28
    public RjmxMBeanParameter getParam() ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    29
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    30
    // Setter for property param
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    31
    @SqeDescriptorKey("ATTRIBUTE Param")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    32
    public void setParam(RjmxMBeanParameter param) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    33
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    34
    // Getter for property aString
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    35
    @SqeDescriptorKey("ATTRIBUTE Astring")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    36
    public String getAstring() ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    37
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    38
    // Setter for property aString
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    39
    @SqeDescriptorKey("ATTRIBUTE Astring")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    40
    public void setAstring(String aString) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    41
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    42
    // Getter for property anInt
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    43
    @SqeDescriptorKey("ATTRIBUTE AnInt")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    44
    public int getAnInt() ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    45
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    46
    // Setter for property anInt
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    47
    @SqeDescriptorKey("ATTRIBUTE AnInt")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    48
    public void setAnInt(int anInt) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    49
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    50
    // Getter for property anException
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    51
    @SqeDescriptorKey("ATTRIBUTE AnException")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    52
    public Exception getAnException() ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    53
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    54
    // Setter for property anException
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    55
    @SqeDescriptorKey("ATTRIBUTE AnException")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    56
    public void setAnException(Exception anException) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    57
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    58
    // Getter for property anError
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    59
    @SqeDescriptorKey("ATTRIBUTE AnError")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    60
    public Error getAnError() ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    61
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    62
    // Setter for property anError
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    63
    @SqeDescriptorKey("ATTRIBUTE AnError")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    64
    public void setAnError(Error anError) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    65
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    66
    // An operation
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    67
    @SqeDescriptorKey("OPERATION operate1")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    68
    public RjmxMBeanParameter operate1(
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    69
            @SqeDescriptorKey("OPERATION PARAMETER name")String name) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    70
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    71
    // An operation
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    72
    @SqeDescriptorKey("OPERATION operate2")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    73
    public String operate2(
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    74
            @SqeDescriptorKey("OPERATION PARAMETER param")RjmxMBeanParameter param) ;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    75
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    76
    // Throws an error
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    77
    @SqeDescriptorKey("OPERATION throwError")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    78
    public void throwError();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    79
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    80
    // Throws an exception
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    81
    @SqeDescriptorKey("OPERATION throwException")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    82
    public void throwException() throws Exception;
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    83
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    84
    // Send a notification
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    85
    @SqeDescriptorKey("OPERATION sendNotification")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    86
    public void sendNotification();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    87
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    88
    // Receive a notification and return the type
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    89
    @SqeDescriptorKey("OPERATION waitForNotification")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    90
    public String waitForNotification();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    91
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    92
    // Receive a notification and return the HandBack
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    93
    @SqeDescriptorKey("OPERATION waitForNotificationHB")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    94
    public Object waitForNotificationHB();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    95
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    96
    // Receive multi notifications and return the HandBacks
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    97
    @SqeDescriptorKey("OPERATION waitForMultiNotifications")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    98
    public Object[] waitForMultiNotifications(
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
    99
            @SqeDescriptorKey("OPERATION PARAMETER nb")String nb);
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   100
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   101
    // Is the notification received
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   102
    @SqeDescriptorKey("OPERATION notificationReceived")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   103
    public Boolean notificationReceived();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   104
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   105
    // Return the current authorization Id
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   106
    @SqeDescriptorKey("OPERATION getAuthorizationId")
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   107
    public String getAuthorizationId();
de746e7eb1e3 8058865: JMX Test Refactoring
olagneau
parents:
diff changeset
   108
}