Author: rajith
Date: Mon Jun 16 16:09:07 2014
New Revision: 1602912

URL: http://svn.apache.org/r1602912
Log:
PROTON-589 Interfaces to facilitate passive mode.

Added:
    
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Listener.java
    
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Selectable.java
Modified:
    
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Messenger.java

Added: 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Listener.java
URL: 
http://svn.apache.org/viewvc/qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Listener.java?rev=1602912&view=auto
==============================================================================
--- 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Listener.java
 (added)
+++ 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Listener.java
 Mon Jun 16 16:09:07 2014
@@ -0,0 +1,37 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.qpid.proton.messenger;
+
+
+public interface Listener
+{
+    String getHost();
+
+    int getPort();
+
+    void close();
+
+    boolean isClosed();
+    
+    void markCompleted();
+
+    boolean isCompleted();
+}
\ No newline at end of file

Modified: 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Messenger.java
URL: 
http://svn.apache.org/viewvc/qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Messenger.java?rev=1602912&r1=1602911&r2=1602912&view=diff
==============================================================================
--- 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Messenger.java
 (original)
+++ 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Messenger.java
 Mon Jun 16 16:09:07 2014
@@ -21,6 +21,7 @@
 package org.apache.qpid.proton.messenger;
 
 import java.io.IOException;
+import java.util.List;
 
 import org.apache.qpid.proton.TimeoutException;
 import org.apache.qpid.proton.message.Message;
@@ -276,4 +277,11 @@ public interface Messenger
      */
     String getTrustedCertificates();
 
+    void setPassive(boolean b);
+
+    boolean isPassive();
+    
+    List<? extends Selectable> getSelectables();
+    
+    List<? extends Listener> getListeners();
 }

Added: 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Selectable.java
URL: 
http://svn.apache.org/viewvc/qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Selectable.java?rev=1602912&view=auto
==============================================================================
--- 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Selectable.java
 (added)
+++ 
qpid/proton/branches/rajith-messenger-passive/proton-j/src/main/java/org/apache/qpid/proton/messenger/Selectable.java
 Mon Jun 16 16:09:07 2014
@@ -0,0 +1,42 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.qpid.proton.messenger;
+
+import org.apache.qpid.proton.engine.Transport;
+
+public interface Selectable
+{
+    String getHost();
+
+    int getPort();
+
+    Transport getTransport();
+
+    boolean isConnected();
+
+    void markConnected();
+
+    boolean isClosed();
+
+    void markCompleted();
+
+    boolean isCompleted();
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to