[jboss-cvs] jboss-seam/src/main/org/jboss/seam/remoting ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Feb 14 04:05:38 EST 2007
User: sbryzak2
Date: 07/02/14 04:05:38
Modified: src/main/org/jboss/seam/remoting Remoting.java
Removed: src/main/org/jboss/seam/remoting RemotingConfig.java
Log:
RemotingConfig merged with Remoting
Revision Changes Path
1.3 +43 -4 jboss-seam/src/main/org/jboss/seam/remoting/Remoting.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Remoting.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/Remoting.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Remoting.java 14 Feb 2007 07:38:40 -0000 1.2
+++ Remoting.java 14 Feb 2007 09:05:38 -0000 1.3
@@ -33,6 +33,15 @@
@Intercept(NEVER)
public class Remoting extends AbstractResource
{
+ public static final int DEFAULT_POLL_TIMEOUT = 10; // 10 seconds
+ public static final int DEFAULT_POLL_INTERVAL = 1; // 1 second
+
+ private int pollTimeout = DEFAULT_POLL_TIMEOUT;
+
+ private int pollInterval = DEFAULT_POLL_INTERVAL;
+
+ private boolean debug = false;
+
/**
* We use a Map for this because a Servlet can serve requests for more than
* one context path.
@@ -67,13 +76,13 @@
sb.append(getResourcePath());
sb.append("\";");
sb.append("\nSeam.Remoting.debug = ");
- sb.append(RemotingConfig.instance().getDebug() ? "true" : "false");
+ sb.append(getDebug() ? "true" : "false");
sb.append(";");
sb.append("\nSeam.Remoting.pollInterval = ");
- sb.append(RemotingConfig.instance().getPollInterval());
+ sb.append(getPollInterval());
sb.append(";");
sb.append("\nSeam.Remoting.pollTimeout = ");
- sb.append(RemotingConfig.instance().getPollTimeout());
+ sb.append(getPollTimeout());
sb.append(";");
cachedConfig.put(contextPath, sb.toString().getBytes());
@@ -172,4 +181,34 @@
log.error(String.format("Resource [%s] not found.", resourceName));
}
}
+
+ public int getPollTimeout()
+ {
+ return pollTimeout;
+ }
+
+ public void setPollTimeout(int pollTimeout)
+ {
+ this.pollTimeout = pollTimeout;
+ }
+
+ public int getPollInterval()
+ {
+ return pollInterval;
+ }
+
+ public void setPollInterval(int pollInterval)
+ {
+ this.pollInterval = pollInterval;
+ }
+
+ public boolean getDebug()
+ {
+ return debug;
+ }
+
+ public void setDebug(boolean debug)
+ {
+ this.debug = debug;
+ }
}
More information about the jboss-cvs-commits
mailing list