components/visual-panels/apache/src/java/vpanels/app/apache/com/oracle/solaris/vp/panels/apache/client/swing/PropertyGroupNamePool.java
branchs11-update
changeset 2805 4888f6212f94
parent 827 0944d8c0158b
equal deleted inserted replaced
2804:7546c836fd87 2805:4888f6212f94
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
    24  */
    24  */
    25 
    25 
    26 package com.oracle.solaris.vp.panels.apache.client.swing;
    26 package com.oracle.solaris.vp.panels.apache.client.swing;
    27 
    27 
    28 import java.util.*;
    28 import java.util.*;
    29 import com.oracle.solaris.scf.common.ScfException;
    29 import com.oracle.solaris.scf.common.ScfException;
    30 import com.oracle.solaris.vp.panel.common.api.smf_old.*;
    30 import com.oracle.solaris.vp.panel.common.api.smf_old.*;
    31 import com.oracle.solaris.vp.panel.common.smf.ServiceMXBean;
    31 import com.oracle.solaris.vp.panel.common.smf.ServiceBean;
    32 
    32 
    33 public class PropertyGroupNamePool {
    33 public class PropertyGroupNamePool {
    34     //
    34     //
    35     // Static data
    35     // Static data
    36     //
    36     //
    39 
    39 
    40     //
    40     //
    41     // Instance data
    41     // Instance data
    42     //
    42     //
    43 
    43 
    44     private ServiceMXBean service;
    44     private ServiceBean service;
    45     private String prefix;
    45     private String prefix;
    46     private List<Integer> existing = new LinkedList<Integer>();
    46     private List<Integer> existing = new LinkedList<Integer>();
    47     private List<Integer> reserved = new LinkedList<Integer>();
    47     private List<Integer> reserved = new LinkedList<Integer>();
    48     private int next;
    48     private int next;
    49 
    49 
    50     //
    50     //
    51     // Constructors
    51     // Constructors
    52     //
    52     //
    53 
    53 
    54     public PropertyGroupNamePool(ServiceMXBean service, String prefix)
    54     public PropertyGroupNamePool(ServiceBean service, String prefix)
    55 	throws ScfException {
    55 	throws ScfException {
    56 
    56 
    57 	this.service = service;
    57 	this.service = service;
    58 	this.prefix = prefix;
    58 	this.prefix = prefix;
    59 
    59