Java Doc for Shm.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » tomcat » jni » 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.tomcat.jni 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tomcat.jni.Shm

Shm
public class Shm (Code)
Shm
author:
   Mladen Turk
version:
   $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $




Method Summary
native public static  longattach(String filename, long pool)
     Attach to a shared memory segment that was created by another process.
Parameters:
  filename - The file used to create the original segment.(This MUST match the original filename.)
Parameters:
  pool - the pool from which to allocate the shared memorystructure for this process.
native public static  longbaseaddr(long m)
     Retrieve the base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping.
Parameters:
  m - The shared memory segment from which to retrievethe base address.
native public static  ByteBufferbuffer(long m)
     Retrieve new ByteBuffer base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping.
Parameters:
  m - The shared memory segment from which to retrievethe base address.
native public static  longcreate(long reqsize, String filename, long pool)
     Create and make accessable a shared memory segment.
A note about Anonymous vs.
native public static  intdestroy(long m)
     Destroy a shared memory segment and associated memory.
native public static  intdetach(long m)
     Detach from a shared memory segment without destroying it.
native public static  intremove(String filename, long pool)
     Remove shared memory segment associated with a filename.
native public static  longsize(long m)
     Retrieve the length of a shared memory segment in bytes.



Method Detail
attach
native public static long attach(String filename, long pool) throws Error(Code)
Attach to a shared memory segment that was created by another process.
Parameters:
  filename - The file used to create the original segment.(This MUST match the original filename.)
Parameters:
  pool - the pool from which to allocate the shared memorystructure for this process. The created shared memory structure.



baseaddr
native public static long baseaddr(long m)(Code)
Retrieve the base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping.
Parameters:
  m - The shared memory segment from which to retrievethe base address. address, aligned by APR_ALIGN_DEFAULT.



buffer
native public static ByteBuffer buffer(long m)(Code)
Retrieve new ByteBuffer base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping.
Parameters:
  m - The shared memory segment from which to retrievethe base address. address, aligned by APR_ALIGN_DEFAULT.



create
native public static long create(long reqsize, String filename, long pool) throws Error(Code)
Create and make accessable a shared memory segment.
A note about Anonymous vs. Named shared memory segments:
Not all plaforms support anonymous shared memory segments, but in some cases it is prefered over other types of shared memory implementations. Passing a NULL 'file' parameter to this function will cause the subsystem to use anonymous shared memory segments. If such a system is not available, APR_ENOTIMPL is returned.
A note about allocation sizes:
On some platforms it is necessary to store some metainformation about the segment within the actual segment. In order to supply the caller with the requested size it may be necessary for the implementation to request a slightly greater segment length from the subsystem. In all cases, the apr_shm_baseaddr_get() function will return the first usable byte of memory.
Parameters:
  reqsize - The desired size of the segment.
Parameters:
  filename - The file to use for shared memory on platforms thatrequire it.
Parameters:
  pool - the pool from which to allocate the shared memorystructure. The created shared memory structure.



destroy
native public static int destroy(long m)(Code)
Destroy a shared memory segment and associated memory.
Parameters:
  m - The shared memory segment structure to destroy.



detach
native public static int detach(long m)(Code)
Detach from a shared memory segment without destroying it.
Parameters:
  m - The shared memory structure representing the segmentto detach from.



remove
native public static int remove(String filename, long pool)(Code)
Remove shared memory segment associated with a filename.
This function is only supported on platforms which support name-based shared memory segments, and will return APR_ENOTIMPL on platforms without such support.
Parameters:
  filename - The filename associated with shared-memory segment whichneeds to be removed
Parameters:
  pool - The pool used for file operations



size
native public static long size(long m)(Code)
Retrieve the length of a shared memory segment in bytes.
Parameters:
  m - The shared memory segment from which to retrievethe segment length.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.