bees.core.resource
Class NetworkInterface
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.resource.NetworkInterface
- public final class NetworkInterface
- extends Capability
A NetworkInterface governs access to a network interface.
Constructor Summary |
NetworkInterface()
Construct an empty NetworkInterface capability. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NetworkInterface
public NetworkInterface()
- Construct an empty NetworkInterface capability.
fromBytes
protected void fromBytes(byte[] flattened,
CapabilityEnvelope[] sub)
throws java.lang.Exception
- Description copied from class:
Capability
- Bind this capability to the given object.
- Overrides:
fromBytes
in class Capability
- See Also:
Capability.fromBytes(byte[], CapabilityEnvelope[])
revoke
public void revoke()
- Description copied from class:
Capability
- Revoke access to the capability.
- Overrides:
revoke
in class Capability
- See Also:
Capability.revoke()
remoteInterface
public NetworkInterface remoteInterface(PermissionSet ps)
- Construct a NetworkInterface that refers to a remote interface connected
to this local interface. Note: If this interface isn't a local an
IllegalArgumentException will be thrown.
- Parameters:
ps
- The permissions to bind to the new interface.- Returns:
- A NetworkInterface capability that is "connected" to this
interface.
service
public NetworkService service(PermissionSet ps)
- Construct a NetworkService that is available on this interface.
- Parameters:
ps
- The permissions to bind to the new service.- Returns:
- A NetworkService capability that functions over this interface.
toString
public java.lang.String toString()
- Overrides:
toString
in class Capability
- See Also:
Object.toString()
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/