diff options
author | Peter Tribble <peter.tribble@gmail.com> | 2020-12-28 20:32:09 +0000 |
---|---|---|
committer | Peter Tribble <peter.tribble@gmail.com> | 2020-12-29 21:09:11 +0000 |
commit | 99308ed0417a2b8ab73c5856a8a5345ce2a7aea7 (patch) | |
tree | 4b5688d074e92ed493890ac46a3fc4ef1e65fd43 /usr/src | |
parent | 1575b751c16622553e958c1e5c45e59c86b15c6e (diff) | |
download | illumos-joyent-99308ed0417a2b8ab73c5856a8a5345ce2a7aea7.tar.gz |
13396 PoolsExecption typo in resource pools javadoc
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src')
8 files changed, 55 insertions, 67 deletions
diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Component.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Component.java index ff762d83ed..bbe1d04076 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Component.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Component.java @@ -23,8 +23,6 @@ * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - *ident "%Z%%M% %I% %E% SMI" - * */ package com.sun.solaris.service.pools; @@ -147,7 +145,7 @@ public class Component extends Element * Return the pointer to this component as an element. * * @return The pointer to the native component which this object wraps. - * @throws PoolsExecption If there is an error converting the native + * @throws PoolsException If there is an error converting the native * component pointer to a native elem pointer. */ protected long getElem() throws PoolsException diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Configuration.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Configuration.java index 1597af088b..a5b54e7630 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Configuration.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Configuration.java @@ -23,8 +23,6 @@ * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - *ident "%Z%%M% %I% %E% SMI" - * */ package com.sun.solaris.service.pools; @@ -173,7 +171,7 @@ public class Configuration extends Element /** * Remove the configuration. * - * @throws PoolsExecption If the removal fails. + * @throws PoolsException If the removal fails. */ public void remove() throws PoolsException { @@ -187,7 +185,7 @@ public class Configuration extends Element * made since the last commit or (if there are no commits) since the * configuration was opened. * - * @throws PoolsExecption If the rollback fails. + * @throws PoolsException If the rollback fails. */ public void rollback() throws PoolsException { @@ -201,7 +199,7 @@ public class Configuration extends Element * was last committed (or opened if there have been no prior commits) * permanent. * - * @throws PoolsExecption If the commit fails. + * @throws PoolsException If the commit fails. */ public void commit(int active) throws PoolsException { @@ -216,7 +214,7 @@ public class Configuration extends Element * * @param location The location of the export. * @param format The format of the export. - * @throws PoolsExecption If the export fails. + * @throws PoolsException If the export fails. */ public void export(String location, int format) throws PoolsException { @@ -230,7 +228,7 @@ public class Configuration extends Element * configuration satisfies the supplied validation level. * * @param level The desired level of validation. - * @throws PoolsExecption If the validation fails. + * @throws PoolsException If the validation fails. */ public void validate(int level) throws PoolsException { @@ -243,7 +241,7 @@ public class Configuration extends Element * Update the configuration, ensuring that the current state of the * configuration reflects that of the kernel. * - * @throws PoolsExecption If the update fails. + * @throws PoolsException If the update fails. * @return a bitmap of the changed types. */ public int update() throws PoolsException @@ -255,7 +253,7 @@ public class Configuration extends Element * Create a pool with the supplied name. * * @param name The name of the PoolInternal. - * @throws PoolsExecption If the pool creation fails. + * @throws PoolsException If the pool creation fails. * @return a pool with the supplied name. */ public Pool createPool(String name) throws PoolsException @@ -286,7 +284,7 @@ public class Configuration extends Element * Get the pool with the supplied name. * * @param name The name of the pool to be found. - * @throws PoolsExecption If the pool cannot be located. + * @throws PoolsException If the pool cannot be located. * @return a pool with the supplied name. */ public Pool getPool(String name) throws PoolsException @@ -304,13 +302,13 @@ public class Configuration extends Element elements.put(p.getKey(), p); return (p); } - } + } /** * Get the proxy for the pool with the supplied name. * * @param name The name of the pool to be found. - * @throws PoolsExecption If the pool cannot be located. + * @throws PoolsException If the pool cannot be located. * @return the proxy for the pool with the supplied name. */ long checkPool(String name) throws PoolsException @@ -322,14 +320,14 @@ public class Configuration extends Element throw new PoolsException(); } return (aPool); - } + } /** * Get a list of pools which match the supplied selection criteria * in values. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of pools which match the supplied criteria */ public List getPools(List values) throws PoolsException @@ -350,13 +348,13 @@ public class Configuration extends Element ((Long)pools.get(i)).longValue())); return (aList); } - + /** * Create a resource with the supplied type and name. * * @param type The type of the resource. * @param name The name of the resource. - * @throws PoolsExecption If the resource creation fails. + * @throws PoolsException If the resource creation fails. * @return a resource of the supplied type and name. */ public Resource createResource(String type, String name) @@ -391,7 +389,7 @@ public class Configuration extends Element * * @param type The type of the resource to be found. * @param name The name of the resource to be found. - * @throws PoolsExecption If the resource cannot be located. + * @throws PoolsException If the resource cannot be located. * @return a resource with the supplied name. */ public Resource getResource(String type, String name) @@ -410,7 +408,7 @@ public class Configuration extends Element elements.put(r.getKey(), r); return (r); } - } + } /** * Get the proxy for the resource with the supplied type and @@ -418,7 +416,7 @@ public class Configuration extends Element * * @param type The type of the resource to be found. * @param name The name of the resource to be found. - * @throws PoolsExecption If the resource cannot be located. + * @throws PoolsException If the resource cannot be located. * @return the proxy for the resource with the supplied name. */ long checkResource(String type, String name) throws PoolsException @@ -430,14 +428,14 @@ public class Configuration extends Element throw new PoolsException(); } return (res); - } + } /** * Get a list of resources which match the supplied selection criteria * in values. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of resources which match the supplied criteria */ public List getResources(List values) throws PoolsException @@ -464,7 +462,7 @@ public class Configuration extends Element * * @param type The type of the component to be found. * @param sys_id The sys_id of the component to be found. - * @throws PoolsExecption If the component cannot be located. + * @throws PoolsException If the component cannot be located. * @return a component with the supplied name. */ public Component getComponent(String type, long sys_id) @@ -482,14 +480,14 @@ public class Configuration extends Element if (comps.size() != 1) throw new PoolsException(); return ((Component) comps.get(0)); - } + } /** * Get the component proxy with the supplied type and sys_id. * * @param type The type of the component to be found. * @param sys_id The sys_id of the component to be found. - * @throws PoolsExecption If the component cannot be located. + * @throws PoolsException If the component cannot be located. * @return a component with the supplied name. */ long checkComponent(String type, long sys_id) @@ -507,20 +505,20 @@ public class Configuration extends Element if (comps.size() != 1) throw new PoolsException(); return (((Long)comps.get(0)).longValue()); - } + } /** * Get a list of components which match the supplied selection criteria * in values. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of components which match the supplied criteria */ public List getComponents(List values) throws PoolsException { List components; - + if ((components = PoolInternal.pool_query_components(getConf(), values)) == null) { if (PoolInternal.pool_error() == @@ -556,7 +554,7 @@ public class Configuration extends Element throw new PoolsException(); long sys_id = idValue.getLong(); idValue.close(); - + if (elements.containsKey(type + "." + sys_id)) aList.add((Component)elements.get(type + "." + sys_id)); @@ -573,7 +571,7 @@ public class Configuration extends Element * selection criteria in values. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of component proxies which match the * supplied criteria */ @@ -649,13 +647,13 @@ public class Configuration extends Element { return name.hashCode(); } - + /** * Return the pointer to this configuration as an element. * * @return The pointer to the native configuration which this object * wraps. - * @throws PoolsExecption If there is an error converting the native + * @throws PoolsException If there is an error converting the native * configuration pointer to a native elem pointer. */ protected long getElem() throws PoolsException @@ -668,7 +666,7 @@ public class Configuration extends Element } /** - * Return the anme of the configuration. + * Return the name of the configuration. */ String getName() { diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Element.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Element.java index 46f2a4b5f8..2cd07ad25e 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Element.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Element.java @@ -84,7 +84,7 @@ public abstract class Element implements Property, PropertyWalk * Get the property with the supplied name. * * @param name The name of the property to be retrieved. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. * @return a value containing the property details. */ private Value getProperty(String name) throws PoolsException @@ -113,7 +113,7 @@ public abstract class Element implements Property, PropertyWalk * * @param name The name of the property to be retrieved. * @param proxy The proxy item used to retrieve the property. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. * @return a value containing the property details. */ protected Value getProperty(String name, long proxy) @@ -143,7 +143,7 @@ public abstract class Element implements Property, PropertyWalk * * @param name The name of the property to be updated. * @param value The value of the property to be updated. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public void putProperty(String name, Value value) throws PoolsException { @@ -156,7 +156,7 @@ public abstract class Element implements Property, PropertyWalk * Remove the element property with the supplied name. * * @param name The name of the property to be removed. - * @throws PoolsExecption If there is an error removing the property. + * @throws PoolsException If there is an error removing the property. */ public void rmProperty(String name) throws PoolsException { @@ -259,7 +259,7 @@ public abstract class Element implements Property, PropertyWalk * @param elem The element to whom the property belongs. * @param val The value representing the current element. * @param user User supplied data, provided when the walk is invoked. - * @throws PoolsExecption If there is an error walking the property. + * @throws PoolsException If there is an error walking the property. * @return 0 to continue the walk, anything else to terminate it. */ public int walk(Element elem, Value val, Object user) @@ -275,7 +275,7 @@ public abstract class Element implements Property, PropertyWalk * Return the pointer to this subtype as an element. * * @return The pointer to the native subtype which this object wraps. - * @throws PoolsExecption If there is an error converting the native + * @throws PoolsException If there is an error converting the native * subtype pointer to a native elem pointer. */ protected abstract long getElem() throws PoolsException; @@ -286,7 +286,7 @@ public abstract class Element implements Property, PropertyWalk * @param handler The object which will receive the callbacks. * @param user Data supplied by the user for use in the callback. * @return 0 for a successful walk, else 1. - * @throws PoolsExecption If there is an error during the walk. + * @throws PoolsException If there is an error during the walk. */ public int walkProperties(PropertyWalk handler, Object user) throws PoolsException diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Pool.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Pool.java index 113bf463e7..12b6b6ffe8 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Pool.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Pool.java @@ -23,8 +23,6 @@ * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - *ident "%Z%%M% %I% %E% SMI" - * */ package com.sun.solaris.service.pools; @@ -108,7 +106,7 @@ public class Pool extends Element { * searched. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of resources which match the supplied criteria */ public List getResources(List values) throws PoolsException @@ -195,7 +193,7 @@ public class Pool extends Element { * Return the pointer to this pool as an element. * * @return The pointer to the native pool which this object wraps. - * @throws PoolsExecption If there is an error converting the native + * @throws PoolsException If there is an error converting the native * pool pointer to a native elem pointer. */ protected long getElem() throws PoolsException diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Property.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Property.java index cf03d5835e..676c77c5fe 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Property.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Property.java @@ -23,15 +23,13 @@ * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - *ident "%Z%%M% %I% %E% SMI" - * */ package com.sun.solaris.service.pools; /** * The <code>Property</code> interface specifies the contract between - * a pools configuration element and it's properties. This interface + * a pools configuration element and its properties. This interface * must be implemented by all pools configuration elements to ensure that * properties can be manipulated. */ @@ -41,7 +39,7 @@ public interface Property { * Get a property with the supplied name. * * @param name The name of the property to be retrieved. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public boolean getBoolProperty(String name) throws PoolsException; @@ -49,7 +47,7 @@ public interface Property { * Get a property with the supplied name. * * @param name The name of the property to be retrieved. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public double getDoubleProperty(String name) throws PoolsException; @@ -57,7 +55,7 @@ public interface Property { * Get a property with the supplied name. * * @param name The name of the property to be retrieved. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public long getLongProperty(String name) throws PoolsException; @@ -65,7 +63,7 @@ public interface Property { * Get a property with the supplied name. * * @param name The name of the property to be retrieved. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public String getStringProperty(String name) throws PoolsException; @@ -74,7 +72,7 @@ public interface Property { * * @param name The name of the property to be updated. * @param value The value of the property to be updated. - * @throws PoolsExecption If there is an error accessing the property. + * @throws PoolsException If there is an error accessing the property. */ public void putProperty(String name, Value value) throws PoolsException; @@ -82,7 +80,7 @@ public interface Property { * Remove the property with the supplied name. * * @param name The name of the property to be removed. - * @throws PoolsExecption If there is an error removing the property. + * @throws PoolsException If there is an error removing the property. */ public void rmProperty(String name) throws PoolsException; } diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/PropertyWalk.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/PropertyWalk.java index 82f29845e0..de1827be43 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/PropertyWalk.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/PropertyWalk.java @@ -23,8 +23,6 @@ * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * - *ident "%Z%%M% %I% %E% SMI" - * */ package com.sun.solaris.service.pools; @@ -40,12 +38,12 @@ import java.util.ArrayList; public interface PropertyWalk { /** - * Walk all properties of the invoking object, calling the + * Walk all properties of the invoking object, calling the * * @param elem The element to whom the property belongs. * @param val The value representing the current element. * @param user User supplied data, provided when the walk is invoked. - * @throws PoolsExecption If there is an error walking the property. + * @throws PoolsException If there is an error walking the property. * @return 0 to continue the walk, anything else to terminate it. */ public int walk(Element elem, Value val, Object user) diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Resource.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Resource.java index d09327e1bf..f907836998 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Resource.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Resource.java @@ -22,8 +22,6 @@ /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. - * - *ident "%Z%%M% %I% %E% SMI" */ package com.sun.solaris.service.pools; @@ -69,7 +67,7 @@ public class Resource extends Element } /** - * Returns a pointer to the native resouce represented by this resource + * Returns a pointer to the native resource represented by this resource * object. * * @throws PoolsException If the pool cannot be located. @@ -96,7 +94,7 @@ public class Resource extends Element donor.getResource(), getResource(), qty) != PoolInternal.PO_SUCCESS) throw new PoolsException(); - } + } /** * Transfer the specified resource components from the donor to this @@ -114,7 +112,7 @@ public class Resource extends Element donor.getResource(), getResource(), components) != PoolInternal.PO_SUCCESS) throw new PoolsException(); - } + } /** * Get a list of components which match the supplied selection @@ -122,7 +120,7 @@ public class Resource extends Element * this resource are searched. * * @param values A list of values to be used to qualify the search. - * @throws PoolsExecption If there is an error executing the query. + * @throws PoolsException If there is an error executing the query. * @return a list of components which match the supplied criteria */ public List getComponents(List values) throws PoolsException @@ -211,7 +209,7 @@ public class Resource extends Element * Return the pointer to this resource as an element. * * @return The pointer to the native resource which this object wraps. - * @throws PoolsExecption If there is an error converting the native + * @throws PoolsException If there is an error converting the native * resource pointer to a native elem pointer. */ protected long getElem() throws PoolsException diff --git a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Value.java b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Value.java index f74ee135fd..5082b552fe 100644 --- a/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Value.java +++ b/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/Value.java @@ -219,7 +219,7 @@ public class Value { * Set this value to take the supplied string value. * * @param value The value to which this value should be set. - * @throws PoolsExecption If the setting of the value fails. + * @throws PoolsException If the setting of the value fails. */ public void setValue(String value) throws PoolsException { |