Source Code Cross Referenced for ClusterNotification.java in  » Cache » OSCache » com » opensymphony » oscache » plugins » clustersupport » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Cache » OSCache » com.opensymphony.oscache.plugins.clustersupport 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright (c) 2002-2003 by OpenSymphony
03:         * All rights reserved.
04:         */
05:        package com.opensymphony.oscache.plugins.clustersupport;
06:
07:        import java.io.Serializable;
08:
09:        /**
10:         * A notification message that holds information about a cache event. This
11:         * class is <code>Serializable</code> to allow it to be sent across the
12:         * network to other machines running in a cluster.
13:         *
14:         * @author <a href="&#109;a&#105;&#108;&#116;&#111;:chris&#64;swebtec.&#99;&#111;&#109;">Chris Miller</a>
15:         * @author $Author: dres $
16:         * @version $Revision: 254 $
17:         */
18:        public class ClusterNotification implements  Serializable {
19:            /**
20:             * Specifies a notification message that indicates a particular cache key
21:             * should be flushed.
22:             */
23:            public static final int FLUSH_KEY = 1;
24:
25:            /**
26:             * Specifies a notification message that indicates an entire cache group
27:             * should be flushed.
28:             */
29:            public static final int FLUSH_GROUP = 2;
30:
31:            /**
32:             * Specifies a notification message that indicates all entries in the cache
33:             * that match the specified pattern should be flushed.
34:             */
35:            public static final int FLUSH_PATTERN = 3;
36:
37:            /**
38:             * Specifies a notification message indicating that an entire cache should
39:             * be flushed.
40:             */
41:            public static final int FLUSH_CACHE = 4;
42:
43:            /**
44:             * Any additional data that may be required
45:             */
46:            protected Serializable data;
47:
48:            /**
49:             * The type of notification message.
50:             */
51:            protected int type;
52:
53:            /**
54:             * Creates a new notification message object to broadcast to other
55:             * listening nodes in the cluster.
56:             *
57:             * @param type       The type of notification message. Valid types are
58:             *                   {@link #FLUSH_KEY} and {@link #FLUSH_GROUP}.
59:             * @param data       Specifies the object key or group name to flush.
60:             */
61:            public ClusterNotification(int type, Serializable data) {
62:                this .type = type;
63:                this .data = data;
64:            }
65:
66:            /**
67:             * Holds any additional data that was required
68:             */
69:            public Serializable getData() {
70:                return data;
71:            }
72:
73:            /**
74:             * The type of notification message.
75:             */
76:            public int getType() {
77:                return type;
78:            }
79:
80:            public String toString() {
81:                StringBuffer buf = new StringBuffer();
82:                buf.append("type=").append(type).append(", data=").append(data);
83:
84:                return buf.toString();
85:            }
86:        }
www.java2java.com | Contact Us
Copyright 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.