|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.ServerPluginService
public class ServerPluginService
This is the singleton management service responsible for managing the lifecycle of the
MasterServerPluginContainer. It will be started when the entire server starts and shutdown when the entire
server shuts down. It has a management interface to allow it to be recycled on demand when desired.
| Field Summary |
|---|
| Fields inherited from interface org.rhq.enterprise.server.plugin.pc.ServerPluginServiceManagement |
|---|
OBJECT_NAME, OBJECT_NAME_STR |
| Constructor Summary | |
|---|---|
ServerPluginService()
|
|
| Method Summary | |
|---|---|
protected MasterServerPluginContainer |
createMasterPluginContainer()
This will create, configure and initialize the plugin container and return it. |
MasterServerPluginContainer |
getMasterPluginContainer()
Returns the master server plugin container that will be responsible for managing all plugins of all types and their classloaders. |
File |
getServerPluginsDirectory()
Returns the directory where the server plugins are found. |
boolean |
isMasterPluginContainerStarted()
Returns true if the master plugin container has be started. |
boolean |
isStarted()
Returns true if this service has been started. |
void |
restartMasterPluginContainer()
Convienence method that first does a ServerPluginServiceManagement.stopMasterPluginContainer() and then a ServerPluginServiceManagement.startMasterPluginContainer(). |
void |
start()
Starts the service but will not start the master plugin container. |
void |
startMasterPluginContainer()
Starts the master plugin container which will load in all plugins, start them and then
schedule all jobs for all plugins. |
void |
startMasterPluginContainerWithoutSchedulingJobs()
Similar to ServerPluginServiceManagement.startMasterPluginContainer(), but this will not tell the master plugin container
to schedule any jobs yet. |
void |
stop()
Shuts down this service along with the master plugin container. |
void |
stopMasterPluginContainer()
Stops the master plugin container which will shuts down all plugins. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerPluginService()
| Method Detail |
|---|
public void start()
ServerPluginServiceManagementmaster plugin container. After the server
fully initializes, it should only then start the master server-side plugin container.
start in interface ServerPluginServiceManagementpublic void startMasterPluginContainer()
ServerPluginServiceManagementmaster plugin container which will load in all plugins, start them and then
schedule all jobs for all plugins. You cannot start the plugin container unless this service has
been started. If the master plugin container is already started,
this does nothing and returns. You must ensure the job scheduler is started prior to calling this method.
startMasterPluginContainer in interface ServerPluginServiceManagementServerPluginServiceManagement.startMasterPluginContainerWithoutSchedulingJobs()public void stopMasterPluginContainer()
ServerPluginServiceManagementmaster plugin container which will shuts down all plugins. If the master
plugin container is already shutdown, this does nothing and returns.
stopMasterPluginContainer in interface ServerPluginServiceManagementpublic void stop()
ServerPluginServiceManagementmaster plugin container.
stop in interface ServerPluginServiceManagementpublic void restartMasterPluginContainer()
ServerPluginServiceManagementServerPluginServiceManagement.stopMasterPluginContainer() and then a ServerPluginServiceManagement.startMasterPluginContainer().
restartMasterPluginContainer in interface ServerPluginServiceManagementpublic void startMasterPluginContainerWithoutSchedulingJobs()
ServerPluginServiceManagementServerPluginServiceManagement.startMasterPluginContainer(), but this will not tell the master plugin container
to schedule any jobs yet. Usually this is only
called when the server itself is starting up and it wants to start the master PC but it has not yet
started the scheduler. In this case, after this method is called, the caller must ensure the scheduler is
started and then tell the master PC to schedule all its plugin jobs.
startMasterPluginContainerWithoutSchedulingJobs in interface ServerPluginServiceManagementServerPluginServiceManagement.startMasterPluginContainer()public MasterServerPluginContainer getMasterPluginContainer()
ServerPluginServiceManagement
getMasterPluginContainer in interface ServerPluginServiceManagementnull if not startedpublic boolean isStarted()
ServerPluginServiceManagementtrue if this service has been started. This does not necessarily mean the
master plugin container has be started - see ServerPluginServiceManagement.isMasterPluginContainerStarted() for that.
isStarted in interface ServerPluginServiceManagementtrue if this service has been startedpublic boolean isMasterPluginContainerStarted()
ServerPluginServiceManagementtrue if the master plugin container has be started.
Note that this is not an indication if this service has started - see ServerPluginServiceManagement.isStarted() for that.
But, if the master plugin container has been started, then by definition this service has also been started.
isMasterPluginContainerStarted in interface ServerPluginServiceManagementtrue if the master plugin container has been startedpublic File getServerPluginsDirectory()
ServerPluginServiceManagement
getServerPluginsDirectory in interface ServerPluginServiceManagementprotected MasterServerPluginContainer createMasterPluginContainer()
This is protected to allow subclasses to override the PC that is created by this service (mainly to support tests).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||