|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.metamatrix.console.ui.views.deploy.event.ConfigurationChangeEvent
public class ConfigurationChangeEvent
The ConfigurationChangeEvent
is used to notify
ConfigurationChangeListener
s that a change in a
Configuration
has occurred.
Field Summary | |
---|---|
protected java.lang.Object[] |
ancestors
Ancestor objects starting with the parent. |
protected static int |
CONFIGURATION
Source of the event is a configuration. |
static int |
DELETED
Indicates something in a configuration has been deleted. |
protected static int |
DEPLOYED_PSC
Source of the event is a deployed PSC. |
protected static int |
DEPLOYED_SERVICE
Source of the event is a deployed service. |
protected static int |
HOST
Source of the event is a host. |
static int |
MODIFIED
Indicates something in a configuration has been modified. |
static int |
NEW
Indicates something new has been added to a configuration. |
protected static int |
PROCESS
Source of the event is a process. |
protected static int |
PRODUCT
Source of the event is a product. |
protected static int |
PSC_DEFN
Source of the event is a PSC definition. |
static int |
REFRESH_END
Indicates the configuration refresh has ended. |
static int |
REFRESH_START
Indicates the configuration will be refreshed after notifying all listeners. |
protected static int |
SERVICE_DEFN
Source of the event is a service definition. |
protected int |
type
The event type. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
|
ConfigurationChangeEvent(int theRefreshType,
java.lang.Object theSource)
Constructs a refresh ConfigurationChangeEvent . |
protected |
ConfigurationChangeEvent(int theType,
java.lang.Object theChangedObject,
Configuration theConfig)
Constructs a ConfigurationChangeEvent of the given type. |
|
ConfigurationChangeEvent(int theType,
java.lang.Object theChangedObject,
Configuration theConfig,
java.lang.Object[] theAncestors)
Constructs a ConfigurationChangeEvent of the given type. |
Method Summary | |
---|---|
protected int |
getAncestorIndex(int theAncestorType)
Gets the ancestor index of the ancestor type. |
java.lang.Object[] |
getAncestors()
Gets the ancestors of the changed object. |
Configuration |
getConfiguration()
Gets the configuration where the change took place. |
ProductServiceConfig |
getDeployedPsc()
Gets the deployed PSC if either a deployed PSC was the event source or an ancestor. |
DeployedComponent |
getDeployedService()
Gets the deployed service if either a deployed service was the event source or an ancestor. |
Host |
getHost()
Gets the host if either a host was the event source or an ancestor. |
VMComponentDefn |
getProcess()
Gets the process if either a process was the event source or an ancestor. |
ProductType |
getProduct()
Gets the product if either a product was the event source or an ancestor. |
ProductServiceConfig |
getPscDefinition()
Gets the PSC definition if either a PSC definition was the event source or an ancestor. |
ServiceComponentDefn |
getServiceDefinition()
Gets the service definition if either a service definition was the event source or an ancestor. |
int |
getType()
Gets the event type. |
boolean |
isConfigurationChange()
Indicates if the changed object was the configuration object. |
boolean |
isDeleted()
Indicates if the changed object has been deleted. |
boolean |
isDeployedPscChange()
Indicates if the changed object was a deployed PSC object. |
boolean |
isDeployedServiceChange()
Indicates if the changed object was a deployed service object. |
boolean |
isHostChange()
Indicates if the changed object was a host object. |
boolean |
isModified()
Indicates if the changed object has been modified. |
boolean |
isNew()
Indicates if the changed object is new. |
boolean |
isProcessChange()
Indicates if the changed object was a process object. |
boolean |
isProductChange()
Indicates if the changed object was a product object. |
boolean |
isPscDefinitionChange()
Indicates if the changed object was a PSC definition object. |
boolean |
isRefreshEnd()
Indicates if a refresh of the configuration is starting. |
boolean |
isRefreshStart()
Indicates if a refresh of the configuration has just ended. |
boolean |
isServiceDefinitionChange()
Indicates if the changed object was a service definition object. |
java.lang.String |
paramString()
Gets a string representation of the event. |
protected void |
setAncestors(java.lang.Object[] theAncestors)
Sets the ancestor object of the changed object. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DELETED
public static final int MODIFIED
public static final int NEW
public static final int REFRESH_START
public static final int REFRESH_END
protected static final int CONFIGURATION
protected static final int HOST
protected static final int PROCESS
protected static final int DEPLOYED_PSC
protected static final int DEPLOYED_SERVICE
protected static final int PRODUCT
protected static final int PSC_DEFN
protected static final int SERVICE_DEFN
protected int type
protected java.lang.Object[] ancestors
Constructor Detail |
---|
protected ConfigurationChangeEvent(int theType, java.lang.Object theChangedObject, Configuration theConfig)
ConfigurationChangeEvent
of the given type.
theType
- the event typetheChangedObject
- the object whose state has changedtheConfig
- the configuration where the change occurred
java.lang.IllegalArgumentException
- if type is not valid, if the
changed object is null
, or if the configuration
is null
.public ConfigurationChangeEvent(int theType, java.lang.Object theChangedObject, Configuration theConfig, java.lang.Object[] theAncestors)
ConfigurationChangeEvent
of the given type.
theType
- the event typetheChangedObject
- the object whose state has changedtheConfig
- the configuration where the change occurredtheAncestors
- the ancestor objects starting with the parent
java.lang.IllegalArgumentException
- if type is not valid, if the
changed object is null
, or if the configuration
is null
.public ConfigurationChangeEvent(int theRefreshType, java.lang.Object theSource)
ConfigurationChangeEvent
. The type
must be either REFRESH_START
or REFRESH_END
. This
event has no configuration and no ancestors.
theType
- the refresh event typetheSource
- the object whose state has changed
java.lang.IllegalArgumentException
- if type is not a refresh typeMethod Detail |
---|
public java.lang.Object[] getAncestors()
public Configuration getConfiguration()
public ProductServiceConfig getDeployedPsc()
null
public DeployedComponent getDeployedService()
null
public Host getHost()
null
public VMComponentDefn getProcess()
null
public ProductType getProduct()
null
public ProductServiceConfig getPscDefinition()
null
public ServiceComponentDefn getServiceDefinition()
null
public int getType()
public boolean isConfigurationChange()
true
if the changed object was the configuration object;
false
otherwise.public boolean isDeleted()
true
if the changed object has been deleted;
false
otherwise.public boolean isDeployedPscChange()
true
if the changed object was a deployed PSC object;
false
otherwise.public boolean isDeployedServiceChange()
true
if the changed object was a deployed service object;
false
otherwise.public boolean isModified()
true
if the changed object has been modified;
false
otherwise.public boolean isNew()
true
if the changed object is new;
false
otherwise.public boolean isHostChange()
true
if the changed object was a host object;
false
otherwise.public boolean isRefreshEnd()
true
if a configuration refresh is starting;
false
otherwise.public boolean isRefreshStart()
true
if a configuration refresh has just ended;
false
otherwise.public boolean isProcessChange()
true
if the changed object was a process object;
false
otherwise.public boolean isProductChange()
true
if the changed object was a product object;
false
otherwise.public boolean isPscDefinitionChange()
true
if the changed object was a PSC definition object;
false
otherwise.public boolean isServiceDefinitionChange()
true
if the changed object was a service Definition object;
false
otherwise.public java.lang.String paramString()
protected void setAncestors(java.lang.Object[] theAncestors)
theAncestors
- the ancestor objectsprotected int getAncestorIndex(int theAncestorType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |