Bees v0.5.0 API

bees.core.resource
Class LoggerSpec

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.resource.LoggerSpec
All Implemented Interfaces:
CapabilitySpec, edu.utah.janos.io.LogLevel
Direct Known Subclasses:
Logger

public class LoggerSpec
extends Capability
implements edu.utah.janos.io.LogLevel, CapabilitySpec

A LoggerSpec captures the capability material for a Logger capability.


Field Summary
static int INVALID_LEVEL
          Represents an invalid LogLevel value.
static int LF_BDOMAIN_PREFIX
          Flag that specifies whether or not the Logger should prefix any messages with the BDomain's identifier.
 
Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Fields inherited from interface edu.utah.janos.io.LogLevel
ALERT, CRIT, DBG, EMERG, ERR, ERROR, INFO, LEVEL_NAMES, MAX, MIN, NOTICE, WARNING
 
Constructor Summary
LoggerSpec()
          Construct an empty LoggerSpec object.
LoggerSpec(java.lang.String prefix)
          Construct a LoggerSpec object with the given values.
LoggerSpec(java.lang.String prefix, int flags)
          Construct a LoggerSpec object with the given values.
 
Method Summary
 SpecCapabilityFactory getFactory()
           
 void revoke()
          Revoke access to the capability.
 CapabilitySpec specFromBytes(byte[] flattened)
          Initialize this object from the given flattened version of the object.
 byte[] toBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LF_BDOMAIN_PREFIX

public static final int LF_BDOMAIN_PREFIX
Flag that specifies whether or not the Logger should prefix any messages with the BDomain's identifier.

INVALID_LEVEL

public static final int INVALID_LEVEL
Represents an invalid LogLevel value.
Constructor Detail

LoggerSpec

public LoggerSpec(java.lang.String prefix,
                  int flags)
Construct a LoggerSpec object with the given values.
Parameters:
prefix - The Logger prefix string.
flags - Logging flags.

LoggerSpec

public LoggerSpec(java.lang.String prefix)
Construct a LoggerSpec object with the given values.
Parameters:
prefix - The Logger prefix string.

LoggerSpec

public LoggerSpec()
Construct an empty LoggerSpec object.
Method Detail

getFactory

public SpecCapabilityFactory getFactory()
Specified by:
getFactory in interface CapabilitySpec
See Also:
CapabilitySpec.getFactory()

specFromBytes

public final CapabilitySpec specFromBytes(byte[] flattened)
Description copied from interface: CapabilitySpec
Initialize this object from the given flattened version of the object.
Specified by:
specFromBytes in interface CapabilitySpec
See Also:
CapabilitySpec.specFromBytes(byte[])

toBytes

public byte[] toBytes()
Returns:
A byte array containing the flattened version of this object.

revoke

public void revoke()
Description copied from class: Capability
Revoke access to the capability.
Overrides:
revoke in class Capability
See Also:
Capability.revoke()

toString

public java.lang.String toString()
Overrides:
toString in class Capability
See Also:
Object.toString()

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/