|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.MOAccessImpl
public class MOAccessImpl
The MOAccessImpl class implements an immutable
MOAccess. For special purposes, it can be sub-classed
to modify access dynamically, for example to build an simulation agent
where objects may be modified in a certain mode even if they are read-only
normally.
| Field Summary | |
|---|---|
static MOAccess |
ACCESS_FOR_NOTIFY
|
static MOAccess |
ACCESS_READ_CREATE
|
static MOAccess |
ACCESS_READ_ONLY
|
static MOAccess |
ACCESS_READ_WRITE
|
static MOAccess |
ACCESS_WRITE_ONLY
|
static short |
ACCESSIBLE_FOR_CREATE
|
static short |
ACCESSIBLE_FOR_NOTIFY
|
static short |
ACCESSIBLE_FOR_READ
|
static short |
ACCESSIBLE_FOR_READ_CREATE
|
static short |
ACCESSIBLE_FOR_READ_ONLY
|
static short |
ACCESSIBLE_FOR_READ_WRITE
|
static short |
ACCESSIBLE_FOR_WRITE
|
| Constructor Summary | |
|---|---|
MOAccessImpl(int access)
|
|
| Method Summary | |
|---|---|
short |
getAccess()
Returns the internal access ID. |
static MOAccess |
getInstance(int moAccess)
Returns the appropriate MOAccess instance for the supplied
access ID. |
boolean |
isAccessibleForCreate()
Check whether the managed object can be created (through a SET request on a non existant instance of a columnar object). |
boolean |
isAccessibleForNotify()
Check whether the managed object can be send in a notification. |
boolean |
isAccessibleForRead()
Check whether the managed object can be read (i.e. |
boolean |
isAccessibleForWrite()
Check whether the managed object can be written (i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short ACCESSIBLE_FOR_READ
public static final short ACCESSIBLE_FOR_WRITE
public static final short ACCESSIBLE_FOR_CREATE
public static final short ACCESSIBLE_FOR_NOTIFY
public static final short ACCESSIBLE_FOR_READ_ONLY
public static final short ACCESSIBLE_FOR_READ_WRITE
public static final short ACCESSIBLE_FOR_READ_CREATE
public static final MOAccess ACCESS_READ_ONLY
public static final MOAccess ACCESS_FOR_NOTIFY
public static final MOAccess ACCESS_WRITE_ONLY
public static final MOAccess ACCESS_READ_WRITE
public static final MOAccess ACCESS_READ_CREATE
| Constructor Detail |
|---|
public MOAccessImpl(int access)
| Method Detail |
|---|
public boolean isAccessibleForRead()
MOAccess
isAccessibleForRead in interface MOAccesstrue if the managed object instance(s) can be read.public boolean isAccessibleForWrite()
MOAccess
isAccessibleForWrite in interface MOAccesstrue if the managed object instance(s) can be written.public boolean isAccessibleForNotify()
MOAccess
isAccessibleForNotify in interface MOAccesstrue if the managed object instance(s) can be send in a
notification.public boolean isAccessibleForCreate()
MOAccess
isAccessibleForCreate in interface MOAccesstrue if the managed object instance(s) can be created.public final short getAccess()
public static MOAccess getInstance(int moAccess)
MOAccess instance for the supplied
access ID. If that ID matches one of the standard access levels defined
by this class, then that instance is returned. Otherwise, a new instance
will be created with that access ID.
moAccess - a bitwise OR combination of the basic access levels defined by this
class.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||