#1  
Old 2nd June 2013, 12:47
tom123 tom123 is offline
Member
 
Join Date: Feb 2012
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default Plugin architecture

Hi,
i've seen that plugins are called by events. Each plugin will subscribe for an event and then called when this event is triggerd.

This is good, but how can I get a feedback from the plugin? Are plugin able to send back a response to the caller or the communication is just in one-way ISPConfig -> Plugin only ?

For example, what happens if some plugin actions doesn't work as expected ? How can I get this from ISPConfig ?

next question: modules announce some events and then each module will register itself for some database table changes. Each db change will trigger one or more event (announced by modules) that will call the plugin ?

For example:
- module web announce an event called "web_domain_insert"
- module web register for web_domain db table change. On each change it will trigger the "process" method inside itself
- module web process method will trigger an event "web_domain_insert"
- the event "web_domain_insert" is detected by plugin "apache2_plugin" that was listening for that event due to the method "onLoad"

In this way, each module is able to create custom events, trigger some events based on db changes and plugins are able to trigger some action due to the event registration, right?
Reply With Quote
Sponsored Links
  #2  
Old 2nd June 2013, 13:48
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
Default

You can not ive feedback rrom a plugin o the interface as the events are called asyncronously. But ispconfig supports custom events, so what you described in the second part can be done within the ispconfig event model. These kind of events are called actions and are available in modules and server plugins beside the "classic" database table events. Actions work similar to the table events, the ifference is that plugins can register actions and can define the data that is passed to a action when the plugin is loaded and the same ir anoher plugin can register "listen" for these actions or trigger them.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 2nd June 2013, 22:38
tom123 tom123 is offline
Member
 
Join Date: Feb 2012
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So, ISPConfig is never able to know if hosting is created properly, right?
Reply With Quote
  #4  
Old 3rd June 2013, 10:47
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
 
Default

Quote:
Originally Posted by tom123 View Post
So, ISPConfig is never able to know if hosting is created properly, right?
It depends on the type of the error. If a fatal error occurred, then processing of the jobqueue gets stopped and the client and admin can see in the interface that the job is not processed. If minor problems occurred, then they are logged into the ispconfig log for the admin to review them.

As jobs are not processed in realtime (they are asnychronous) and ispconfig is a multiserver controlpanel, so the jobs dont get processed on the same server or even the same datacenter you cant get reatime feedback in the interface.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spamassasin markasjunk2 roundcube plugin HyperAtom General 1 17th November 2012 20:19
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
Spamsnake - Problem with spamassassin, FuzzyOcr and MySQL debuguser HOWTO-Related Questions 6 16th September 2008 18:37
Spamassassin not working hairydog2 General 7 12th July 2008 21:15


All times are GMT +2. The time now is 10:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.