public class POSIXPermission extends RealtimePermission
Signal
and
RealtimeSignal
. The following table describes the actions for
checking the use of signals. A signal name or *
can be given as the
target.
Action Name | Description | Risks of grant |
---|---|---|
handle | Adds a handle to the given signal. | Load Risk |
override | Removes a handler that belongs to another scheduling group. | Interference Risk |
send | Sends a given signal. | External Risk |
control | Starts or stops this signal. | Scheduling Risk |
system | Changes system's wide signalling behavior. | Scheduling and Load Risk |
*
is allowed for both signal and action.
The risk classes are defined in RealtimePermission
.Constructor and Description |
---|
POSIXPermission(String actions)
Creates a new
POSIXPermission object for a given action,
i.e., the symbolic name of an action. |
POSIXPermission(String target,
String actions)
Creates a new
POSIXPermission object for a given action,
i.e., the symbolic name of an action. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compare two Permission objects for equality.
|
String |
getActions()
Obtain the actions as a String in canonical form.
|
int |
hashCode()
Obtain the hash code value for this object.
|
boolean |
implies(Permission permission)
Checks if the given permission's actions are "implied by" this
object's actions.
|
checkGuard, getName, newPermissionCollection, toString
public POSIXPermission(String target, String actions)
POSIXPermission
object for a given action,
i.e., the symbolic name of an action. The target
string
specifies for which POSIX signal the action applies.NullPointerException
- when actions
is null
.StaticIllegalArgumentException
- when target
or action
is empty.target
- Specifies the domain for the action, or *
for no limit on the permission.actions
- The names of the actions to allow, or *
for all actions.public POSIXPermission(String actions)
POSIXPermission
object for a given action,
i.e., the symbolic name of an action.NullPointerException
- when actions
is null
.StaticIllegalArgumentException
- when actions
is empty.actions
- The names of the actions to allow, or *
for all actions.public boolean equals(Object other)
RealtimePermission
equals
in class RealtimePermission
other
- is the object with which to compare.true
when yes and false
otherwise.Object.hashCode()
,
HashMap
public String getActions()
RealtimePermission
getActions
in class RealtimePermission
public int hashCode()
RealtimePermission
hashCode
in class RealtimePermission
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean implies(Permission permission)
RealtimePermission
implies
in class RealtimePermission
permission
- is the permission to check.true
when yes and false
otherwise.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2022 aicas GmbH. All Rights Reserved.