Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
V
W
_
A
addDependant(Object, Object)
- Method in class com.twistedmatrix.spread.
Jelly.NotKnown
ANSWER
- Static variable in class com.twistedmatrix.spread.pb.
Broker
ATTACH
- Static variable in class com.twistedmatrix.spread.pb.
Connection
B
b1282bigint(byte[], int)
- Method in class com.twistedmatrix.spread.
BananaDecoder
Read a positive big integer from a buffer in b128 format.
b1282int(byte[], int)
- Method in class com.twistedmatrix.spread.
BananaDecoder
Read a positive integer from a buffer in b128 format.
Banana
- class com.twistedmatrix.spread.
Banana
.
The Banana wire protocol - an efficient, asynchronous byte-encoding for s-expressions.
Banana.ProtocolException
- exception com.twistedmatrix.spread.
Banana.ProtocolException
.
An error occured in the protocol.
Banana.ProtocolException(String)
- Constructor for class com.twistedmatrix.spread.
Banana.ProtocolException
Banana(StreamPair, boolean)
- Constructor for class com.twistedmatrix.spread.
Banana
Create a new instance given a pair of streams.
BananaDecoder
- class com.twistedmatrix.spread.
BananaDecoder
.
A decoder for the Banana wire protocol.
BananaDecoder(InputStream)
- Constructor for class com.twistedmatrix.spread.
BananaDecoder
Create a new BananaDecoder.
BananaEncoder
- class com.twistedmatrix.spread.
BananaEncoder
.
An encoder for the Banana wire protocol.
BananaEncoder(OutputStream)
- Constructor for class com.twistedmatrix.spread.
BananaEncoder
Create a new BananaEncoder.
Broker
- class com.twistedmatrix.spread.pb.
Broker
.
Network connection over which the PB protocol runs.
Broker.Error
- exception com.twistedmatrix.spread.pb.
Broker.Error
.
An exception in the protocol.
Broker.Error(String)
- Constructor for class com.twistedmatrix.spread.pb.
Broker.Error
Broker(StreamPair, boolean)
- Constructor for class com.twistedmatrix.spread.pb.
Broker
Create a new instance given a pair of streams.
bytes
- Variable in class com.twistedmatrix.util.
ByteString
ByteString
- class com.twistedmatrix.util.
ByteString
.
A byte array that is immutable and can be used as key in Map.
ByteString(byte[])
- Constructor for class com.twistedmatrix.util.
ByteString
Create a new ByteString from a byte array.
ByteString(String)
- Constructor for class com.twistedmatrix.util.
ByteString
Create a new ByteString from a String encoded in ASCII.
C
Callback
- interface com.twistedmatrix.spread.pb.
Callback
.
An object that can be used as a callback.
callRemote(ByteString)
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Send a command to the remote object, blocking until a response is gotten.
callRemote(ByteString, Object[])
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Send a command to the remote object, blocking until a response is gotten.
callRemote(ByteString, Object[], Map)
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Send a command to the remote object, blocking until a response is gotten.
callRemoteAsync(ByteString, Object[], Callback)
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Send a command to the remote object, getting a response asynchronously.
callRemoteAsync(ByteString, Object[], Map, Callback)
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Send a command to the remote object, getting a response asynchronously.
challengeResponse(ByteString, ByteString)
- Static method in class com.twistedmatrix.spread.pb.
Connection
Make a response to a challenge.
CLASS
- Static variable in class com.twistedmatrix.spread.
Jelly
classMapper
- Variable in class com.twistedmatrix.spread.
Jelly.JellyDecoder
classMapper
- Static variable in class com.twistedmatrix.spread.pb.
Broker
ClassMapper
- interface com.twistedmatrix.spread.
ClassMapper
.
Map between class names as passed to Jelly and the real names of classes.
close()
- Method in interface com.twistedmatrix.util.
StreamPair
close()
- Method in class com.twistedmatrix.util.
SocketStreamPair
close()
- Method in class com.twistedmatrix.spread.
Banana
Close the connection.
close()
- Method in class com.twistedmatrix.spread.pb.
Broker
Close the connection.
com.twistedmatrix.spread
- package com.twistedmatrix.spread
com.twistedmatrix.spread.pb
- package com.twistedmatrix.spread.pb
com.twistedmatrix.util
- package com.twistedmatrix.util
connect(StreamPair, ByteString, ByteString, ByteString)
- Static method in class com.twistedmatrix.spread.pb.
Connection
Log in to a perspective whose name is the same as the username.
connect(StreamPair, ByteString, ByteString, ByteString, ByteString)
- Static method in class com.twistedmatrix.spread.pb.
Connection
Log in to a perspective.
Connection
- class com.twistedmatrix.spread.pb.
Connection
.
Various methods for connecting to a remote PB servers.
CONNECTION_LOST
- Static variable in class com.twistedmatrix.spread.pb.
Broker
Connection()
- Constructor for class com.twistedmatrix.spread.pb.
Connection
connectionLost()
- Method in class com.twistedmatrix.spread.pb.
Broker
content
- Variable in class com.twistedmatrix.util.
HashWrapper
COPY
- Static variable in class com.twistedmatrix.spread.pb.
PBJellyDecoder
COPY
- Static variable in class com.twistedmatrix.spread.pb.
PBJellyEncoder
createConnection()
- Method in class com.twistedmatrix.util.
TCPFactory
Create a new connection.
createConnection()
- Method in class com.twistedmatrix.util.
SSLFactory
Create a new connection.
createConnection()
- Method in interface com.twistedmatrix.util.
StreamPairFactory
Create a new StreamPair.
D
DECREF
- Static variable in class com.twistedmatrix.spread.pb.
Broker
DEREFERENCE
- Static variable in class com.twistedmatrix.spread.
Jelly
DIALECTS
- Static variable in class com.twistedmatrix.spread.
Banana
DICTIONARY
- Static variable in class com.twistedmatrix.spread.
Jelly
disconnected
- Variable in class com.twistedmatrix.spread.
Banana
DNU
- Static variable in class com.twistedmatrix.spread.pb.
Broker
E
equals(Object)
- Method in class com.twistedmatrix.util.
ByteString
equals(Object)
- Method in class com.twistedmatrix.util.
HashWrapper
Compare using ==.
equals(Object)
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Compare to other object.
ERROR
- Static variable in class com.twistedmatrix.spread.pb.
Broker
errorCallback(ByteString)
- Method in interface com.twistedmatrix.spread.pb.
Callback
The callback for when a command returns an error.
errorCallback(ByteString)
- Method in class com.twistedmatrix.spread.pb.
ResultCallback
The callback for when a command returns an error.
expressionReceived(Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
F
finalize()
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Tell remote server we are releasing the reference.
FLOAT
- Static variable in class com.twistedmatrix.spread.
Banana
FUNCTION
- Static variable in class com.twistedmatrix.spread.
Jelly
G
getBroker()
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Get the broker via which the reference is connected.
getBytes()
- Method in class com.twistedmatrix.util.
ByteString
Get the bytes of the ByteString.
getClassName(String)
- Method in class com.twistedmatrix.spread.
MapClassMapper
getClassName(String)
- Method in class com.twistedmatrix.spread.
InsecureMapper
getClassName(String)
- Method in interface com.twistedmatrix.spread.
ClassMapper
Get the class's real name, e.g.
getInputStream()
- Method in interface com.twistedmatrix.util.
StreamPair
getInputStream()
- Method in class com.twistedmatrix.util.
SocketStreamPair
getLength()
- Method in class com.twistedmatrix.util.
ByteString
Get the length of the ByteString.
getLuid()
- Method in class com.twistedmatrix.spread.pb.
RemoteReference
Get the luid.
getObject()
- Method in class com.twistedmatrix.util.
HashWrapper
Get the stored object.
getObjectAt(StreamPair)
- Static method in class com.twistedmatrix.spread.pb.
Connection
Get the remote object at the root of server.
getOutputStream()
- Method in interface com.twistedmatrix.util.
StreamPair
getOutputStream()
- Method in class com.twistedmatrix.util.
SocketStreamPair
getStateFor(Jelly.JellyEncoder)
- Method in class com.twistedmatrix.spread.
Jellyable
Return object's state as a sexp list.
H
handshake(Banana, Banana)
- Static method in class com.twistedmatrix.spread.
Banana
Do handshake between two instances.
hashCode()
- Method in class com.twistedmatrix.util.
ByteString
hashCode()
- Method in class com.twistedmatrix.util.
HashWrapper
Compute hash code using java.lanf.Object's algorithm.
HashWrapper
- class com.twistedmatrix.util.
HashWrapper
.
Wrapper class for storing arbitary objects in HashMaps.
HashWrapper(Object)
- Constructor for class com.twistedmatrix.util.
HashWrapper
Create a new wrapper.
HIGH_BIT_SET
- Static variable in class com.twistedmatrix.spread.
Banana
I
in
- Variable in class com.twistedmatrix.spread.
Banana
InsecureMapper
- class com.twistedmatrix.spread.
InsecureMapper
.
An insecure class mapper, that assumes that the passed class name is in fact the real name.
InsecureMapper()
- Constructor for class com.twistedmatrix.spread.
InsecureMapper
INT
- Static variable in class com.twistedmatrix.spread.
Banana
int2b128(BigInteger)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a positive big integer to the stream in b128 format.
int2b128(int)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a positive integer to the stream in b128 format.
J
Jelly
- class com.twistedmatrix.spread.
Jelly
.
Encode and decode objects using Jelly format s-expressions.
Jelly.Dereference
- class com.twistedmatrix.spread.
Jelly.Dereference
.
Jelly.Dereference(Integer)
- Constructor for class com.twistedmatrix.spread.
Jelly.Dereference
Jelly.JellyDecoder
- class com.twistedmatrix.spread.
Jelly.JellyDecoder
.
Decoder for s-expressions.
Jelly.JellyDecoder()
- Constructor for class com.twistedmatrix.spread.
Jelly.JellyDecoder
Create a new decoder with the default class mapper.
Jelly.JellyDecoder(ClassMapper)
- Constructor for class com.twistedmatrix.spread.
Jelly.JellyDecoder
Create a new decoder with the given class mapper.
Jelly.JellyEncoder
- class com.twistedmatrix.spread.
Jelly.JellyEncoder
.
Encodes an object using Jelly s-expression format.
Jelly.JellyEncoder()
- Constructor for class com.twistedmatrix.spread.
Jelly.JellyEncoder
Jelly.NotKnown
- class com.twistedmatrix.spread.
Jelly.NotKnown
.
Decoder for jelly objects.
Jelly.NotKnown()
- Constructor for class com.twistedmatrix.spread.
Jelly.NotKnown
Jelly.Unpersistable
- class com.twistedmatrix.spread.
Jelly.Unpersistable
.
Class representing unpersistable objects.
Jelly.Unpersistable(ByteString)
- Constructor for class com.twistedmatrix.spread.
Jelly.Unpersistable
Jelly()
- Constructor for class com.twistedmatrix.spread.
Jelly
jelly(Object)
- Static method in class com.twistedmatrix.spread.
Jelly
Encode an object in jelly format.
jelly(Object)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
Make a Jelly S-Expression from an object.
Jellyable
- class com.twistedmatrix.spread.
Jellyable
.
A class whose instances may be jellied.
Jellyable()
- Constructor for class com.twistedmatrix.spread.
Jellyable
jellyFor(Jelly.JellyEncoder)
- Method in class com.twistedmatrix.spread.
Jellyable
Jelly the object and return the resulting s-exp list.
L
LIST
- Static variable in class com.twistedmatrix.spread.
Banana
LIST
- Static variable in class com.twistedmatrix.spread.
Jelly
LOCAL
- Static variable in class com.twistedmatrix.spread.pb.
PBJellyDecoder
LOCAL
- Static variable in class com.twistedmatrix.spread.pb.
Broker
localObjectForID(Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
Get local object that is being called by remote.
LONGINT
- Static variable in class com.twistedmatrix.spread.
Banana
LONGNEG
- Static variable in class com.twistedmatrix.spread.
Banana
M
MapClassMapper
- class com.twistedmatrix.spread.
MapClassMapper
.
A class mapper that use a java.util.Map to map between fake and real names.
MapClassMapper()
- Constructor for class com.twistedmatrix.spread.
MapClassMapper
MESSAGE
- Static variable in class com.twistedmatrix.spread.pb.
Broker
MODULE
- Static variable in class com.twistedmatrix.spread.
Jelly
N
NEG
- Static variable in class com.twistedmatrix.spread.
Banana
NONE
- Static variable in class com.twistedmatrix.spread.
Banana
NONE
- Static variable in class com.twistedmatrix.spread.
Jelly
notifyOnDisconnect(Callback)
- Method in class com.twistedmatrix.spread.pb.
Broker
Register a callback for when the connection is lost.
O
out
- Variable in class com.twistedmatrix.spread.
Banana
P
PB
- Static variable in class com.twistedmatrix.spread.
Banana
PBJellyDecoder
- class com.twistedmatrix.spread.pb.
PBJellyDecoder
.
PBJellyDecoder(Broker, ByteString)
- Constructor for class com.twistedmatrix.spread.pb.
PBJellyDecoder
Create a new decoder.
PBJellyEncoder
- class com.twistedmatrix.spread.pb.
PBJellyEncoder
.
PBJellyEncoder(Broker)
- Constructor for class com.twistedmatrix.spread.pb.
PBJellyEncoder
Create a new encoder.
PERSISTENT
- Static variable in class com.twistedmatrix.spread.
Jelly
prepare(Object)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
preserve(Object, ArrayList)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
protocolVersion
- Static variable in class com.twistedmatrix.spread.pb.
Broker
R
read()
- Method in class com.twistedmatrix.spread.
Banana
Read from connection.
read()
- Method in class com.twistedmatrix.spread.
BananaDecoder
Read the next object from the stream.
REFERENCE
- Static variable in class com.twistedmatrix.spread.
Jelly
Referenceable
- interface com.twistedmatrix.spread.pb.
Referenceable
.
An object that can be referenced by remote peers.
REMOTE
- Static variable in class com.twistedmatrix.spread.pb.
PBJellyDecoder
REMOTE
- Static variable in class com.twistedmatrix.spread.pb.
Broker
remoteForName(ByteString)
- Method in class com.twistedmatrix.spread.pb.
Broker
Get a reference to a remote object based on its name.
remoteMessageReceived(Broker, ByteString, Object[], Map, Callback)
- Method in interface com.twistedmatrix.spread.pb.
Referenceable
Handle a message from a remote client.
remoteMessageReceived(Broker, ByteString, Object[], Map, Callback)
- Method in class com.twistedmatrix.spread.pb.
SimpleReferenceable
Handle a message from a remote client.
RemoteReference
- class com.twistedmatrix.spread.pb.
RemoteReference
.
A reference to a remote object.
RemoteReference.RemoteError
- exception com.twistedmatrix.spread.pb.
RemoteReference.RemoteError
.
An error on the remote server.
RemoteReference.RemoteError(RemoteReference, String)
- Constructor for class com.twistedmatrix.spread.pb.
RemoteReference.RemoteError
RemoteReference(ByteString, Broker, Object, boolean)
- Constructor for class com.twistedmatrix.spread.pb.
RemoteReference
Create a new RemoteReference.
remoteReference(Referenceable)
- Method in class com.twistedmatrix.spread.pb.
Broker
Register and get and ID for a local object.
remoteSerialize(Broker)
- Method in interface com.twistedmatrix.spread.pb.
Referenceable
Serialize myself so I can be sent to the remote peer.
remoteSerialize(Broker)
- Method in class com.twistedmatrix.spread.pb.
SimpleReferenceable
Serialize the object.
resolveDependants(Object)
- Method in class com.twistedmatrix.spread.
Jelly.NotKnown
RESPOND
- Static variable in class com.twistedmatrix.spread.pb.
Connection
ResultCallback
- class com.twistedmatrix.spread.pb.
ResultCallback
.
The result of a PB message to a referenceable.
ResultCallback(Broker, Integer)
- Constructor for class com.twistedmatrix.spread.pb.
ResultCallback
Create a new result.
resultCallback(Object)
- Method in interface com.twistedmatrix.spread.pb.
Callback
The callback for when a command returns a result.
resultCallback(Object)
- Method in class com.twistedmatrix.spread.pb.
ResultCallback
The callback for when a command returns a result.
ROOT
- Static variable in class com.twistedmatrix.spread.pb.
Connection
S
sendAnswer(Integer, Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
Send an error response to a message.
sendDecRef(Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
Send a decref for an object.
sendError(Integer, ByteString)
- Method in class com.twistedmatrix.spread.pb.
Broker
Send an error response to a message.
sendMessage(ByteString, Object, ByteString, Object[], Map, Callback)
- Method in class com.twistedmatrix.spread.pb.
Broker
Send a message to a remote object.
serialize(Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
Serialize an object using Jelly.
setMapping(String, String)
- Method in class com.twistedmatrix.spread.
MapClassMapper
Set a mapping between a fake and real name.
setNameForLocal(ByteString, Referenceable)
- Method in class com.twistedmatrix.spread.pb.
Broker
Set a string ID for an object.
SimpleReferenceable
- class com.twistedmatrix.spread.pb.
SimpleReferenceable
.
An object that can be referenced by remote peers.
SimpleReferenceable()
- Constructor for class com.twistedmatrix.spread.pb.
SimpleReferenceable
SocketStreamPair
- class com.twistedmatrix.util.
SocketStreamPair
.
Holds a related pair of streams for a socket, the input stream and the output stream.
SocketStreamPair(Socket)
- Constructor for class com.twistedmatrix.util.
SocketStreamPair
SSLFactory
- class com.twistedmatrix.util.
SSLFactory
.
A StreamPair factory that uses SSL connections.
SSLFactory(String, int, SSLSocketFactory)
- Constructor for class com.twistedmatrix.util.
SSLFactory
Create a factory that will return connections to a specific server.
start()
- Method in class com.twistedmatrix.spread.
Banana
Do profile handshake and start reader thread.
start()
- Method in class com.twistedmatrix.spread.pb.
Broker
Start running.
StreamPair
- interface com.twistedmatrix.util.
StreamPair
.
Holds a related pair of streams, the input stream and the output stream.
StreamPairFactory
- interface com.twistedmatrix.util.
StreamPairFactory
.
A factory for creating StreamPairs.
STRING
- Static variable in class com.twistedmatrix.spread.
Banana
T
TCPFactory
- class com.twistedmatrix.util.
TCPFactory
.
A StreamPair factory that uses unencrypted TCP connections.
TCPFactory(String, int)
- Constructor for class com.twistedmatrix.util.
TCPFactory
Create a factory that will return connections to a specific server.
toString()
- Method in class com.twistedmatrix.util.
ByteString
toString()
- Method in class com.twistedmatrix.util.
HashWrapper
toString()
- Method in class com.twistedmatrix.spread.
Jelly.Unpersistable
TUPLE
- Static variable in class com.twistedmatrix.spread.
Jelly
U
UNICODE
- Static variable in class com.twistedmatrix.spread.
Jelly
unjelly(Object)
- Static method in class com.twistedmatrix.spread.
Jelly
Decode an object in jelly format.
unjelly(Object)
- Method in class com.twistedmatrix.spread.
Jelly.JellyDecoder
Decode an s-expression.
unjellyInstance(ByteString, List)
- Method in class com.twistedmatrix.spread.
Jelly.JellyDecoder
unjellyOther(ByteString, List)
- Method in class com.twistedmatrix.spread.
Jelly.JellyDecoder
Called to unjelly objects of any other type, or null.
unjellyOther(ByteString, List)
- Method in class com.twistedmatrix.spread.pb.
PBJellyDecoder
Deal with types added by PB.
UNPERSISTABLE
- Static variable in class com.twistedmatrix.spread.
Jelly
unserialize(Object)
- Method in class com.twistedmatrix.spread.pb.
Broker
Unserialize an object using Jelly.
unserialize(Object, ByteString)
- Method in class com.twistedmatrix.spread.pb.
Broker
Unserialize an object using Jelly.
USERNAME
- Static variable in class com.twistedmatrix.spread.pb.
Connection
V
VERSION
- Static variable in class com.twistedmatrix.spread.pb.
Broker
VOCAB
- Static variable in class com.twistedmatrix.spread.
Banana
vocabulary
- Static variable in class com.twistedmatrix.spread.
Banana
W
write(BigInteger)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a big integer to the stream.
write(ByteString)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a ByteString to the stream.
write(Double)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a Double to the stream.
write(Integer)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write an integer to the stream.
write(Object)
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write one of the supported object to the stream.
write(Object)
- Method in class com.twistedmatrix.spread.
Banana
Write to connection.
write(Object[])
- Method in class com.twistedmatrix.spread.
BananaEncoder
Write a list of objects to the stream.
_
_getClassName()
- Method in class com.twistedmatrix.spread.
Jellyable
Return the class name for jellying.
_jelly(Jellyable)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
_jelly(Map)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
_jellyOther(Object)
- Method in class com.twistedmatrix.spread.
Jelly.JellyEncoder
Override in subclasses to handle additional object types.
_jellyOther(Object)
- Method in class com.twistedmatrix.spread.pb.
PBJellyEncoder
Jelly Referenceable objects.
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
V
W
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES