01: /*
02: * $Id: JSSThreadPool.java,v 1.6 2005/11/30 11:27:27 ss150821 Exp $
03: * $Source: /m/portal/ps/srap/src/com/sun/portal/rproxy/https/JSSThreadPool.java,v $
04: * $Log: JSSThreadPool.java,v $
05: * Revision 1.6 2005/11/30 11:27:27 ss150821
06: * 6356996 - Srap Code base needs to save files in the unix file format and not windows
07: *
08: * Revision 1.5 2005/02/23 09:02:01 ss150821
09: * RFE 6223490 - SRA Should use JDK based logging
10: *
11: * Revision 1.4 2005/02/23 08:59:23 ss150821
12: * RFE 6223490 - SRA Should use JDK based logging
13: *
14: * Revision 1.3 2004/07/27 12:58:28 vt126379
15: * RFE#5075809, CRT#99
16: *
17: * Revision 1.2 2002/06/21 13:04:14 bv131302
18: * LDAP Attribute name changes
19: *
20: * Revision 1.1 2002/06/14 09:53:57 rt130506
21: * SRAP rebranding
22: *
23: * Revision 1.3 2002/06/12 07:55:59 bv131302
24: * more rebranding - filenames
25: *
26: * Revision 1.2 2002/06/11 16:02:09 bv131302
27: * new branded
28: *
29: * Revision 1.1 2002/05/28 09:38:18 mm132998
30: * Bug id - 4692062 , CRT - 1215 , Desc - Support for iDSAME in https mode.
31: *
32: *
33: */
34: /*
35: * @(#)GWThreadPool.java 1.1 00/10/16
36: *
37: * Copyright (c) 10/16/00 Sun Microsystems, Inc. All Rights Reserved.
38: */
39:
40: package com.sun.portal.rproxy.https;
41:
42: import java.util.logging.Level;
43: import java.util.logging.Logger;
44:
45: import com.sun.portal.log.common.PortalLogger;
46: import com.sun.portal.rproxy.configservlet.client.GatewayProfile;
47: import com.sun.portal.util.ThreadPool;
48:
49: public class JSSThreadPool {
50:
51: private static int threadPoolSize;
52:
53: private static ThreadPool threadPool;
54:
55: // private static Logger logger =
56: // Logger.getLogger("com.sun.portal.sra.rproxy");
57: private static Logger logger = PortalLogger
58: .getLogger(JSSThreadPool.class);
59:
60: static {
61: threadPoolSize = GatewayProfile
62: .getInt("MaxThreadPoolSize", 200);
63: // threadPoolSize = Integer.getInteger("ips.jssThreadPoolSize",
64: // 200).intValue();
65: // logger.info("JSSThreadPool: size = " + threadPoolSize);
66: Object[] params0 = { new Integer(threadPoolSize) };
67: logger.log(Level.INFO, "PSSRRPROXY_CSPRH010", params0);
68: threadPool = new ThreadPool("JSSThreadPool", threadPoolSize,
69: true, null);
70: }
71:
72: public static void run(Runnable task) throws InterruptedException {
73: threadPool.run(task);
74: }
75: }
|