|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.core.ModelManager
public class ModelManager
Model manager for resource manager framework.
| Constructor Summary | |
|---|---|
ModelManager()
|
|
| Method Summary | |
|---|---|
void |
addListener(IResourceManagerListener listener)
Add a listener for resource manager events. |
void |
addResourceManager(org.eclipse.ptp.rmsystem.IResourceManager rm)
Add a resource manager to the model. |
void |
addResourceManagers(org.eclipse.ptp.rmsystem.IResourceManager[] rms)
Add resource managers to the model. |
org.eclipse.ptp.rmsystem.IResourceManagerConfiguration |
createBaseConfiguration(IServiceProvider provider)
Create a base configuration from the given service provider |
org.eclipse.ptp.rmsystem.IResourceManagerComponentConfiguration |
createControlConfiguration(IServiceProvider provider)
Create a control configuration from the given service provider |
org.eclipse.ptp.rmsystem.IResourceManagerComponentConfiguration |
createMonitorConfiguration(IServiceProvider provider)
Create a monitor configuration from the given service provider |
void |
fireResourceManagerChanged(org.eclipse.ptp.rmsystem.IResourceManager rm)
Fire an event to notify that a resource manager has changed |
void |
fireResourceManagerError(org.eclipse.ptp.rmsystem.IResourceManager rm,
java.lang.String message)
Fire an event to notify that a resource manager error has occurred |
java.lang.String |
getControlFactoryId(java.lang.String rmId)
|
static ModelManager |
getInstance()
|
java.lang.String |
getMonitorFactoryId(java.lang.String rmId)
|
org.eclipse.ptp.rmsystem.IResourceManager |
getResourceManagerFromUniqueName(java.lang.String rmUniqueName)
Find the resource manager with the supplied unique name |
org.eclipse.ptp.rmsystem.IResourceManager[] |
getResourceManagers()
Get resource managers from the model. |
org.eclipse.ptp.core.elements.IPUniverse |
getUniverse()
|
void |
handleEvent(IResourceManagerErrorEvent e)
|
void |
loadResourceManagers()
Loads saved resource managers. |
void |
removeListener(IResourceManagerListener listener)
Remove listener for resource manager events. |
void |
removeResourceManager(org.eclipse.ptp.rmsystem.IResourceManager rm)
Remove a resource manager from the model. |
void |
removeResourceManagers(org.eclipse.ptp.rmsystem.IResourceManager[] rms)
Remove resource managers from the model. |
void |
saveResourceManagers()
Save the resource manager configurations |
void |
shutdown()
|
void |
start()
|
void |
stopResourceManagers()
stops all of the resource managers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelManager()
| Method Detail |
|---|
public void addListener(IResourceManagerListener listener)
IModelManager
addListener in interface IModelManagerpublic void addResourceManager(org.eclipse.ptp.rmsystem.IResourceManager rm)
IModelManager
addResourceManager in interface IModelManagerpublic void addResourceManagers(org.eclipse.ptp.rmsystem.IResourceManager[] rms)
IModelManager
addResourceManagers in interface IModelManagerpublic org.eclipse.ptp.rmsystem.IResourceManagerConfiguration createBaseConfiguration(IServiceProvider provider)
provider - service provider
public org.eclipse.ptp.rmsystem.IResourceManagerComponentConfiguration createControlConfiguration(IServiceProvider provider)
provider - service provider
public org.eclipse.ptp.rmsystem.IResourceManagerComponentConfiguration createMonitorConfiguration(IServiceProvider provider)
provider - service provider
public void fireResourceManagerChanged(org.eclipse.ptp.rmsystem.IResourceManager rm)
rm - rm that has changed
public void fireResourceManagerError(org.eclipse.ptp.rmsystem.IResourceManager rm,
java.lang.String message)
rm - rm that caused the errormessage - error messagepublic java.lang.String getControlFactoryId(java.lang.String rmId)
public java.lang.String getMonitorFactoryId(java.lang.String rmId)
public org.eclipse.ptp.rmsystem.IResourceManager getResourceManagerFromUniqueName(java.lang.String rmUniqueName)
IModelManager
getResourceManagerFromUniqueName in interface IModelManagerpublic org.eclipse.ptp.rmsystem.IResourceManager[] getResourceManagers()
IModelManager
getResourceManagers in interface IModelManagerpublic org.eclipse.ptp.core.elements.IPUniverse getUniverse()
getUniverse in interface IModelPresentationpublic void handleEvent(IResourceManagerErrorEvent e)
public void loadResourceManagers()
throws org.eclipse.core.runtime.CoreException
IModelManagerServiceModelManager. This method now just
starts any resource managers that require autostart.
loadResourceManagers in interface IModelManagerorg.eclipse.core.runtime.CoreExceptionpublic void removeListener(IResourceManagerListener listener)
IModelManager
removeListener in interface IModelManagerpublic void removeResourceManager(org.eclipse.ptp.rmsystem.IResourceManager rm)
IModelManager
removeResourceManager in interface IModelManagerpublic void removeResourceManagers(org.eclipse.ptp.rmsystem.IResourceManager[] rms)
IModelManager
removeResourceManagers in interface IModelManagerpublic void saveResourceManagers()
IModelManager
saveResourceManagers in interface IModelManager
public void shutdown()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void start()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void stopResourceManagers()
throws org.eclipse.core.runtime.CoreException
IModelManager
stopResourceManagers in interface IModelManagerorg.eclipse.core.runtime.CoreExceptionpublic static ModelManager getInstance()
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||