My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Tungsten Scale-Out Stack
* Copyright (C) 2007-2009 Continuent Inc.
* Contact: tungsten@continuent.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
* Initial developer(s): Teemu Ollakka
* Contributor(s): Robert Hodges
*/

package com.continuent.tungsten.replicator.filter;

import com.continuent.tungsten.replicator.ReplicatorException;
import com.continuent.tungsten.replicator.event.ReplDBMSEvent;
import com.continuent.tungsten.replicator.plugin.ReplicatorPlugin;

/**
*
* This class defines a Filter
*
* @author <a href="mailto:teemu.ollakka@continuent.com">Teemu Ollakka</a>
* @version 1.0
*/
public interface Filter extends ReplicatorPlugin
{
/**
* Filter the event. Filters may transform the event or return null if the
* event should be discarded. Filters must be prepared to be interrupted,
* which mechanism is used to cancel processing.
* <p>
*
* @param event An event to be filtered
* @return Filtered ReplDBMSEvent or null
* @throws ReplicatorException Thrown if there is a processing error
* @throws InterruptedException Must be thrown if the filter is interrupted
* or the replicator may hang
*/
public ReplDBMSEvent filter(ReplDBMSEvent event)
throws ReplicatorException, InterruptedException;
}

Change log

r1 by gilles.rayrat on Mar 17, 2011   Diff
Initial import
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1931 bytes, 52 lines
Powered by Google Project Hosting