Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-03-23 04:34:10 +0000
committerslewis2009-03-23 04:34:10 +0000
commitfdfe9af5cd856134cfa3001578ceee7255b39107 (patch)
treed6c21a110ee184734622762279dd444d805f66bd /providers/bundles
parentd23c90e0b7392518556de6d0b3407f381f0f8a76 (diff)
downloadorg.eclipse.ecf-fdfe9af5cd856134cfa3001578ceee7255b39107.tar.gz
org.eclipse.ecf-fdfe9af5cd856134cfa3001578ceee7255b39107.tar.xz
org.eclipse.ecf-fdfe9af5cd856134cfa3001578ceee7255b39107.zip
Added system property for default timeout
Diffstat (limited to 'providers/bundles')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteCallImpl.java21
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceImpl.java2
2 files changed, 8 insertions, 15 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteCallImpl.java b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteCallImpl.java
index 1caa347df..0ce1df9a1 100644
--- a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteCallImpl.java
+++ b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteCallImpl.java
@@ -10,37 +10,30 @@ package org.eclipse.ecf.provider.remoteservice.generic;
import java.io.Serializable;
import java.util.Arrays;
-
import org.eclipse.ecf.core.sharedobject.SharedObjectMsg;
import org.eclipse.ecf.remoteservice.IRemoteCall;
-public class RemoteCallImpl extends SharedObjectMsg implements IRemoteCall,
- Serializable {
+public class RemoteCallImpl extends SharedObjectMsg implements IRemoteCall, Serializable {
private static final long serialVersionUID = 1L;
- private static final long DEFAULT_REMOTE_CALL_TIMEOUT = 30000;
+ private static final long DEFAULT_REMOTE_CALL_TIMEOUT = new Long(System.getProperty("ecf.remotecall.timeout", "30000")).longValue(); //$NON-NLS-1$ //$NON-NLS-2$
long timeout = DEFAULT_REMOTE_CALL_TIMEOUT;
- public static RemoteCallImpl createRemoteCall(String clazz, String method,
- Object[] parameters, long timeout) {
+ public static RemoteCallImpl createRemoteCall(String clazz, String method, Object[] parameters, long timeout) {
return new RemoteCallImpl(clazz, method, parameters, timeout);
}
- public static RemoteCallImpl createRemoteCall(String clazz, String method,
- Object[] parameters) {
- return RemoteCallImpl.createRemoteCall(clazz, method, parameters,
- DEFAULT_REMOTE_CALL_TIMEOUT);
+ public static RemoteCallImpl createRemoteCall(String clazz, String method, Object[] parameters) {
+ return RemoteCallImpl.createRemoteCall(clazz, method, parameters, DEFAULT_REMOTE_CALL_TIMEOUT);
}
public static RemoteCallImpl createRemoteCall(String clazz, String method) {
- return RemoteCallImpl.createRemoteCall(clazz, method, null,
- DEFAULT_REMOTE_CALL_TIMEOUT);
+ return RemoteCallImpl.createRemoteCall(clazz, method, null, DEFAULT_REMOTE_CALL_TIMEOUT);
}
- protected RemoteCallImpl(String clazz, String method, Object[] parameters,
- long timeout) {
+ protected RemoteCallImpl(String clazz, String method, Object[] parameters, long timeout) {
super(clazz, method, parameters);
this.timeout = timeout;
}
diff --git a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceImpl.java b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceImpl.java
index 99e703e0c..4dc5b9de2 100644
--- a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceImpl.java
+++ b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RemoteServiceImpl.java
@@ -21,7 +21,7 @@ import org.eclipse.osgi.util.NLS;
public class RemoteServiceImpl implements IRemoteService, InvocationHandler {
- protected static final long DEFAULT_TIMEOUT = 30000;
+ protected static final long DEFAULT_TIMEOUT = new Long(System.getProperty("ecf.remotecall.timeout", "30000")).longValue(); //$NON-NLS-1$ //$NON-NLS-2$
protected RemoteServiceRegistrationImpl registration = null;

Back to the top