package com.boundary.camel.component.common;

/**
 * 
 * @author davidg
 *
 */
public class ServiceInfo {
	
	private ServiceStatus status;
	private String message;
	private String host;
	private int port;
	
	public ServiceInfo() {
		status = ServiceStatus.SUCCESS;
	}
	
	public void setStatus(ServiceStatus status) {
		this.status = status;
	}
	
	public ServiceStatus getStatus() {
		return this.status;
	}
	
	public void setMessage(String message) {
		this.message = message;
	} 
	
	public String getMessage() {
		return this.message;
	}
	
	public void setHost(String host) {
		this.host = host;
	}
	
	public String getHost() {
		return this.host;
	}
	
	public void setPort(int port) {
		this.port = port;
	}
	
	public int getPort() {
		return this.port;
	}


}

@@ -130,16 +130,40 @@
 s status
+ = ServiceStatus.SUCCESS
 ;%0A%09priva
@@ -179,16 +179,23 @@
  message
+ = %22OK%22
 ;%0A%09priva
@@ -208,16 +208,30 @@
 ing host
+ = %22localhost%22
 ;%0A%09priva
@@ -245,69 +245,68 @@
 port
-;%0A%09%0A%09public ServiceInfo() %7B%0A%09%09status = ServiceStatus.SUCCESS;
+ = 7;%0A%09private int timeOut = 5000;%0A%09%0A%09public ServiceInfo() %7B
 %0A%09%7D%0A
@@ -797,11 +797,135 @@
 rt;%0A%09%7D%0A%0A
+%09public void setTimeout(int timeOut) %7B%0A%09%09this.timeOut = timeOut;%0A%09%7D%0A%09%0A%09public int getTimeout() %7B%0A%09%09return this.timeOut;%0A%09%7D%0A%0A
 %0A%7D%0A

Add infor to base service class