Design question about Coherence as a event source

Hi Guys,
could you please help me with designing the following use case in the CEP way?
I have a Coherence cluster with several types of objects. Each object has its state. I would like to generate a specific warning event whenever the state of the object in Coherence has not changed in specific amount of time and store it back into Coherence (different named cache).
Is this something that can be implemented in CEP? How the flow in CEP would look like?
Kind Regards,
Martin

Martin,
You need to write a class that implements com.tangosol.util.MapListener interface and use that as a <wlevs:cache-listener> to the cache you configure in CEP spring file. The class must also be an event source, which sends insert events for cache update and insert events from Coherence (entryInserted, entryUpdated). These events must be sent to a downstream processor which has a non-event detection query configured. You can find more info for writing such a query at http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e12048/pattern_recog.htm.
Hope that helps,
Manju.

Similar Messages

  • Design question about when to use inner classes for models

    This is a general design question about when to use inner classes or separate classes when dealing with table models and such. Typically I'd want to have everything related to a table within one classes, but looking at some tutorials that teach how to add a button to a table I'm finding that you have to implement quite a sophisticated tablemodel which, if nothing else, is somewhat unweildy to put as an inner class.
    The tutorial I'm following in particular is this one:
    http://www.devx.com/getHelpOn/10MinuteSolution/20425
    I was just wondering if somebody can give me their personal opinion as to when they would place that abstracttablemodel into a separate class and when they would just have it as an inner class. I guess re-usability is one consideration, but just wanted to get some good design suggestions.

    It's funny that you mention that because I was comparing how the example I linked to above creates a usable button in the table and how you implemented it in another thread where you used a ButtonColumn object. I was trying to compare both implementations, but being a newbie at this, they seemed entirely different from each other. The way I understand it with the example above is that it creates a TableRenderer which should be able to render any component object, then it sets the defaultRenderer to the default and JButton.Class' renderer to that custom renderer. I don't totally understand your design in the thread
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=680674
    quite yet, but it's implemented in quite a bit different way. Like I was saying the buttonClass that you created seem to be creating an object of which function I don't quite see. It looks more like a method, but I'm still trying to see how you did it, since it obviously worked.
    Man adding a button to a table is much more difficult than I imagined.
    Message was edited by:
    deadseasquirrels

  • Design question about instant download from

    Hi All,
    Here is a design question for you:
    Background:
    The application we built is being upgraded from time to time and we send it to our users.
    our users use it on a network so there is only one file to upgrade (and being done by the sys admin)
    We send them a �patch�; actually, it�s a new version of the application they place it in the relevant folder and continue to work with a new version.
    Problems:
    1. We send them the patch via email - sometimes it takes a while until they read their email and at they are using an �old version of the system�.
    2. Some of them are not computer savvy (when it�s not the sys admin) and we need to guide them as where exactly to place the file (there are 3 files)
    Our (conceptual never build yet) Solution:
    Build a program just like Norton antivirus (or other) that prompts the user from the task bar (next to the clock) that a new version is available and by
    clicking once it will automatically download the file and store it in the correct folder.
    Question:
    1. Did anyone try anything like this before (or something like) who can tell me about it?
    2. Do you think this kind of system will work for us?
    3. Does anyone have a better solution?
    Thanks
    Peter

    Java WebStart is the deployment technique suited for your purposes.
    The deployment will be done via a webserver running a jnlp servlet (provided).
    The applications may either run offline, or check online for automatic updates.
    You have several configuration options.
    ArgoUML and jEdit are two open source apps delivered this way.
    Your app will need to be adapted though.
    And your customers need an online browser with installed jvm.

  • Design question about instant download a patch

    Hi All,
    Here is a design question for you:
    Background:
    The application we built is being upgraded from time to time and we send it to our users.
    our users use it on a network so there is only one file to upgrade (and being done by the sys admin)
    We send them a �patch�; actually, it�s a new version of the application they place it in the relevant folder and continue to work with a new version.
    Problems:
    1. We send them the patch via email - sometimes it takes a while until they read their email and at they are using an �old version of the system�.
    2. Some of them are not computer savvy (when it�s not the sys admin) and we need to guide them as where exactly to place the file (there are 3 files)
    Our (conceptual never build yet) Solution:
    Build a program just like Norton antivirus (or other) that prompts the user from the task bar (next to the clock) that a new version is available and by
    clicking once it will automatically download the file and store it in the correct folder.
    Question:
    1. Did anyone try anything like this before (or something like) who can tell me about it?
    2. Do you think this kind of system will work for us?
    3. Does anyone have a better solution?
    Thanks
    Peter

    thanks, I posted it there.No, he meant that Webstart is the mechanism you should use. It supports net-based distribution and automatic centralized updates of apps. Exactly what you want.

  • Design question about SNASw, DLSW and VDLC

    Hello,
    I have a question about Ethernet redundancy in an APPN environment.
    Let's have an example with 3 routers running SNASw that are on the SAME LAN (no vlans) as the Mainframe's OSA (one OSA only). APPN is configured on the Mainframe.
    Using DLSw+, all downstream PUs are connected to the 3 routers. Can I define in the VDLC interface of each router the SAME MAC address, and this MAC address be the destination MAC of the downstream PUs?

    Hi,
    yes, headend routers are the ones in front of the OSA/mainframe.
    If you replace a tokenring with ethernet in the data center/headend, than the snasw dlsw solution is almost perfect for you. If you use hpr/ip to connect upstream to the host you are all set.
    In that case you dont advertise any mac addresses on the local ethernet between the snasw/dlsw routers and the osa since it is hpr/ip. Basicaly ip routing only.
    From the clients perspective, they dont really know that there is a change since you replicate the old tokenring mac address as vdlc mac address/snasw port and the end systems still connect to them like they did before.
    In respect to dlsw ethernet redundancy we have to be a bit carefull not to mix the scenarios.
    Dlsw ethernet redundancy is designed for the branch. Not the data center.
    If you use dlsw ethernet redundancy with ethernet switches, and in almost all cases today ethernet means ethernet switches, you configure a mac address mapping between artificiall local mac addresses and your real remote mac address of the host.
    On each router you configure a unique local mac address. Than you point half of your end systems dmac to the local mac address configured on router1 and the other half to the local mac address configured on router2. That way you achive load balancing.
    The two routers exchange their mapping and in case router1 looses the connection to router2, router1 will activate the mapping it learned from router2 aswell and then take over those circuits additional.
    If you decide that you configure on router1 the local mac address equal to the remote mac address, because you have a large number of clients and can not simply change the damc's on all of them, than you need to configure a "dummy" mapping on router2 and router1 will get all the circuits in this example. router2 would be purely for redundancy in case router1 goes down.
    If you think about this than it is clear why dlsw ethernet redundancy is designed for the branch. In the branch we map local to remote mac addresses and the remote mac addresses are the hosts. Typically there are only a limited number of host mac addresses to map.
    If you turn this around and put dlsw ethernet redundancy on the host end than you have to map all clients. If you have only one or two clients this is certainly doable. But if you have a large nuber of clients this is simply not manageable.
    thanks...
    Matthias

  • Question about HP 2311xi - auto-switch source and delay wakeup from sleep

    I recently purchased this monitor and noticed that when it wakes from sleep it will take about 5-10 seconds for it to wake whereas other monitors I've owned they have gone on immediately.  I was just wondering if this is how this monitor is or if I have an issue with it.  
    Secondly, how is the auto-switch source suppose to work?  I have my PC set to DVI and I have the default source set to my 360 through the HDMI connection.  I would assume that when the 360 goes on it would go to the default source and switch over to the hdmi connection.  However, my monitor does nothing.  What does the auto-switch source actually do or is mine just defective?  
    Thanks in advance for any help on this monitor.  
    This question was solved.
    View Solution.

    Auto-switch source only works if there is no signal as it detects the port with a signal and auto switches to that port.  However, the monitor has no way of knowing exactly which port the user wants when two signals are present.
    Default port setting is what the monitor will look for first when being turned on and doesn't necessarily give that port override capabilities. 
    Taking 5-10 seconds can be normal.  My third-party monitor at home generally takes about 5 seconds before displaying a signal, but this may have more to do with the HDMI connection (I haven't tested this with the VGA port).  I don't believe this is a cause for concern. 
    Let me know if I answered your questions. 
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Few questions about the 1.0 event handling model....

    Do you people know under what circumstances the action() method is called from handleEvent?? I mean, even a mouseDown can be an action...
    btw. action(event evt, Object what), 'what' is an action that is going to perform, according to my tutorial, but I never see a sample code applying this.... any explanation how it is used???
    thanks al0t

    has any one learned Java about 8, 9 yrs ago??
    Is it the reason that none of you have learned event
    model at version 1.0?I started when only JDK 1.0.2 was available, and I used the old event model but I haven't used it since -98. I have forgot most about it. :(
    The best thing is to just create a small app, and print all events which arrive.
    Why do you want to use the old model?
    /Kaj

  • Question about generate key press event to system. help plz.

    I am wondering if it is possible to write a java program to generate key press event(not receiving)to the local system so all the other program in the system receive those key press event also. Thanks.

    Hi,
    :. I don't know what exactly you intend to accomplish. But, I have used the following code in order to simulate keys pressing inside a Java application.
          /* - - - Simulates TAB (java.awt.Event)
          EventQueue evtq = Toolkit.getDefaultToolkit().getSystemEventQueue();
          evtq.postEvent( new KeyEvent(this, KeyEvent.KEY_PRESSED,
                          0, 0, KeyEvent.VK_TAB, KeyEvent.CHAR_UNDEFINED) );
          evtq.postEvent( new KeyEvent(this, KeyEvent.KEY_RELEASED,
                          0, 0, KeyEvent.VK_TAB, KeyEvent.CHAR_UNDEFINED) );
          /* - - - Simulates Shift+TAB (java.awt.Event)
          evtq.postEvent( new KeyEvent(this, KeyEvent.KEY_PRESSED, 0,
                          InputEvent.SHIFT_DOWN_MASK, KeyEvent.VK_TAB,
                          KeyEvent.CHAR_UNDEFINED) );
          evtq.postEvent( new KeyEvent(this, KeyEvent.KEY_RELEASED, 0,
                          InputEvent.SHIFT_DOWN_MASK, KeyEvent.VK_TAB,
                          KeyEvent.CHAR_UNDEFINED) );:. However, as far as I know to send keys to the whole OS you have to create a 'Hook' as described inside Win32API documentation. That's for Microsoft Windows naturaly.
    Cheers.
    Roque

  • Newbie question about extracting data from events

    HI
    i am sure there is a simple solution to this, but I am getting frsutrated  trying to extract useful data from an event:
    I have set up and event listner, whatching for CHANGE on a HorizontalList
    so far so good, event handler called when a list item is clicked, and the event is passed, but what is the syntax for getting the in particular the columnIndex, which can tantalising be seen as part of the event in debug.
        public function ShowGroupTab(event:Event):void{
                var a:Number =event.target.columnIndex;
    causes this runtime error:
    ReferenceError: Error #1069: Property columnIndex not found on mx.controls.HorizontalList and there is no default value.

    First it would be better to cast your event in the proper class. In this case the event is a ListEvent. ListEvent extends Event so your code will work but be harder to maintain.
    Your problem is that you're trying to access the columnIndex property on the event.target instead of the event itself. The event.target is the component on which the action was performed, here it's a HorizontalList, and the list does not have a columnIndex property.
    Try this :
    public function showGroupTab(event:ListEvent):void{
         var a:int= event.columnIndex;

  • Design question about using DHCP for an SSID

    I've got an SSID that I would like to send out to a public subnet (wifi for guests in the building) but because it's public i don't want to waste a lot of addresses.  So i'm considering a DMZ-type area for the clients to get a RFC1918 address with a single address on the outside.
    Something like this:
    Clients -> WLC4402 -> 10.x.x.xpool -> ??? -> Public subnet
    I know the WLC can dish out my 10.x.x.x subnet to the clients. But my question is the ??? between that and a single IP address and the Public subnet.
    The WLC can't handle that part can it?
    Obviously i could just use a simple linksys router or something to handle that and the ip address pool, but i was hoping there was something in the WLC that can handle it all for me.
    Ideas?  Suggestions?
    Thanks in Advance!

    I guess you are looking for the NAT on the WLC.. this feature is not der on WLC yet.. the WLC acts as a perfect layer 2 device.. this is done only on the layer 3 device currently..
    let me know if this answers your question!!
    Regards
    Surendra

  • A few general questions about sequences, framerates (fps), audio sources

    If I create a sequence in Pro that is 23.976fps, matching my audo from Canon T2i shot with 24fps... and an audio with 48hz... and then if I import an audio (music) with 44hz..
    does it affect my output settings?
    Another question. If i have 23.976fps sequence, and I output it for Vimeo (which they say should be 30fps) does it have ANY effect on video/audio synchronzation?

    PrPro can handle most common Audio Sample Rates, like 44.1KHz @ 16-bit, and will Conform those Assets to edit in a 48KHz 16-bit Project. Other than an extra moment of the Conforming process, should not be an issue. This ARTICLE will give you some background on Conforming and Indexing.
    Good luck,
    Hunt

  • Database design question about historical data in a group of tables

    Hi Folks,
    I have a group of tables having relationships among them. In order to keep the change history, we can not update the data, instead, we add new data to the table(s) and mark older data as whatever non-current status. They all have timestamps in these tables.
    For example, If table Parent changes, we add new record Parent(new) and keep older record(s). But the table child has not changed, so how could we link the parent and child table(s)?
    One solution is to use a unique sequencial number to identify the snapshot of all these group of tables, so the FK contains this sequencial number to keep all tables in sync from point of time t1 to t2 and so on.
    But the problem is if only one table changes, we have to insert new records to ALL tables with the new sequencial number to indicate a new snapshot of all group of tables, this obviously has lots of redundancy when change occurs in one place only.
    However, If we only adds new records to a changed table, lets say Parent, how could we distinguish the current record in Parent table and its child tables to reflect a consistent snapshot of all tables? Because the record in parent table Parent(t2), Parent(t1) all associate to child(t1), since at time of t2, child table has not changed, only Parent table changed.
    Your opinions are appreciated!
    Thanks a lot.

    There are books on the subject of dealing with time series data. You may need to read one or two as this is a very complex topic. Though not applications of time series classification are complex it is difficult to tell based on what information can go in a post.
    What has to be reflected on the parent when a child row is changed? Do both the old child row and the new child row belong to the same parent?
    What activity at the parent level would affect the child rows? That is, is there any activty on the parent that requires new child rows to be populated?
    One way of tying the child rows to a specific set of parents would be to carry the parent key, timestamp to the child as a begin_parent_timestamp and then also potentially have a end timestamp if a change to a parent ends the relationship. If changes to the parent do not ever end the relationsip then the end_timestamp would not be necessary. In this case if you want to join a parent to only the most recent version of a child you can perform a select parent kye, child key, max(parent_timestamp) from child group by parent key, child key. One child row would match serveral parents.
    Without more specifics it is hard to make suggestions that might prove usable but your table relationships might be too complex to deal with in this kind of forum.
    There is a newsgroup on database theory that may be a good place to seek ideas on this type of problem.
    HTH -- Mark D Powell --

  • Design question about APs and WLC

    We need to know if (and how if possible) a WLC may control several APs, configured in a parallel grid array as bridges:
    CPD---AP(l)------air---------AP(r)---AP(nb)
       |--AP(l)-------air--------AP(r)---AP(nb)
       |--AP(l)-------air--------AP(r)---AP(nb)
    The AP(r) right are non-root, the AP(l) left are the root connected to the CPD, there may be several bridge. We need to control all of them, specially the ones in the right = AP(r) of the bridge. And of course the AP(nb)= non-bridge
    We would want to know if we can regulate how the right antenaes connect to the left. Right antenaes need to be on a moving platform, and there is no possible interconnection among the AP(r).

    We need to know if (and how if possible) a WLC may control several APs, configured in a parallel grid array as bridges:
    CPD---AP(l)------air---------AP(r)---AP(nb)
       |--AP(l)-------air--------AP(r)---AP(nb)
       |--AP(l)-------air--------AP(r)---AP(nb)
    The AP(r) right are non-root, the AP(l) left are the root connected to the CPD, there may be several bridge. We need to control all of them, specially the ones in the right = AP(r) of the bridge. And of course the AP(nb)= non-bridge
    We would want to know if we can regulate how the right antenaes connect to the left. Right antenaes need to be on a moving platform, and there is no possible interconnection among the AP(r).

  • Design Question for table - related columns

    Hi,
    I have some design question about table I am working on.
    Here are the sample fields in the table,
    process_begin_date
    process_approved_by
    process_signed_by
    process_monitor
    process_communication
    the same way I have around 10 groups, for ex
    other_begin_date
    other_approved_by
    other_signed_by
    other_email
    other_something
    Question: Is good have all 50 fields in the same table? or any better idea?

    Hi,
    Number of columns should not be any issue, but, proper normalization may be better for your design and scalability. If you can explain what you are storing in this table, you might get help if you need to have more than 2 tables in this particular scenario.
    If all these fields are related to a single entity, probably this single table is already normalized and needs not to be replaced by two tables.
    Salman

  • A few questions about the design of the scheme

    Hello, all!
    I want ask some question about design of the scheme.
    1) If i store info about user (for example: /Smith/Bob - /phone values{+1 964 258 46 52}), i can request information by user (input parameters: /Smith/Bob - /phone, output:+1 964 258 46 52), but if i want get username by phone i must generate in store second string /19642584652 values{Smith Bob}. But I must duplicate any string - very prodigally. Are existing some work aruond?
    2) if i want store some string with different minor key i put: ( /Smith/Bob - /phone, /Smith/Bob - /image, /Smith/Bob - /adress), but i already get duplicate date. Are existing any compressin major`s key? If yes - how it works
    3) Are existing in Oracle NoSQL something like secondary index? If exist - how it works?
    4) If i want get value by major key, im use get function(for example /Smith/Bob - /phone). How works searching algoritm? What mathematical basis of search?

    >
    So, some a few clarifying questions.
    1) Request comes from the client(to cluster). It identifies the major key. And any rep group understand: contained in it is this line?
    2) If contains - they use b-tree map to find the right key (as local index in Oracle DB).
    Is it correct?
    >
    No. Please read the doc and the other forum threads. They explain this issue.
    >
    Can i use any different algoritm to search, different indexes(function based) for example (on step 2)?
    >
    No.
    when the expected release of this option?Oracle employees cannot talk about future release dates and contents.
    What algorithm used to compress the prefix of the key. And how it work`s.If you're interested in the implementation details you can read the BDB JE documentation on key prefixing and the BDB JE source code. See com.sleepycat.je.DatabaseConfig.setKeyPrefixing.
    http://docs.oracle.com/cd/E17277_02/html/index.html
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Internal error (-2014) Goods Issue with Batch Items added through UI

    Hello Experts, I've added a button to my Production Order screen labeled 'Issue Components' that is meant to streamline the process, and it works, except when the ProdOrder has Batch controlled items on it. When that happens it returns Internal error

  • Printer prints images too small

    Whenever i try and print an image, or even a text selection, the printer prints out the image or selection in a small form. (only takes up a little of a corner of the top left of the page.) Im not sure of how to adjust the setting to make it where im

  • Can't seem to capture video clip

    I just upgraded from Final Cut Express HD to Final Cut Pro 4.5 HD. I'm using a Sony DCR-TRV320 as the pass thru between my VCR and my Mac. Using Final Cut Express, I have no problem capturing my video. But in FCP, I can view the video on my screen un

  • Robohelp 8 won't display PDFs in Windows 7

    Hi, I am having trouble with a .chm project that was created for Windows XP use that now needs to work with Windows7. I have tested the functionality of the project and everything but the PDFs works properly. It gives me a blank screen with an x in t

  • "Rep-0999 Unimplemented Error" while converting a report to PDF format...

    i have developed a number of complex reports with several queries and formula objects, all running successfully and converting to other formats accuratelly. i have report of Accounts Receivables, a complex one, running near about 10 queries and 7 for