|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object posix.IPC
public abstract class IPC
The base class of the SysV derived posix IPC methods.
Nested Class Summary | |
---|---|
static class |
IPC.Perm
Permission structure for SysV IPC resources. |
Field Summary | |
---|---|
static int |
egid
The effective gid of the JVM when this class was initialized. |
static int |
euid
The effective uid of the JVM when this class was initialized. |
protected int |
id
|
static int |
IPC_ALLOC
Mode bits for various IPC functions. |
static int |
IPC_CI
Mode bits for various IPC functions. |
static int |
IPC_CREAT
Mode bits for various IPC functions. |
static int |
IPC_EXCL
Mode bits for various IPC functions. |
static int |
IPC_NOCLEAR
Mode bits for various IPC functions. |
static int |
IPC_NOWAIT
Mode bits for various IPC functions. |
static int |
IPC_PHYS
Mode bits for various IPC functions. |
static int |
IPC_PRIVATE
Mode bits for various IPC functions. |
protected boolean |
owner
|
static int |
pid
The posix process id for the process of this JVM. |
Constructor Summary | |
---|---|
IPC()
|
Method Summary | |
---|---|
void |
dispose()
|
void |
finalize()
|
static int |
ftok(String path,
int id)
Return an IPC key from a pathname and an id. |
int |
getId()
|
IPC.Perm |
getPerm()
|
abstract IPC.Perm |
getStatus()
Return the permissions for this IPC data structure. |
static boolean |
isPidValid(int pid)
|
abstract void |
remove()
Remove this IPC data structure from the system. |
void |
setPerm(int uid,
int gid,
int mode)
Set the uid, gid, mode for this IPC data structure. |
abstract void |
setPerm(IPC.Perm st)
Set attributes for this IPC data structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
protected boolean owner
public static final int pid
public static final int euid
public static final int egid
public static final int IPC_PRIVATE
public static final int IPC_ALLOC
public static final int IPC_CREAT
public static final int IPC_EXCL
public static final int IPC_NOWAIT
public static final int IPC_CI
public static final int IPC_NOCLEAR
public static final int IPC_PHYS
Constructor Detail |
---|
public IPC()
Method Detail |
---|
public static boolean isPidValid(int pid)
public int getId()
public static int ftok(String path, int id)
public abstract IPC.Perm getStatus() throws IPCException
IPCException
public IPC.Perm getPerm() throws IPCException
IPCException
public abstract void setPerm(IPC.Perm st) throws IPCException
st
- a status obtained from getPerm()
for this IPC and modified
IPCException
public void setPerm(int uid, int gid, int mode) throws IPCException
IPCException
public abstract void remove()
public void dispose()
public void finalize()
finalize
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |