|
Bees v0.5.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--bees.core.Capability
|
+--bees.core.NeighborImpl
|
+--bees.core.resource.NodeOSNeighbor
A neighbor implementation that uses NodeOS in/out channels.
| Field Summary | |
static PermissionSet |
DEFAULT_PERMISSIONS
Default permissions for a newly created NodeOSNeighbor object. |
static Permission |
INCOMING_ADDRESS_SPEC__READ_PERMISSION
Permission to read the incoming address spec. |
static Permission |
INCOMING_PROTOCOL_SPEC__READ_PERMISSION
Permission to read the incoming protocol spec. |
static Permission |
OUTGOING_ADDRESS_SPEC__READ_PERMISSION
Permission to read the outgoing address spec. |
static Permission |
OUTGOING_PROTOCOL_SPEC__READ_PERMISSION
Permission to read the outgoing protocol spec. |
| Fields inherited from class bees.core.NeighborImpl |
CAPSULE__READ_PERMISSION, CAPSULE__WRITE_PERMISSION |
| Fields inherited from class bees.core.Capability |
DELETE_PERMISSION, id, INVALID_ID |
| Constructor Summary | |
NodeOSNeighbor()
Construct an empty NodeOSNeighbor object. |
|
| Method Summary | |
protected void |
cancelReceivers(Neighbor neighbor,
TypeID capsuleTypeID)
Call back to be implemented by the class that will receive Capsules. |
protected void |
dequeueKey()
|
protected void |
enqueueKey(java.security.Key sk,
java.lang.String algorithm)
Call back to be implemented by the class that will send and receive Capsules. |
protected void |
fromBytes(byte[] flattened)
Bind this capability to the given object. |
TypeID |
getFingerPrint()
|
java.lang.String |
getIncomingAddressSpec()
|
java.lang.String |
getIncomingProtocolSpec()
|
java.lang.String |
getInterfaceName()
|
java.lang.String |
getOutgoingAddressSpec()
|
java.lang.String |
getOutgoingProtocolSpec()
|
void |
getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
|
void |
handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc,
edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
|
protected void |
receiveBuffer(CapsuleReceiver cr)
Call back to be implemented by the class that will receive Capsules. |
edu.utah.janosvm.kit.comm.jsi.JSIHandler |
resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm,
edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
|
void |
revoke()
Revoke access to the capability. |
void |
revokedPermission(Permission what)
Callback... |
protected void |
sendBuffer(edu.utah.janos.nodeos.BufferHandle bh)
Call back to be implemented by the class that will send Capsules. |
protected void |
setKey(java.security.Key sk,
java.lang.String algorithm)
|
java.lang.String |
toString()
|
java.lang.String |
toVerboseString()
|
| Methods inherited from class bees.core.NeighborImpl |
getNeighbor, getNeighbor |
| Methods inherited from class bees.core.Capability |
checkPermission, clear, clonePermission, deleteCapability, equals, fromBytes, revokePermission, revokePermissions, valid |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Permission INCOMING_PROTOCOL_SPEC__READ_PERMISSION
public static final Permission INCOMING_ADDRESS_SPEC__READ_PERMISSION
public static final Permission OUTGOING_PROTOCOL_SPEC__READ_PERMISSION
public static final Permission OUTGOING_ADDRESS_SPEC__READ_PERMISSION
public static final PermissionSet DEFAULT_PERMISSIONS
| Constructor Detail |
public NodeOSNeighbor()
| Method Detail |
public java.lang.String getIncomingProtocolSpec()
PermissionException - if the capability doesn't have
read permission.public java.lang.String getIncomingAddressSpec()
PermissionException - if the capability doesn't have
read permission.public java.lang.String getOutgoingProtocolSpec()
PermissionException - if the capability doesn't have
read permission.public java.lang.String getOutgoingAddressSpec()
PermissionException - if the capability doesn't have
read permission.
protected void fromBytes(byte[] flattened)
throws java.lang.Exception
CapabilityfromBytes in class CapabilityCapability.fromBytes(byte[])public void revokedPermission(Permission what)
CapabilityrevokedPermission in class CapabilityCapability.revokedPermission(Permission)public void revoke()
Capabilityrevoke in class CapabilityCapability.revoke()
protected void receiveBuffer(CapsuleReceiver cr)
throws java.io.IOException
NeighborImplreceiveBuffer in class NeighborImplNeighborImpl.receiveBuffer(CapsuleReceiver)
protected void cancelReceivers(Neighbor neighbor,
TypeID capsuleTypeID)
NeighborImplcancelReceivers in class NeighborImplNeighborImpl.cancelReceivers(Neighbor, TypeID)
protected void sendBuffer(edu.utah.janos.nodeos.BufferHandle bh)
throws java.io.IOException
NeighborImplsendBuffer in class NeighborImplNeighborImpl.sendBuffer(BufferHandle)
protected void setKey(java.security.Key sk,
java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException
setKey in class NeighborImpl
protected void enqueueKey(java.security.Key sk,
java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException
NeighborImplenqueueKey in class NeighborImplbees.core.NeighborImplcr - The class that will receive and dispatch a type Capsule.sk - The SecretKey to use when computing/verifying a MAC.algorithm - The MAC algorithm to use.java.security.NoSuchAlgorithmException - if the MAC algorithm is not known.java.security.InvalidKeyException - if the key is invalid.protected void dequeueKey()
dequeueKey in class NeighborImplpublic java.lang.String getInterfaceName()
getInterfaceName in class NeighborImplNeighborImpl.getInterfaceName()public TypeID getFingerPrint()
getFingerPrint in class NeighborImplNeighborImpl.getFingerPrint()
public edu.utah.janosvm.kit.comm.jsi.JSIHandler resolveSpecifier(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm,
edu.utah.janosvm.kit.comm.jsi.JSIPair jp)
resolveSpecifier in interface edu.utah.janosvm.kit.comm.jsi.JSIHandlerJSIHandler.resolveSpecifier(JSIMessage, JSIPair)
public void handleMessage(edu.utah.janosvm.kit.comm.jsi.JSIHandlerContext jhc,
edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
handleMessage in interface edu.utah.janosvm.kit.comm.jsi.JSIHandlerJSIHandler.handleMessage(JSIHandlerContext, JSIMessage)public void getSuites(edu.utah.janosvm.kit.comm.jsi.JSIMessage jm)
getSuites in interface edu.utah.janosvm.kit.comm.jsi.JSIHandlerJSIHandler.getSuites(JSIMessage)public java.lang.String toVerboseString()
public java.lang.String toString()
toString in class NeighborImplObject.toString()
|
Bees v0.5.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||