activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r616811 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
Date Wed, 30 Jan 2008 16:42:39 GMT
Author: rajdavies
Date: Wed Jan 30 08:42:39 2008
New Revision: 616811

URL: http://svn.apache.org/viewvc?rev=616811&view=rev
Log: (empty)

Added:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
  (with props)

Added: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java?rev=616811&view=auto
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
(added)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
Wed Jan 30 08:42:39 2008
@@ -0,0 +1,53 @@
+/**
+ * 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.activemq.transport.failover;
+
+import java.net.URI;
+
+import org.apache.activemq.transport.Transport;
+
+public class BackupTransport {
+	private Transport transport;
+	private URI uri;
+	public Transport getTransport() {
+		return transport;
+	}
+	public void setTransport(Transport transport) {
+		this.transport = transport;
+	}
+	public URI getUri() {
+		return uri;
+	}
+	public void setUri(URI uri) {
+		this.uri = uri;
+	}
+	
+	public int hashCode() {
+		return uri != null ? uri.hashCode():-1;
+	}
+	
+	public boolean equals(Object obj) {
+		if (obj instanceof BackupTransport) {
+			BackupTransport other = (BackupTransport) obj;
+			return uri== null && other.uri==null || 
+				(uri != null && other.uri != null && uri.equals(other.uri));
+		}
+		return false;
+	}
+}

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/failover/BackupTransport.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message