All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.vaccess.VSystemStatus
java.lang.Object
|
+----com.ibm.as400.vaccess.VSystemStatus
- public class VSystemStatus
- extends Object
- implements VNode, Serializable, ErrorListener, PropertyChangeListener
The VSystemStatus class defines the representation of system status on an
AS/400 for use in various models and panes in this package.
The method load() must be explicitly called to load the information from
the AS/400.
Most errors are reported as ErrorEvents rather than throwing exceptions.
Users should listen for ErrorEvents in order to diagnose and recover
from error conditions.
VSystemStatus objects generate the following events:
- ErrorEvent
- PropertyChangeEvent
- VObjectEvent
- WorkingEvent
-
VSystemStatus()
- Constructs a VSystemStatus object.
-
VSystemStatus(AS400)
- Constructs a VSystemStatus object.
-
VSystemStatus(SystemStatus)
- Constructs a VSystemStatus object.
-
VSystemStatus(VNode, AS400)
- Constructs a VSystemStatus 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.
-
children()
- Returns the children of the node.
-
errorOccurred(ErrorEvent)
- Invoked when an error has occurred.
-
getActions()
- Returns the list of actions that can be performed.
-
getAllowsChildren()
- Indicates if the node allows children.
-
getChildAt(int)
- Returns the child node at the specified index.
-
getChildCount()
- Returns the number of children.
-
getDefaultAction()
- Returns the default action.
-
getDetailsChildAt(int)
- Returns the child for the details at the specified index.
-
getDetailsChildCount()
- Returns the number of children for the details.
-
getDetailsColumnModel()
- Returns the table column model to use in the details when
representing the children.
-
getDetailsIndex(VObject)
- Returns the index of the specified child for the details.
-
getIcon(int, boolean)
- Returns the icon.
-
getIndex(TreeNode)
- Returns the index of the specified child.
-
getParent()
- Returns the parent node.
-
getPropertiesPane()
- Returns the properties pane.
-
getPropertyValue(Object)
- Returns a property value.
-
getSystem()
- Returns the AS/400 system in which the system status information resides.
-
getText()
- Returns the description text.
-
isAllowModifyAllPools()
- Return true if the modify action to all system pools is allowed, otherwise false.
-
isLeaf()
- Indicates if the node is a leaf.
-
isSortable()
- Indicates if the details children are sortable.
-
load()
- Loads information about the object from the AS/400.
-
propertyChange(PropertyChangeEvent)
- This method gets called when a bound property is changed.
-
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.
-
setAllowModifyAllPools(boolean)
- Set the state of modify action of all the pools.
-
setSystem(AS400)
- Sets the AS/400 system in which the system status information resides.
-
sortDetailsChildren(Object[], boolean[])
- Sorts the children for the details.
-
toString()
- Returns the string representation of the description.
VSystemStatus
public VSystemStatus() throws AS400Exception, AS400SecurityException, ConnectionDroppedException, ErrorCompletingRequestException, InterruptedException, ObjectDoesNotExistException, IOException, UnsupportedEncodingException, PropertyVetoException
- Constructs a VSystemStatus object.
- Throws: AS400Exception
- If the AS/400 system returns an error
message.
- Throws: AS400SecurityException
- If a security or authority error
occurs.
- Throws: ConnectionDroppedException
- If the connection is dropped
unexpectedly.
- Throws: ErrorCompletingRequestException
- If an error occurs before
the request is completed.
- Throws: InterruptedException
- If this thread is interrupted.
- Throws: IOException
- If an error occurs while communicating with
the AS/400.
- Throws: ObjectDoesNotExistException
- If the AS/400 object does not
exist.
- Throws: PropertyVetoException
- If the change is vetoed.
- Throws: UnsupportedEncodingException
- If the character encoding is
not supported.
VSystemStatus
public VSystemStatus(AS400 system) throws AS400Exception, AS400SecurityException, ConnectionDroppedException, ErrorCompletingRequestException, InterruptedException, ObjectDoesNotExistException, IOException, UnsupportedEncodingException, PropertyVetoException
- Constructs a VSystemStatus object.
- Parameters:
- system - The AS/400 system in which the system status information
resides.
- Throws: AS400Exception
- If the AS/400 system returns an error
message.
- Throws: AS400SecurityException
- If a security or authority error
occurs.
- Throws: ConnectionDroppedException
- If the connection is dropped
unexpectedly.
- Throws: ErrorCompletingRequestException
- If an error occurs before
the request is completed.
- Throws: InterruptedException
- If this thread is interrupted.
- Throws: IOException
- If an error occurs while communicating with
the AS/400.
- Throws: ObjectDoesNotExistException
- If the AS/400 object does not
exist.
- Throws: PropertyVetoException
- If the change is vetoed.
- Throws: UnsupportedEncodingException
- If the character encoding is
not supported.
VSystemStatus
public VSystemStatus(SystemStatus systemStatus) throws AS400Exception, AS400SecurityException, ConnectionDroppedException, ErrorCompletingRequestException, InterruptedException, ObjectDoesNotExistException, IOException, UnsupportedEncodingException, PropertyVetoException
- Constructs a VSystemStatus object.
- Parameters:
- parent - The parent.
- system - The AS/400 system from which the user will be retrieved.
- Throws: AS400Exception
- If the AS/400 system returns an error
message.
- Throws: AS400SecurityException
- If a security or authority error
occurs.
- Throws: ConnectionDroppedException
- If the connection is dropped
unexpectedly.
- Throws: ErrorCompletingRequestException
- If an error occurs before
the request is completed.
- Throws: InterruptedException
- If this thread is interrupted.
- Throws: IOException
- If an error occurs while communicating with
the AS/400.
- Throws: ObjectDoesNotExistException
- If the AS/400 object does not
exist.
- Throws: PropertyVetoException
- If the change is vetoed.
- Throws: UnsupportedEncodingException
- If the character encoding is
not supported.
VSystemStatus
public VSystemStatus(VNode parent,
AS400 system) throws AS400Exception, AS400SecurityException, ConnectionDroppedException, ErrorCompletingRequestException, InterruptedException, ObjectDoesNotExistException, IOException, UnsupportedEncodingException, PropertyVetoException
- Constructs a VSystemStatus object.
- Parameters:
- parent - The parent.
- system - The AS/400 system from which the user will be retrieved.
- Throws: AS400Exception
- If the AS/400 system returns an error
message.
- Throws: AS400SecurityException
- If a security or authority error
occurs.
- Throws: ConnectionDroppedException
- If the connection is dropped
unexpectedly.
- Throws: ErrorCompletingRequestException
- If an error occurs before
the request is completed.
- Throws: InterruptedException
- If this thread is interrupted.
- Throws: IOException
- If an error occurs while communicating with
the AS/400.
- Throws: ObjectDoesNotExistException
- If the AS/400 object does not
exist.
- Throws: PropertyVetoException
- If the change is vetoed.
- Throws: UnsupportedEncodingException
- If the character encoding is
not supported.
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.
children
public Enumeration children()
- Returns the children of the node.
- Returns:
- The children.
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.
getAllowsChildren
public boolean getAllowsChildren()
- Indicates if the node allows children.
- Returns:
- Always false.
getChildAt
public TreeNode getChildAt(int index)
- Returns the child node at the specified index.
- Parameters:
- index - The index.
- Returns:
- Always null.
getChildCount
public synchronized int getChildCount()
- Returns the number of children.
- Returns:
- Always 0.
getDefaultAction
public VAction getDefaultAction()
- Returns the default action.
- Returns:
- Always null. There is no default action.
getDetailsChildAt
public VObject getDetailsChildAt(int index)
- Returns the child for the details at the specified index.
- Parameters:
- index - The index.
- Returns:
- The child, or null if the index is not valid.
getDetailsChildCount
public synchronized int getDetailsChildCount()
- Returns the number of children for the details.
- Returns:
- The number of children for the details.
getDetailsColumnModel
public TableColumnModel getDetailsColumnModel()
- Returns the table column model to use in the details when
representing the children.
This column model describes the details values for the children.
- Returns:
- The details column model.
getDetailsIndex
public synchronized int getDetailsIndex(VObject detailsChild)
- Returns the index of the specified child for the details.
- Parameters:
- detailsChild - The details child.
- Returns:
- The index, or -1 if the child is not found
in the details.
getIcon
public Icon getIcon(int size,
boolean open)
- Returns the icon.
- Parameters:
- size - The icon size, either 16 or 32. If any other
value is given, then return a default.
- open - This parameter has no effect.
- Returns:
- The icon.
getIndex
public synchronized int getIndex(TreeNode child)
- Returns the index of the specified child.
- Parameters:
- child - The child.
- Returns:
- Always -1.
getParent
public TreeNode getParent()
- Returns the parent node.
- Returns:
- The parent node, or null if there is no parent.
getPropertiesPane
public VPropertiesPane getPropertiesPane()
- Returns the properties pane.
- Returns:
- The properties pane.
getPropertyValue
public Object getPropertyValue(Object object)
- 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 status information resides.
- Returns:
- The AS/400 system in which the system status information resides.
- See Also:
- getSystem
getText
public String getText()
- Returns the description text.
- Returns:
- The description text.
isAllowModifyAllPools
public boolean isAllowModifyAllPools()
- Return true if the modify action to all system pools is allowed, otherwise false.
- Returns:
- True if the modify action to all system pools is allowed, otherwise false.
isLeaf
public boolean isLeaf()
- Indicates if the node is a leaf.
- Returns:
- Always true.
isSortable
public boolean isSortable()
- Indicates if the details children are sortable.
- Returns:
- Always false.
load
public void load()
- Loads information about the object from the AS/400.
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- This method gets called when a bound property is changed.
- Parameters:
- evt - - A PropertyChangeEvent object describing the event source
and the property that has changed.
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.
setSystem
public void setSystem(AS400 system) throws Exception
- Sets the AS/400 system in which the system status information resides.
- Parameters:
- system - The AS/400 system in which the system status information
resides.
- Throws: Exception
- If the system is null, connected, or the new value
is vetoed.
- See Also:
- setSystem
setAllowModifyAllPools
public void setAllowModifyAllPools(boolean allow)
- Set the state of modify action of all the pools.
- Parameters:
- allowModify - The boolean value.
sortDetailsChildren
public synchronized void sortDetailsChildren(Object propertyIdentifiers[],
boolean orders[])
- Sorts the children for the details. Sorting is not supported.
- Parameters:
- propertyIdentifiers - The property identifiers.
- orders - The sort orders for each property identifier:
true for ascending order; false for descending order.
toString
public String toString()
- Returns the string representation of the description.
- Returns:
- The string representation of the description.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index