You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2004/03/22 11:19:24 UTC

svn commit: rev 9661 - incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event

Author: akarasulu
Date: Mon Mar 22 02:19:23 2004
New Revision: 9661

Added:
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputEvent.java   (contents, props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputSubscriber.java   (contents, props changed)
Modified:
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/AbstractSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/ClientEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/ConnectEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/ConnectSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/DisconnectEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/DisconnectSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/InputEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/InputSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/RequestEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/RequestSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/ResponseEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/ResponseSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/SessionCreationEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/SessionCreationSubscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/SessionDestructionEvent.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/SessionDestructionListener.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/Subscriber.java   (props changed)
   incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/SubscriberMonitor.java   (props changed)
Log:
Added output event and subscriber and masssaged attributes

Added: incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputEvent.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputEvent.java	Mon Mar 22 02:19:23 2004
@@ -0,0 +1,50 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.eve.event ;
+
+
+import java.nio.ByteBuffer ;
+
+import org.apache.eve.listener.ClientKey ;
+
+
+/**
+ * An event used to denote output to send to a client.  The output event
+ * only connotates that data is available for output but not yet delivered.  
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class OutputEvent extends ClientEvent
+{
+    /** the data to send */
+    private final ByteBuffer buf ;
+
+    
+    public OutputEvent( Object source, ClientKey clientKey, ByteBuffer buf )
+    {
+        super( source, clientKey ) ;
+        this.buf = buf ;
+    }
+    
+
+    public ByteBuffer getBuffer()
+    {
+        return buf ;
+    }
+}

Added: incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputSubscriber.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/common/api/src/java/org/apache/eve/event/OutputSubscriber.java	Mon Mar 22 02:19:23 2004
@@ -0,0 +1,29 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.eve.event ;
+
+
+/**
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public interface OutputSubscriber extends Subscriber
+{
+    void inform( OutputEvent event ) ;
+}