Bees v0.5.0 API

bees.core.resource
Class NodeOSExternalChannel

java.lang.Object
  |
  +--bees.core.Capability
        |
        +--bees.core.resource.NodeOSExternalChannel
All Implemented Interfaces:
ExternalChannel

public final class NodeOSExternalChannel
extends Capability
implements ExternalChannel


Fields inherited from class bees.core.Capability
DELETE_PERMISSION, id, INVALID_ID
 
Constructor Summary
NodeOSExternalChannel()
           
 
Method Summary
 void activate(Node node, ProtocolSession ps)
           
protected  void fromBytes(byte[] flattened)
          Bind this capability to the given object.
 java.lang.Object getLocal()
           
 void recycleCapsule(ExternalCapsule ec)
           
 void revoke()
          Revoke access to the capability.
 void sendCapsule(ExternalCapsule ec)
          Send an ExternalCapsule to the other end of this channel.
 void setLocal(java.lang.Object obj)
           
 java.lang.String toString()
           
 
Methods inherited from class bees.core.Capability
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokedPermission, revokePermission, revokePermissions, valid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface bees.core.ExternalChannel
disconnected
 

Constructor Detail

NodeOSExternalChannel

public NodeOSExternalChannel()
Method Detail

setLocal

public void setLocal(java.lang.Object obj)
Specified by:
setLocal in interface ExternalChannel

getLocal

public java.lang.Object getLocal()
Specified by:
getLocal in interface ExternalChannel

fromBytes

protected void fromBytes(byte[] flattened)
                  throws java.lang.Exception
Description copied from class: Capability
Bind this capability to the given object.
Overrides:
fromBytes in class Capability
Following copied from class: bees.core.Capability
Parameters:
flattened - The object this capability gives access too.
Throws:
java.lang.Exception - if anything goes wrong during initialization.

revoke

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

activate

public void activate(Node node,
                     ProtocolSession ps)
              throws java.io.IOException

sendCapsule

public void sendCapsule(ExternalCapsule ec)
                 throws java.io.IOException
Description copied from interface: ExternalChannel
Send an ExternalCapsule to the other end of this channel.
Specified by:
sendCapsule in interface ExternalChannel
Following copied from interface: bees.core.ExternalChannel
Parameters:
ec - The ExternalCapsule to send.

recycleCapsule

public void recycleCapsule(ExternalCapsule ec)
Specified by:
recycleCapsule in interface ExternalChannel

toString

public java.lang.String toString()
Overrides:
toString in class Capability
Following copied from class: bees.core.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/