|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISystemRegistry
Registry or front door for all remote system connections. There is a
singleton of the class implementation of this interface. To get it, call the
RSECorePlugin.getTheSystemRegistry()
.
The idea here is that connections are grouped by system profile. At any time, there is a user-specified number of profiles "active" and connections from each active profile are worked with.
Method Summary | |
---|---|
void |
addSystemModelChangeListener(ISystemModelChangeListener l)
Register your interest in being told when an RSE model resource is changed. |
void |
addSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
Register your interest in being told when a system preference changes |
void |
addSystemRemoteChangeListener(ISystemRemoteChangeListener l)
Register your interest in being told when a remote resource is changed. |
void |
addSystemResourceChangeListener(ISystemResourceChangeListener l)
Register your interest in being told when a system resource such as a connection is changed. |
boolean |
areAllSubSystemsConnected(IHost conn)
Return true if all of the subsystems for the given connection are currently connected. |
void |
connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected)
Inform the world when the connection status changes for a subsystem within a connection. |
void |
connectedStatusChange(ISubSystem subsystem,
boolean connected,
boolean wasConnected,
boolean collapseTree)
Inform the world when the connection status changes for a subsystem within a connection. |
IHost |
copyHost(IHost conn,
ISystemProfile targetProfile,
String newName,
IProgressMonitor monitor)
Copy a SystemConnection. |
ISystemProfile |
copySystemProfile(ISystemProfile profile,
String newName,
boolean makeActive,
IProgressMonitor monitor)
Copy a SystemProfile. |
IHost |
createHost(IRSESystemType systemType,
String connectionName,
String hostAddress,
String description)
Create a connection object. |
IHost |
createHost(String profileName,
IRSESystemType systemType,
String connectionName,
String hostName,
String description)
Create a connection object. |
IHost |
createHost(String profileName,
IRSESystemType systemType,
String hostName,
String hostAddress,
String description,
boolean createSubSystems)
Create a host object. |
IHost |
createHost(String profileName,
IRSESystemType systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation,
ISubSystemConfigurator[] configurators)
Create a host object, sometimes called a "connection", given the containing profile and given all the possible attributes. |
IHost |
createLocalHost(ISystemProfile profile,
String name,
String userId)
Convenience method to create a local connection, as it often that one is needed for access to the local file system. |
ISubSystem[] |
createSubSystems(IHost host,
ISubSystemConfiguration[] configurations)
Creates subsystems for a given host and subsystem configurations. |
ISystemProfile |
createSystemProfile(String profileName,
boolean makeActive)
Create a SystemProfile given its name and whether or not to make it active Note that there are some naming restrictions on profile names. |
void |
deleteHost(IHost conn)
Delete an existing connection. |
boolean |
deleteSubSystem(ISubSystem subsystem)
Delete a subsystem object. |
void |
deleteSystemProfile(ISystemProfile profile)
Delete a SystemProfile. |
void |
disconnectAllSubSystems(IHost conn)
Disconnect all subsystems for the given connection, if they are currently connected. |
List |
findFilterReferencesFor(Object resource,
ISubSystem subsystem)
Returns filter references associated with this resource under the subsystem |
List |
findFilterReferencesFor(Object resource,
ISubSystem subsystem,
boolean onlyCached)
Returns filter references associated with this resource under the subsystem |
void |
fireEvent(ISystemModelChangeEvent event)
Notify all listeners of a change to a system model resource such as a connection. |
void |
fireEvent(ISystemModelChangeListener l,
ISystemModelChangeEvent event)
Notify a specific listener of a change to a system model resource such as a connection. |
void |
fireEvent(ISystemPreferenceChangeEvent event)
Notify all listeners of a change to a system preference You would not normally call this as the methods in this class call it when appropriate. |
void |
fireEvent(ISystemPreferenceChangeListener l,
ISystemPreferenceChangeEvent event)
Notify a specific listener of a change to a system preference |
void |
fireEvent(ISystemRemoteChangeEvent event)
Notify all listeners of a change to a remote resource such as a file. |
void |
fireEvent(ISystemRemoteChangeListener l,
ISystemRemoteChangeEvent event)
Notify a specific listener of a change to a remote resource such as a file. |
void |
fireEvent(ISystemResourceChangeEvent event)
Notify all listeners of a change to a system resource such as a connection. |
void |
fireEvent(ISystemResourceChangeListener l,
ISystemResourceChangeEvent event)
Notify a specific listener of a change to a system resource such as a connection. |
void |
fireModelChangeEvent(int eventType,
int resourceType,
Object resource,
String oldName)
Notify all listeners of a change to a system model resource such as a connection. |
void |
fireRemoteResourceChangeEvent(int eventType,
Object resource,
Object resourceParent,
ISubSystem subsystem,
String[] oldNames)
Notify all listeners of a change to a remote resource such as a file. |
void |
fireRemoteResourceChangeEvent(int eventType,
Object resource,
Object resourceParent,
ISubSystem subsystem,
String[] oldNames,
Object originatingViewer)
Notify all listeners of a change to a remote resource such as a file. |
void |
fireRemoteResourceChangeEvent(String operation,
int eventType,
Object resource,
Object resourceParent,
ISubSystem subsystem,
String[] oldNames)
Notify all listeners of a change to a remote resource such as a file. |
void |
fireRemoteResourceChangeEvent(String operation,
int eventType,
Object resource,
Object resourceParent,
ISubSystem subsystem,
String[] oldNames,
Object originatingViewer)
Notify all listeners of a change to a remote resource such as a file. |
String |
getAbsoluteNameForConnection(IHost host)
Return the absolute name for the specified host (connection) |
String |
getAbsoluteNameForSubSystem(ISubSystem subsystem)
Return the absolute name for the specified subsystem |
ISystemProfile[] |
getActiveSystemProfiles()
Return the profiles currently selected by the user as his "active" profiles |
Object[] |
getConnectionChildren(IHost selectedConnection)
This method is called by the connection adapter when the user expands a connection. |
IConnectorService[] |
getConnectorServices(IHost host)
Return the list of connector services currently configured for the given host |
IHost |
getHost(ISystemProfile profile,
String connectionName)
Return a SystemConnection object given a system profile containing it, and a connection name uniquely identifying it. |
Vector |
getHostAliasNames(ISystemProfile profile)
Return a vector of previously-used connection names in the given profile. |
Vector |
getHostAliasNamesForAllActiveProfiles()
Return a vector of previously-used connection names in all active profiles. |
int |
getHostCount()
Return the number of SystemConnection objects within all active profiles. |
int |
getHostCount(ISystemProfile profile)
Return the number of SystemConnection objects within the given profile. |
int |
getHostCountWithinProfile(IHost conn)
Return the number of SystemConnection objects within the given connection's owning profile. |
String[] |
getHostNames(IRSESystemType systemType)
Return array of previously specified host names for a given system type. |
int |
getHostPosition(IHost conn)
Return the zero-based position of a SystemConnection object within its profile. |
IHost[] |
getHosts()
Return all connections in all active profiles. |
IHost[] |
getHostsByProfile(ISystemProfile profile)
Return all connections in a given profile. |
IHost[] |
getHostsBySubSystemConfiguration(ISubSystemConfiguration config)
Return all connections for which there exists one or more subsystems owned by a given subsystem configuration. |
IHost[] |
getHostsBySubSystemConfigurationCategory(String factoryCategory)
Return all connections for which there exists one or more subsystems owned by any a given subsystem configuration that is of the given category. |
IHost[] |
getHostsBySystemType(IRSESystemType systemType)
Returns all connections for all active profiles, for the given system type. |
IHost[] |
getHostsBySystemTypes(IRSESystemType[] systemTypes)
Return all connections for all active profiles, for the given system types. |
Exception |
getLastException()
Return last exception object caught in any method, or null if no exception. |
IHost |
getLocalHost()
Return the first connection to the local host we can find. |
ISubSystem[] |
getServiceSubSystems(IHost host,
Class serviceType)
Get those subsystems that are registered against a given connection, which are service subsystems with the given serviceType. |
ISubSystem |
getSubSystem(String absoluteSubSystemName)
Resolve a subsystem from it's absolute name The absolute name of a subsystem is denoted by profileName. |
ISubSystemConfiguration |
getSubSystemConfiguration(String id)
Return the subsystem configuration, given its plugin.xml-declared id. |
ISubSystemConfigurationProxy[] |
getSubSystemConfigurationProxies()
Public method to retrieve list of subsystem configuration proxies registered by extension points. |
ISubSystemConfigurationProxy[] |
getSubSystemConfigurationProxiesByCategory(String configurationCategory)
Return all subsystem configuration proxies matching a subsystem configuration category. |
ISubSystemConfigurationProxy[] |
getSubSystemConfigurationProxiesBySystemType(IRSESystemType systemType)
Return all subsystem configuration proxies that are registered against the given system type. |
ISubSystemConfiguration[] |
getSubSystemConfigurations()
Deprecated. use getSubSystemConfigurationProxies() and filter
the list of needed subsystem configurations in order to
activate only those that are really needed. |
ISubSystemConfiguration[] |
getSubSystemConfigurationsBySystemType(IRSESystemType systemType,
boolean filterDuplicates)
Deprecated. Use getSubSystemConfigurationsBySystemType(IRSESystemType,boolean,boolean)
instead in order to avoid instantiating subsystem
configurations if possible. |
ISubSystemConfiguration[] |
getSubSystemConfigurationsBySystemType(IRSESystemType systemType,
boolean filterDuplicates,
boolean activate)
Return all subsystem configurations which support the given system type. |
ISubSystem[] |
getSubSystems(IHost host)
Return list of subsystem objects for a given host. |
ISubSystem[] |
getSubSystems(IHost host,
boolean force)
Deprecated. Use getSubSystems(IHost) instead, the "force" parameter is now ignored. |
ISubSystem[] |
getSubsystems(IHost host,
Class subsystemInterface)
Get those subsystems that are registered against a given connection, which are an instance of the given interface class. |
ISubSystem[] |
getSubSystemsBySubSystemConfigurationCategory(String factoryCategory,
IHost host)
Deprecated. use getSubSystemConfigurationProxiesByCategory(String)
and instantiate only those subsystem configurations from the proxy
that are really needed. Then, use ISubSystemConfiguration.getSubSystems(boolean)
with a parameter true. |
ISystemFilterStartHere |
getSystemFilterStartHere()
Get the SystemFilterStartHere singleton instance. |
ISystemProfile |
getSystemProfile(String profileName)
Get a SystemProfile given its name |
ISystemProfileManager |
getSystemProfileManager()
Return singleton profile manager |
boolean |
hasConnectionChildren(IHost selectedConnection)
This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection. |
void |
invalidateFiltersFor(ISubSystem subsystem)
Marks all filters for this subsystem as stale to prevent caching |
void |
invalidateFiltersFor(Object resourceParent,
ISubSystem subsystem)
Marks all filters for this subsystem that contain resourceParent as stale to prevent caching |
boolean |
isAnySubSystemConnected(IHost conn)
Return true if any of the subsystems for the given connection are currently connected. |
boolean |
isAnySubSystemSupportsConnect(IHost conn)
Return true if any subsystem supports connecting. |
boolean |
isRegisteredSystemRemoteChangeListener(ISystemRemoteChangeListener l)
Query if the ISystemRemoteChangeListener is already listening for SystemRemoteChange events. |
boolean |
isRegisteredSystemResourceChangeListener(ISystemResourceChangeListener l)
Query if the ISystemResourceChangeListener is already listening for SystemResourceChange events |
IHost |
moveHost(IHost conn,
ISystemProfile targetProfile,
String newName,
IProgressMonitor monitor)
Move a SystemConnection to another profile. |
void |
moveHosts(String profileName,
IHost[] conns,
int delta)
Move existing connections a given number of positions in the same profile. |
void |
removeSystemModelChangeListener(ISystemModelChangeListener l)
De-Register your interest in being told when an RSE model resource is changed. |
void |
removeSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
Unregister your interest in being told when a system preference changes |
void |
removeSystemRemoteChangeListener(ISystemRemoteChangeListener l)
Unregister your interest in being told when a remote resource is changed. |
void |
removeSystemResourceChangeListener(ISystemResourceChangeListener l)
De-Register your interest in being told when a system resource such as a connection is changed. |
void |
renameHost(IHost conn,
String newName)
Renames an existing connection. |
void |
renameSystemProfile(ISystemProfile profile,
String newName)
Rename a SystemProfile. |
boolean |
restore()
Restore all connections within active profiles |
boolean |
save()
Save everything! |
boolean |
saveHost(IHost conn)
Save specific connection |
boolean |
saveHostPool(ISystemHostPool pool)
Save specific connection pool |
void |
setHostOffline(IHost conn,
boolean offline)
Update the workoffline mode for a connection. |
void |
setSystemProfileActive(ISystemProfile profile,
boolean makeActive)
Make or unmake the given profile active. |
void |
updateHost(IHost host,
IRSESystemType systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Update an existing host given the new information. |
Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
---|
contains, isConflicting |
Methods inherited from interface org.eclipse.rse.core.model.ISystemViewInputProvider |
---|
getAdapter, getSystemViewRoots, getViewer, hasSystemViewRoots, setViewer, showingConnections |
Method Detail |
---|
ISystemFilterStartHere getSystemFilterStartHere()
ISubSystemConfigurationProxy[] getSubSystemConfigurationProxies()
ISubSystemConfigurationProxy[] getSubSystemConfigurationProxiesByCategory(String configurationCategory)
configurationCategory
- a subsystem configuration category.
ISubSystemConfigurationCategories
ISubSystemConfigurationProxy[] getSubSystemConfigurationProxiesBySystemType(IRSESystemType systemType)
systemType
- system type to filter
ISubSystemConfiguration[] getSubSystemConfigurations()
getSubSystemConfigurationProxies()
and filter
the list of needed subsystem configurations in order to
activate only those that are really needed.
ISubSystemConfiguration getSubSystemConfiguration(String id)
ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(IRSESystemType systemType, boolean filterDuplicates)
getSubSystemConfigurationsBySystemType(IRSESystemType,boolean,boolean)
instead in order to avoid instantiating subsystem
configurations if possible.
true
) which is preferred since we do not
want to load subsystem configurations unless necessary.
systemType
- system type to filterfilterDuplicates
- if true and the subsystem configuration uses
services then return only one subsystem configuration that
supports this service. Which configuration is returned is
undefined.
ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(IRSESystemType systemType, boolean filterDuplicates, boolean activate)
systemType
- system type to filterfilterDuplicates
- if true and the subsystem configuration uses
services then return only one subsystem configuration that
supports this service. Which configuration is returned is
undefined.activate
- if true activate the respective configurations if not
already active, if false return only those that are already
active.
Object[] getConnectionChildren(IHost selectedConnection)
getConnectionChildren
in interface ISystemViewInputProvider
selectedConnection
- the connection undergoing expansion
boolean hasConnectionChildren(IHost selectedConnection)
hasConnectionChildren
in interface ISystemViewInputProvider
selectedConnection
- the connection being shown in the viewer
ISystemProfileManager getSystemProfileManager()
ISystemProfile[] getActiveSystemProfiles()
ISystemProfileManager.getActiveSystemProfiles()
ISystemProfile getSystemProfile(String profileName)
ISystemProfile createSystemProfile(String profileName, boolean makeActive) throws Exception
Exception
ISystemProfile.setName(String)
ISystemProfile copySystemProfile(ISystemProfile profile, String newName, boolean makeActive, IProgressMonitor monitor) throws Exception
profile
- Source profile to copynewName
- Unique name to give copied profilemakeActive
- whether to make the copied profile active or notmonitor
- Progress monitor to reflect each step of the operation
Exception
ISystemProfile.setName(String)
void renameSystemProfile(ISystemProfile profile, String newName) throws Exception
Exception
ISystemProfile.setName(String)
void deleteSystemProfile(ISystemProfile profile) throws Exception
As well, all the filter pools for this profile are deleted, and subsequently any cross references from subsystems in connections in other profiles are removed.
A delete event is fired for every connection deleted.
Exception
void setSystemProfileActive(ISystemProfile profile, boolean makeActive)
IConnectorService[] getConnectorServices(IHost host)
host
- the host
ISubSystem[] getSubSystems(IHost host)
host
- the host for which to return the subsystems that are currently known.
ISubSystem[] getSubSystems(IHost host, boolean force)
getSubSystems(IHost)
instead, the "force" parameter is now ignored.
host
- the host for which to return the subsystems that are known.force
- if true, force the creation of subsystems for which the system type of this host is configured.
Use this parameter with care since it can cause extensive initialization.
ISubSystem[] getSubsystems(IHost host, Class subsystemInterface)
host
- the connection to checksubsystemInterface
- the interface class to filter against
ISubSystem[] getServiceSubSystems(IHost host, Class serviceType)
host
- the host to checkserviceType
- the class of service to ask for
ISubSystem getSubSystem(String absoluteSubSystemName)
absoluteSubSystemName
- the name of the subsystem
String getAbsoluteNameForSubSystem(ISubSystem subsystem)
subsystem
- the subsystem to query
String getAbsoluteNameForConnection(IHost host)
host
- the host (aka connection) object to query
ISubSystem[] getSubSystemsBySubSystemConfigurationCategory(String factoryCategory, IHost host)
getSubSystemConfigurationProxiesByCategory(String)
and instantiate only those subsystem configurations from the proxy
that are really needed. Then, use ISubSystemConfiguration.getSubSystems(boolean)
with a parameter true.
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file.
ISubSystemConfigurationCategories
boolean deleteSubSystem(ISubSystem subsystem)
IHost getLocalHost()
null
.
If one is needed, it can be created easily by calling
createLocalHost(ISystemProfile, String, String)
.
IHost[] getHosts()
IHost[] getHostsByProfile(ISystemProfile profile)
IHost[] getHostsBySubSystemConfiguration(ISubSystemConfiguration config)
getSubSystemConfiguration(String)
IHost[] getHostsBySubSystemConfigurationCategory(String factoryCategory)
This looks for a match on the "category" of the subsystem configuration's xml declaration in its plugin.xml file. Thus, it is efficient as it need not bring to life a subsystem configuration just to test its parent class type.
ISubSystemConfigurationCategories
IHost[] getHostsBySystemType(IRSESystemType systemType)
RSECorePlugin.getTheCoreRegistry().getSystemTypeById(String)
systemType
- The system type instance.
IHost[] getHostsBySystemTypes(IRSESystemType[] systemTypes)
RSECorePlugin.getTheCoreRegistry().getSystemTypeById(String)
IHost getHost(ISystemProfile profile, String connectionName)
int getHostPosition(IHost conn)
int getHostCount(ISystemProfile profile)
int getHostCountWithinProfile(IHost conn)
int getHostCount()
Vector getHostAliasNames(ISystemProfile profile)
Vector getHostAliasNamesForAllActiveProfiles()
String[] getHostNames(IRSESystemType systemType)
IHost createLocalHost(ISystemProfile profile, String name, String userId)
profile
- - the profile to create this connection in. If null is passed, we first
try to find the default private profile and use it, else we take the first active profile.name
- - the name to give this profile. Must be unique and non-null.userId
- - the user ID to use as the default for the subsystems. Can be null.IHost createHost(String profileName, IRSESystemType systemType, String connectionName, String hostName, String description, String defaultUserId, int defaultUserIdLocation, ISubSystemConfigurator[] configurators) throws Exception
This method:
profileName
- Name of the system profile the connection is to be added to.systemType
- system type matching one of the system types
defined via the systemTypes extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.defaultUserId
- userId to use as the default for the subsystems.defaultUserIdLocation
- one of the constants in IRSEUserIdConstants
that tells us where to store the user Idconfigurators
- these are the configurators supplied by the subsystem configurations that pertain to the specified system type. Else null.
Exception
IHost createHost(String profileName, IRSESystemType systemType, String connectionName, String hostName, String description) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE PROFILE YOU SPECIFY. THE PROFILE IS ALSO SAVED TO DISK.
This method:
profileName
- Name of the system profile the connection is to be added to.systemType
- system type matching one of the system types
defined via the systemTypes extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.
Exception
IHost createHost(IRSESystemType systemType, String connectionName, String hostAddress, String description) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE DEFAULT PRIVATE PROFILE, WHICH IS SAVED TO DISK.
This method:
systemType
- system type matching one of the system types
defined via the systemTypes extension point.connectionName
- unique connection name.hostAddress
- ip name of host.description
- optional description of the connection. Can be null.
Exception
IHost createHost(String profileName, IRSESystemType systemType, String hostName, String hostAddress, String description, boolean createSubSystems) throws Exception
profileName
- Name of the system profile to which the host is to be
added.systemType
- system type of the new host.hostName
- unique host name within the profile.hostAddress
- ip name of host.description
- optional description of the connection. May be null.createSubSystems
- true
to create subsystems for the
host, false
otherwise.
Exception
void updateHost(IHost host, IRSESystemType systemType, String connectionName, String hostName, String description, String defaultUserId, int defaultUserIdLocation)
host
- the host to be updatedsystemType
- system type matching one of the system types
defined via the systemTypes extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the host. Can be null.defaultUserId
- userId to use as the default for the subsystems under this host.defaultUserIdLocation
- one of the constants in IRSEUserIdConstants
that tells us where to set the user IdISubSystem[] createSubSystems(IHost host, ISubSystemConfiguration[] configurations)
host
- the host.configurations
- the subsystem configurations.
void setHostOffline(IHost conn, boolean offline)
conn
- SystemConnection to changeoffline
- true if connection should be set offline, false if it should be set onlinevoid deleteHost(IHost conn)
Lots to do here:
void renameHost(IHost conn, String newName) throws Exception
Lots to do here:
Exception
void moveHosts(String profileName, IHost[] conns, int delta)
conns
- Array of SystemConnections to move.delta
- new zero-based position for the connectionIHost copyHost(IHost conn, ISystemProfile targetProfile, String newName, IProgressMonitor monitor) throws Exception
conn
- The connection to copytargetProfile
- What profile to copy intonewName
- Unique name to give copied profilemonitor
- Progress monitor to reflect each step of the operation
Exception
IHost moveHost(IHost conn, ISystemProfile targetProfile, String newName, IProgressMonitor monitor) throws Exception
conn
- The connection to movetargetProfile
- What profile to move intonewName
- Unique name to give copied profile. Typically this is the same as the original name, but
will be different on name collisionsmonitor
- Progress monitor to reflect each step of the operation
Exception
boolean isAnySubSystemSupportsConnect(IHost conn)
conn
- the connection.
true
if any subsystem supports connecting, false
otherwise.boolean isAnySubSystemConnected(IHost conn)
boolean areAllSubSystemsConnected(IHost conn)
void disconnectAllSubSystems(IHost conn)
void connectedStatusChange(ISubSystem subsystem, boolean connected, boolean wasConnected)
void connectedStatusChange(ISubSystem subsystem, boolean connected, boolean wasConnected, boolean collapseTree)
void addSystemResourceChangeListener(ISystemResourceChangeListener l)
void removeSystemResourceChangeListener(ISystemResourceChangeListener l)
boolean isRegisteredSystemResourceChangeListener(ISystemResourceChangeListener l)
void fireEvent(ISystemResourceChangeEvent event)
void fireEvent(ISystemResourceChangeListener l, ISystemResourceChangeEvent event)
void addSystemModelChangeListener(ISystemModelChangeListener l)
void removeSystemModelChangeListener(ISystemModelChangeListener l)
void fireEvent(ISystemModelChangeEvent event)
void fireModelChangeEvent(int eventType, int resourceType, Object resource, String oldName)
void fireEvent(ISystemModelChangeListener l, ISystemModelChangeEvent event)
void addSystemRemoteChangeListener(ISystemRemoteChangeListener l)
void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l)
boolean isRegisteredSystemRemoteChangeListener(ISystemRemoteChangeListener l)
l
- the listener instance to checkvoid fireEvent(ISystemRemoteChangeEvent event)
void fireRemoteResourceChangeEvent(int eventType, Object resource, Object resourceParent, ISubSystem subsystem, String[] oldNames)
eventType
- - one of the constants from
ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the
resource as would be given by calling getAbsoluteName on its
remote adapterresourceParent
- - the remote resource's parent object, or absolute
name, if that is known. If it is non-null, this will aid in
refreshing occurrences of that parent.subsystem
- - the subsystem which contains this remote resource.
This allows the search for impacts to be limited to subsystems
of the same parent factory, and to connections with the same
hostname as the subsystem's connection.oldNames
- - on a rename, copy or move operation, these are the
absolute names of the resources prior to the operationvoid fireRemoteResourceChangeEvent(int eventType, Object resource, Object resourceParent, ISubSystem subsystem, String[] oldNames, Object originatingViewer)
eventType
- - one of the constants from
ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the
resource as would be given by calling getAbsoluteName on its
remote adapterresourceParent
- - the remote resource's parent object, or absolute
name, if that is known. If it is non-null, this will aid in
refreshing occurrences of that parent.subsystem
- - the subsystem which contains this remote resource.
This allows the search for impacts to be limited to subsystems
of the same parent factory, and to connections with the same
hostname as the subsystem's connection.oldNames
- - on a rename, copy or move operation, these are the
absolute names of the resources prior to the operationoriginatingViewer
- - optional. If set, this gives the viewer a clue
that it should select the affected resource after refreshing
its parent. This saves sending a separate event to reveal and
select the new created resource on a create event, for
example.void fireRemoteResourceChangeEvent(String operation, int eventType, Object resource, Object resourceParent, ISubSystem subsystem, String[] oldNames)
operation
- - the operation for which this event was firedeventType
- - one of the constants from
ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the
resource as would be given by calling getAbsoluteName on its
remote adapterresourceParent
- - the remote resource's parent object, or absolute
name, if that is known. If it is non-null, this will aid in
refreshing occurrences of that parent.subsystem
- - the subsystem which contains this remote resource.
This allows the search for impacts to be limited to subsystems
of the same parent factory, and to connections with the same
hostname as the subsystem's connection.oldNames
- - on a rename, copy or move operation, these are the
absolute names of the resources prior to the operationvoid fireRemoteResourceChangeEvent(String operation, int eventType, Object resource, Object resourceParent, ISubSystem subsystem, String[] oldNames, Object originatingViewer)
operation
- - the operation for which this event was firedeventType
- - one of the constants from
ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the
resource as would be given by calling getAbsoluteName on its
remote adapterresourceParent
- - the remote resource's parent object, or absolute
name, if that is known. If it is non-null, this will aid in
refreshing occurrences of that parent.subsystem
- - the subsystem which contains this remote resource.
This allows the search for impacts to be limited to subsystems
of the same parent factory, and to connections with the same
hostname as the subsystem's connection.oldNames
- - on a rename, copy or move operation, these are the
absolute names of the resources prior to the operationoriginatingViewer
- - optional. If set, this gives the viewer a clue
that it should select the affected resource after refreshing
its parent. This saves sending a separate event to reveal and
select the new created resource on a create event, for
example.void fireEvent(ISystemRemoteChangeListener l, ISystemRemoteChangeEvent event)
void addSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
void removeSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
void fireEvent(ISystemPreferenceChangeEvent event)
void fireEvent(ISystemPreferenceChangeListener l, ISystemPreferenceChangeEvent event)
List findFilterReferencesFor(Object resource, ISubSystem subsystem)
List findFilterReferencesFor(Object resource, ISubSystem subsystem, boolean onlyCached)
void invalidateFiltersFor(ISubSystem subsystem)
subsystem
- the subsystem to work onvoid invalidateFiltersFor(Object resourceParent, ISubSystem subsystem)
resourceParent
- a remote resource objectsubsystem
- the subsystem to work onException getLastException()
boolean save()
boolean saveHostPool(ISystemHostPool pool)
boolean saveHost(IHost conn)
boolean restore()
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |