All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.vaccess.VSystemPool
java.lang.Object
|
+----com.ibm.as400.vaccess.VSystemPool
- public class VSystemPool
- extends Object
- implements VObject, Serializable, ErrorListener
The VSystemPool class defines the representation of system pool on an
AS/400 for use in various models and panes in this package.
Most errors are reported as ErrorEvents rather than throwing exceptions.
Users should listen for ErrorEvents in order to diagnose and recover
from error conditions.
VSystemPool objects generate the following events:
- ErrorEvent
- VObjectEvent
- WorkingEvent
-
IDENTIFIER_PROPERTY
- The property identifier for the system pool identifier.
-
POOL_SIZE_PROPERTY
- The property identifier for the pool size.
-
RESERVED_SIZE_PROPERTY
- The property identifier for the reserved size.
-
VSystemPool()
- Constructs a VSystemPool object.
-
VSystemPool(SystemPool)
- Constructs a VSystemPool object.
-
addErrorListener(ErrorListener)
- Adds a listener to be notified when an error occurs.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener to be notified when the value of any bound property
changes.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds a listener to be notified when the value of any constrained
property changes.
-
addVObjectListener(VObjectListener)
- Adds a listener to be notified when a VObject is changed, created,
or deleted.
-
addWorkingListener(WorkingListener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
-
errorOccurred(ErrorEvent)
- Invoked when an error has occurred.
-
getActions()
- Returns the list of actions that can be performed.
-
getDefaultAction()
- Returns the default action.
-
getIcon(int, boolean)
- Returns the icon.
-
getPropertiesPane()
- Returns the properties pane.
-
getPropertyValue(Object)
- Returns a property value.
-
getSystem()
- Returns the AS/400 system in which the system pool information resides.
-
getSystemPool()
- Returns the systemPool.
-
getText()
- Returns the text which is the system pool name.
-
isAllowModify()
- Returns true if the modify action is allowed, false otherwise.
-
load()
- Loads information about the object from the AS/400.
-
removeErrorListener(ErrorListener)
- Removes an error listener.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a property change listener.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes a vetoable change listener.
-
removeVObjectListener(VObjectListener)
- Removes a VObjectListener.
-
removeWorkingListener(WorkingListener)
- Removes a working listener.
-
setAllowModify(boolean)
- Set the state of modify action.
-
setSystemPool(SystemPool)
- Sets the SystemPool object.
-
toString()
- Returns the string representation of the system pool name.
IDENTIFIER_PROPERTY
public static String IDENTIFIER_PROPERTY
- The property identifier for the system pool identifier.
POOL_SIZE_PROPERTY
public static String POOL_SIZE_PROPERTY
- The property identifier for the pool size.
RESERVED_SIZE_PROPERTY
public static String RESERVED_SIZE_PROPERTY
- The property identifier for the reserved size.
VSystemPool
public VSystemPool()
- Constructs a VSystemPool object.
VSystemPool
public VSystemPool(SystemPool systemPool)
- Constructs a VSystemPool object.
- Parameters:
- systemPool - The SystemPool object.
addErrorListener
public void addErrorListener(ErrorListener listener)
- Adds a listener to be notified when an error occurs.
- Parameters:
- listener - The listener.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a listener to be notified when the value of any bound property
changes.
- Parameters:
- listener - The listener.
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)
- Adds a listener to be notified when the value of any constrained
property changes.
- Parameters:
- listener - The listener.
addVObjectListener
public void addVObjectListener(VObjectListener listener)
- Adds a listener to be notified when a VObject is changed, created,
or deleted.
- Parameters:
- listener - The listener.
addWorkingListener
public void addWorkingListener(WorkingListener listener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
- Parameters:
- listener - The listener.
errorOccurred
public void errorOccurred(ErrorEvent event)
- Invoked when an error has occurred.
- Parameters:
- event - The error event.
getActions
public VAction[] getActions()
- Returns the list of actions that can be performed.
- Returns:
- Always null. There are no actions.
getDefaultAction
public VAction getDefaultAction()
- Returns the default action.
- Returns:
- Always null. There is no default action.
getIcon
public Icon getIcon(int size,
boolean open)
- Returns the icon.
- Parameters:
- size - The icon's size, either 16 or 32. If any other value
is given, a default one will be returned.
- open - This parameter has no effect.
- Returns:
- The icon.
getPropertiesPane
public VPropertiesPane getPropertiesPane()
- Returns the properties pane.
- Returns:
- The properties pane.
getPropertyValue
public Object getPropertyValue(Object propertyIdentifier)
- Returns a property value.
- Parameters:
- propertyIdentifier - The property identifier.
- Returns:
- The property value, or null if the property identifier
is not recognized.
getSystem
public AS400 getSystem()
- Returns the AS/400 system in which the system pool information resides.
- Returns:
- The AS/400 system in which the system pool information resides.
getSystemPool
public SystemPool getSystemPool()
- Returns the systemPool.
- Returns:
- The systemPool, or null if it has not been set.
getText
public String getText()
- Returns the text which is the system pool name.
- Returns:
- The text which is the system pool name.
isAllowModify
public boolean isAllowModify()
- Returns true if the modify action is allowed, false otherwise.
- Returns:
- s true if the modify action is allowed, false otherwise.
load
public void load()
- Loads information about the object from the AS/400.
removeErrorListener
public void removeErrorListener(ErrorListener listener)
- Removes an error listener.
- Parameters:
- listener - The listener.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a property change listener.
- Parameters:
- listener - The listener.
removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes a vetoable change listener.
- Parameters:
- listener - The listener.
removeVObjectListener
public void removeVObjectListener(VObjectListener listener)
- Removes a VObjectListener.
- Parameters:
- listener - The listener.
removeWorkingListener
public void removeWorkingListener(WorkingListener listener)
- Removes a working listener.
- Parameters:
- listener - The listener.
setAllowModify
public void setAllowModify(boolean allowModify)
- Set the state of modify action.
- Parameters:
- allowModify - The boolean value.
setSystemPool
public void setSystemPool(SystemPool systemPool) throws PropertyVetoException
- Sets the SystemPool object.
- Parameters:
- systemPool - The SystemPool object.
- Throws: PropertyVetoException
- If the change is vetoed.
toString
public String toString()
- Returns the string representation of the system pool name.
- Returns:
- The string representation of the system pool name.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index