Java Doc for Shm.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » jk » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » org.apache.jk.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jk.common.JniHandler
   org.apache.jk.common.Shm

All known Subclasses:   org.apache.jk.common.Shm14,
Shm
public class Shm extends JniHandler (Code)
Handle the shared memory objects.
author:
   Costin Manolache


Field Summary
final static  intSHM_DUMP
    
final static  intSHM_RESET
    
final static  intSHM_WRITE_SLOT
    
 StringdumpFile
    
 Stringfile
    
 Vectorgroups
    
 booleanhelp
    
 Stringhost
    
 intport
    
 booleanreset
    
 intsize
    
 StringunixSocket
    
 booleanunregister
    

Constructor Summary
public  Shm()
    

Method Summary
public  voiddestroy()
    
public  voiddumpScoreboard(String fname)
    
public  voidexecute()
    
public  voidinit()
    
public  voidinitCli()
    
public  intinvoke(Msg msg, MsgContext ep)
    
public static  voidmain(String args)
    
public  voidregisterTomcat(String host, int port, String unixDomain)
    
public  voidresetScoreboard()
    
public  voidsetDump(String dumpFile)
     Copy the scoreboard in a file for debugging Will also log a lot of information about what's in the scoreboard.
public  voidsetFile(String f)
    
public  voidsetGroup(String grp)
    
public  voidsetHelp(boolean b)
    
public  voidsetHost(String host)
    
public  voidsetPort(int port)
    
public  voidsetReset(boolean b)
     Set this to get the scoreboard reset.
public  voidsetSize(int size)
     Size.
public  voidsetUnixSocket(String unixSocket)
     Unix socket where tomcat is listening.
public  voidsetUnregister(boolean unregister)
     Set this option to mark the tomcat instance as 'down', so apache will no longer forward messages to it.
public  voidunRegisterTomcat(String host, int port)
    

Field Detail
SHM_DUMP
final static int SHM_DUMP(Code)



SHM_RESET
final static int SHM_RESET(Code)



SHM_WRITE_SLOT
final static int SHM_WRITE_SLOT(Code)



dumpFile
String dumpFile(Code)



file
String file(Code)



groups
Vector groups(Code)



help
boolean help(Code)



host
String host(Code)



port
int port(Code)



reset
boolean reset(Code)



size
int size(Code)



unixSocket
String unixSocket(Code)



unregister
boolean unregister(Code)




Constructor Detail
Shm
public Shm()(Code)




Method Detail
destroy
public void destroy() throws IOException(Code)



dumpScoreboard
public void dumpScoreboard(String fname) throws IOException(Code)



execute
public void execute()(Code)



init
public void init() throws IOException(Code)



initCli
public void initCli() throws IOException(Code)
Local initialization - for standalone use



invoke
public int invoke(Msg msg, MsgContext ep) throws IOException(Code)



main
public static void main(String args)(Code)



registerTomcat
public void registerTomcat(String host, int port, String unixDomain) throws IOException(Code)
Register a tomcat instance XXX make it more flexible



resetScoreboard
public void resetScoreboard() throws IOException(Code)



setDump
public void setDump(String dumpFile)(Code)
Copy the scoreboard in a file for debugging Will also log a lot of information about what's in the scoreboard.



setFile
public void setFile(String f)(Code)
Scoreboard location



setGroup
public void setGroup(String grp)(Code)
Mark this instance as belonging to a group



setHelp
public void setHelp(boolean b)(Code)



setHost
public void setHost(String host)(Code)
Ajp13 host



setPort
public void setPort(int port)(Code)
Ajp13 port



setReset
public void setReset(boolean b)(Code)
Set this to get the scoreboard reset. The shm segment will be destroyed and a new one created, with the provided size. Requires "file" and "size".



setSize
public void setSize(int size)(Code)
Size. Used only if the scoreboard is to be created.



setUnixSocket
public void setUnixSocket(String unixSocket)(Code)
Unix socket where tomcat is listening. Use it only if tomcat is on the same host, of course



setUnregister
public void setUnregister(boolean unregister)(Code)
Set this option to mark the tomcat instance as 'down', so apache will no longer forward messages to it. Note that requests with a session will still try this host first. This can be used to implement gracefull shutdown. Host and port are still required, since they are used to identify tomcat.



unRegisterTomcat
public void unRegisterTomcat(String host, int port) throws IOException(Code)



Fields inherited from org.apache.jk.common.JniHandler
final public static int JK_HANDLE_JNI_DISPATCH(Code)(Java Doc)
final public static int JK_HANDLE_SHM_DISPATCH(Code)(Java Doc)
final public static int MB_NOTE(Code)(Java Doc)
final public static int MSG_NOTE(Code)(Java Doc)
protected AprImpl apr(Code)(Java Doc)
protected String jkHome(Code)(Java Doc)
protected long nativeJkHandlerP(Code)(Java Doc)

Methods inherited from org.apache.jk.common.JniHandler
public void appendString(Msg msg, String s, C2BConverter charsetDecoder) throws IOException(Code)(Java Doc)
public MsgContext createMsgContext()(Code)(Java Doc)
public void destroyJkComponent() throws IOException(Code)(Java Doc)
public String getJkHome()(Code)(Java Doc)
public void init() throws IOException(Code)(Java Doc)
public void initJkComponent() throws IOException(Code)(Java Doc)
protected void initNative(String nativeComponentName)(Code)(Java Doc)
public int invoke(Msg msg, MsgContext ep) throws IOException(Code)(Java Doc)
protected int nativeDispatch(Msg msg, MsgContext ep, int code, int raw) throws IOException(Code)(Java Doc)
public void pause() throws Exception(Code)(Java Doc)
protected void recycleNative(MsgContext ep)(Code)(Java Doc)
public void resume() throws Exception(Code)(Java Doc)
public void setJkHome(String s)(Code)(Java Doc)
public void setNativeAttribute(String name, String val) throws IOException(Code)(Java Doc)
protected void setNativeEndpoint(MsgContext msgCtx)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.