Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2005-06-11 06:41:43 +0000
committerslewis2005-06-11 06:41:43 +0000
commitd088a557096f1cf6a3cb15bf192f947ecc8f2a6d (patch)
tree6412d0b8415dad9879dc745058735f4618cbc2c8 /framework/bundles/org.eclipse.ecf.discovery/src
parentf13d57615b5aa728dbde318122c60452a4589829 (diff)
downloadorg.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.tar.gz
org.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.tar.xz
org.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.zip
Added constructor for ServiceInfo class
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.discovery/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
index 9a910203c..59cdb0aef 100644
--- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
+++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
@@ -25,6 +25,13 @@ public class ServiceInfo implements IServiceInfo, Serializable {
int weight;
Map properties;
+ public ServiceInfo(InetAddress address, String type, int port, int priority, int weight, Map props) {
+ this.addr = address;
+ this.serviceID = new ServiceID(type,null);
+ this.port = port;
+ this.weight = weight;
+ this.properties = props;
+ }
public ServiceInfo(InetAddress address, ServiceID id, int port,
int priority, int weight, Map props) {
this.addr = address;

Back to the top