Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
_
A
ACTION
- Static variable in class org.amega.vnet.core.
Message
add(ConnectionInputListener, ConnectionInputListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
add(ConnectionStateListener, ConnectionStateListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
add(LookupUpdateListener, LookupUpdateListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
addAction(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add an ACTION property to the Message being built.
addConnectionInputListener(ConnectionInputListener)
- Method in class org.amega.vnet.core.
Connection
Register a listener for connection input.
addConnectionStateListener(ConnectionStateListener)
- Method in class org.amega.vnet.core.
Connection
Register a listener for change in connection state.
addErrorMessage(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add an ERRORMSG property to the Message being built.
addFrom(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a FROM property to the Message being built.
addLookupUpdateListener(LookupUpdateListener)
- Method in class org.amega.vnet.core.
Lookup
Register a listener to receive update events.
addPrefix(String, String)
- Method in class org.amega.vnet.core.
Message
Add a prefix property to this message.
addReplyID(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a REPLY_ID property to the Message being built.
addRequestID(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a REQUEST_ID property to the Message being built.
addServer(String, Server)
- Method in class org.amega.vnet.server.
ServerControl
Register a new server component with the vnet server controlled by this object.
addStatus(boolean)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a STATUS property to the Message being built.
addTo(String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a TO property to the Message being built.
addVar(String, String)
- Method in class org.amega.vnet.core.
MessageBuilder
Add a name/value pair to the header of the message being built.
AList
- class org.amega.vnet.core.
AList
.
This class implements a doubly linked list that may be traversed while inserting/deleting elements.
AList.Entry
- class org.amega.vnet.core.
AList.Entry
.
This class represents an element in an AList.
AList.Entry(Object)
- Constructor for class org.amega.vnet.core.
AList.Entry
AList.Entry(Object, String)
- Constructor for class org.amega.vnet.core.
AList.Entry
AList()
- Constructor for class org.amega.vnet.core.
AList
authenticate(String, String)
- Method in class org.amega.vnet.server.
ENV
Authenticate a user against the common password list.
autoRead()
- Method in class org.amega.vnet.core.
Connection
Read messages from this connection in an infinite loop.
autoWrite()
- Method in class org.amega.vnet.core.
Connection
Handle writing of Messages passed to the Connection through the postMessage method.
B
BackBoneServer
- class org.amega.vnet.server.
BackBoneServer
.
This class implements the 'backbone' server component of the VNet server.
BackBoneServer()
- Constructor for class org.amega.vnet.server.
BackBoneServer
C
cancelAllReplies()
- Method in class org.amega.vnet.core.
ReplyManager
Cancel all replies.
cancelReply(String)
- Method in class org.amega.vnet.core.
ReplyManager
Cancels the waiting for some reply.
cancelReply(String)
- Method in class org.amega.vnet.client.
VNetClient
Remove the ReplyListener for the given request ID and return it.
close()
- Method in class org.amega.vnet.core.
Connection
Close this connection.
config
- Variable in class org.amega.vnet.server.
ENV
Configuration settings for the VNet Server.
conn
- Variable in class org.amega.vnet.server.
User
The connection of this user.
connect(String, int)
- Static method in class org.amega.vnet.core.
Connector
Static method used by clients to get a connection with a server.
Connection
- class org.amega.vnet.core.
Connection
.
This class represents a network connection with another computer.
CONNECTION_ALIVE
- Static variable in class org.amega.vnet.core.
ConnectionStateEvent
CONNECTION_CLOSED
- Static variable in class org.amega.vnet.core.
ConnectionStateEvent
Connection(Socket)
- Constructor for class org.amega.vnet.core.
Connection
Creates a new Connection based on the given Socket.
ConnectionInputEvent
- class org.amega.vnet.core.
ConnectionInputEvent
.
Class encapsulating information about an event generated by incoming data on a connection.
ConnectionInputEvent(Connection, Message)
- Constructor for class org.amega.vnet.core.
ConnectionInputEvent
Create a message input event
ConnectionInputListener
- interface org.amega.vnet.core.
ConnectionInputListener
.
Interface used to deliver events about data recieved on connections.
ConnectionStateEvent
- class org.amega.vnet.core.
ConnectionStateEvent
.
Class encapsulating information about state change in connections.
ConnectionStateEvent(Object, int)
- Constructor for class org.amega.vnet.core.
ConnectionStateEvent
Create a state event
ConnectionStateListener
- interface org.amega.vnet.core.
ConnectionStateListener
.
Interface used to deliver events about state change in connections
Connector
- class org.amega.vnet.core.
Connector
.
Class used to establish connections on servers and clients.
Connector(ConnectionStateListener, int)
- Constructor for class org.amega.vnet.core.
Connector
Constructor creating server socket.
connectToProxyConn(String)
- Method in class org.amega.vnet.client.
VNetClient
Connect to a Proxy connection created by the createProxyConn method.
CoreEventMulticaster
- class org.amega.vnet.core.
CoreEventMulticaster
.
Class implementing multicasting of events generated by classes in the org.amega.vnet.core package. (modeled after the AWTEventMulticaster)
CoreEventMulticaster(EventListener, EventListener)
- Constructor for class org.amega.vnet.core.
CoreEventMulticaster
Both 'a' and 'b' must be non-null.
createProxyConn(String)
- Method in class org.amega.vnet.client.
VNetClient
Create an extra connection to the server that acts as a listening proxy.
D
deliverReply(Message)
- Method in class org.amega.vnet.core.
ReplyWait
This method is called to deliver the reply to the waiting thread.
deliverReply(Message)
- Method in interface org.amega.vnet.core.
ReplyListener
Deliver a reply message to the listener.
destroy()
- Method in class org.amega.vnet.core.
ThreadPool
stop all pooled threads.
dispatchMessage(Message, Connection)
- Method in class org.amega.vnet.core.
MessageDispatcher
Dispatch a Message.
E
ENV
- class org.amega.vnet.server.
ENV
.
This class contains the runtime 'environment' of the vnet server.
ENV()
- Constructor for class org.amega.vnet.server.
ENV
Tries to load the common password file from either 'vnetserver.pwd' or 'vnet/vnetserver.pwd'.
ERRORMSG
- Static variable in class org.amega.vnet.core.
Message
Executable
- interface org.amega.vnet.core.
Executable
.
Interface that must be implemented by objects that are to be executed by a ThreadPool.
execute(Executable)
- Method in class org.amega.vnet.core.
ThreadPool
Execute 'target' in a separate thread.
execute(Executable, Object)
- Method in class org.amega.vnet.core.
ThreadPool
Execute 'target' in a separate thread.
execute(Object)
- Method in interface org.amega.vnet.core.
Executable
This method is called when the object is executed by a ThreadPool.
executeReflect(Object, String)
- Method in class org.amega.vnet.core.
ThreadPool
Convenience method; execute by reflect with no arguments.
executeReflect(Object, String, Object)
- Method in class org.amega.vnet.core.
ThreadPool
Convenience method; execute by reflect with one argument.
executeReflect(Object, String, Object[])
- Method in class org.amega.vnet.core.
ThreadPool
Execute 'target' in a separate thread using the reflect framework.
executeReflect(Object, String, Object, Object)
- Method in class org.amega.vnet.core.
ThreadPool
Convenience method; execute by reflect with two arguments.
executeReflect(Object, String, Object, Object, Object)
- Method in class org.amega.vnet.core.
ThreadPool
Convenience method; execute by reflect with three arguments.
F
FROM
- Static variable in class org.amega.vnet.core.
Message
G
getAction()
- Method in class org.amega.vnet.core.
Message
Returns the action accossiated with this Message. (based on header values)
getActions()
- Method in class org.amega.vnet.core.
ReplyManager
getActions()
- Method in interface org.amega.vnet.core.
MessageHandler
Returns the actions supported by this handler object.
getActions()
- Method in class org.amega.vnet.core.
MessageDispatcher
getActions()
- Method in class org.amega.vnet.client.
VNetClient
Returns the list of handled actions.
getBodyAsData()
- Method in class org.amega.vnet.core.
Message
Return the body of this Message in raw format.
getBodyAsString()
- Method in class org.amega.vnet.core.
Message
Return the body of this Message as a String.
getConnection()
- Method in class org.amega.vnet.core.
ConnectionInputEvent
Get the Connection being the source of this event
getConnection()
- Method in class org.amega.vnet.core.
ConnectionStateEvent
Get the Connection being the source of this event
getDispatcher()
- Method in class org.amega.vnet.server.
BackBoneServer
Returns a reference to the MessageDispatcher used to dispatch incoming Messages.
getEnv()
- Method in class org.amega.vnet.server.
ServerControl
Reurns a reference to the server envorinment.
getErrorMessage()
- Method in class org.amega.vnet.core.
Message
If the status is STATUS_FAIL, this method returns the error message contained in this Message.
getErrorMessage()
- Method in class org.amega.vnet.server.
ServerControl
If initServer returns false, this method returns a message describing the error, otherwise it returns null.
getFrom()
- Method in class org.amega.vnet.core.
Message
Returns the FROM property of this Message.
getHandlerLookup()
- Method in class org.amega.vnet.core.
MessageDispatcher
Return a reference to the internal Lookup used by this MessageDispatcher.
getHead()
- Method in class org.amega.vnet.core.
AList
getHeaderAsData()
- Method in class org.amega.vnet.core.
Message
Return the header of this message in raw format.
getHeaderAsString()
- Method in class org.amega.vnet.core.
Message
Return the header of this message as a String.
getId()
- Method in class org.amega.vnet.core.
LookupUpdateEvent
Returns the ID of this event, identifying the type of event (add, remove or replace).
getKey()
- Method in class org.amega.vnet.core.
LookupUpdateEvent
Returns the key related to this update event.
getKey()
- Method in class org.amega.vnet.core.
AList.Entry
getList()
- Method in class org.amega.vnet.core.
Lookup
Returns a reference to the internal AList of this Lookup.
getLockObject()
- Method in class org.amega.vnet.core.
Lookup
Returns a reference to the Object used to synchronize operations agains this Lookup instance.
getLookup()
- Method in class org.amega.vnet.core.
LookupUpdateEvent
Returns the Lookup being the source of this event.
getMessage()
- Method in class org.amega.vnet.core.
ConnectionInputEvent
Get message content of this event
getMessage()
- Method in class org.amega.vnet.core.
MessageBuilder
Return a Message object representing the message built by this object.
getNewValue()
- Method in class org.amega.vnet.core.
LookupUpdateEvent
Returns the value that was added for add and replace events.
getNextEntry()
- Method in class org.amega.vnet.core.
AList.Entry
getObject()
- Method in class org.amega.vnet.core.
AList.Entry
getOldValue()
- Method in class org.amega.vnet.core.
LookupUpdateEvent
Returns the value that was removed for remove and replace events.
getPrevEntry()
- Method in class org.amega.vnet.core.
AList.Entry
getProperty(String)
- Method in class org.amega.vnet.core.
Connection
Get a property of this Connection
getProperty(String, String)
- Method in class org.amega.vnet.core.
Connection
Get a property of this Connection.
getProxyLookup()
- Method in class org.amega.vnet.server.
ProxyServer
Returns a reference to the internal Lookup object used to keep track of proxy Connections.
getReplyID()
- Method in class org.amega.vnet.core.
Message
Returns the reply ID given to this message (if any). (based on header values)
getRequestID()
- Method in class org.amega.vnet.core.
Message
Returns the request ID given to this message (if any). (based on header values)
getServerConnection()
- Method in class org.amega.vnet.client.
VNetClient
Returns the current backbone connection with the VNet server.
getState()
- Method in class org.amega.vnet.core.
ConnectionStateEvent
Get the state for this event
getStatus()
- Method in class org.amega.vnet.core.
ReplyWait
Get the current status of this ReplyWait object.
getTail()
- Method in class org.amega.vnet.core.
AList
getThreadPool()
- Method in class org.amega.vnet.client.
VNetClient
Share our ThreadPool with the hosting application.
getTo()
- Method in class org.amega.vnet.core.
Message
Returns the TO property of this Message.
getUserLookup()
- Method in class org.amega.vnet.server.
BackBoneServer
Returns a reference to the internal Lookup object used to keep track of users logged on to this backbone server.
getUserName()
- Method in class org.amega.vnet.client.
VNetClient
This method returns the name given to us by the VNetServer.
getVar(String)
- Method in class org.amega.vnet.core.
Message
Returns the value of header property 'name', or null if it does not exist.
getVar(String, String)
- Method in class org.amega.vnet.core.
Message
Returns the value of the header property 'name', or defaultValue if it does not exist.
H
handleConnect(Connection)
- Method in class org.amega.vnet.server.
ServerControl
Handle a new connection in a separate thread.
handleConnect(Connection, Message)
- Method in interface org.amega.vnet.server.
Server
This method is called by the ServerControl whenever someone tries to log into (use) this server component.
handleConnect(Connection, Message)
- Method in class org.amega.vnet.server.
BackBoneServer
handleConnect(Connection, Message)
- Method in class org.amega.vnet.server.
ProxyServer
handleConnection(Connection)
- Method in class org.amega.vnet.server.
BackBoneServer
This method reads messages from the given Connection in an infinite loop.
handleConnectProxy(Connection, Message)
- Method in class org.amega.vnet.server.
ProxyServer
Connect to a proxy Connection that is listening.
handleCreateProxy(Connection, Message)
- Method in class org.amega.vnet.server.
ProxyServer
Create a proxy Connection listening for a Connection from a target user.
handleMessage(Message, Connection)
- Method in class org.amega.vnet.core.
ReplyManager
This method is part of the MessageHandler interface.
handleMessage(Message, Connection)
- Method in interface org.amega.vnet.core.
MessageHandler
Handle an incoming message.
handleMessage(Message, Connection)
- Method in class org.amega.vnet.core.
MessageDispatcher
Handle 'vnet.ping' and 'vnet.list_actions' messages.
handleMessage(Message, Connection)
- Method in class org.amega.vnet.client.
VNetClient
This method handles incoming messages. assume action == 'VNSE'.
I
init()
- Method in class org.amega.vnet.core.
Connector
Init this Connector.
initServer()
- Method in class org.amega.vnet.server.
ServerControl
Initialize the VNet server.
initServer(ENV)
- Method in interface org.amega.vnet.server.
Server
Init this server component.
initServer(ENV)
- Method in class org.amega.vnet.server.
BackBoneServer
initServer(ENV)
- Method in class org.amega.vnet.server.
ProxyServer
insert(Object)
- Method in class org.amega.vnet.core.
Lookup
Insert a value and let the key be automatically generated.
insert(String, Object)
- Method in class org.amega.vnet.core.
Lookup
Add an Object to this Lookup service.
insertFirst(AList.Entry)
- Method in class org.amega.vnet.core.
AList
insertLast(AList.Entry)
- Method in class org.amega.vnet.core.
AList
isAlive()
- Method in class org.amega.vnet.core.
Connection
Check if this connection is alive.
isEmpty()
- Method in class org.amega.vnet.core.
AList
K
key
- Variable in class org.amega.vnet.core.
AList.Entry
L
login(String, String, String)
- Method in class org.amega.vnet.client.
VNetClient
Try to log on to the given VNet server.
logout()
- Method in class org.amega.vnet.client.
VNetClient
Log out from the backbone server.
Lookup
- class org.amega.vnet.core.
Lookup
.
This class implements a general lookup service by integrating the functionallity of an AList and a Hashtable.
Lookup(boolean)
- Constructor for class org.amega.vnet.core.
Lookup
Initialize internal lookup structures.
lookup(String)
- Method in class org.amega.vnet.core.
Lookup
Try to lookup an Object.
LookupUpdateEvent
- class org.amega.vnet.core.
LookupUpdateEvent
.
Event containing information about change in the state of a Lookup service object.
LookupUpdateEvent(Lookup, int, String, Object, Object)
- Constructor for class org.amega.vnet.core.
LookupUpdateEvent
LookupUpdateListener
- interface org.amega.vnet.core.
LookupUpdateListener
.
Interface implemented by Objects that want to receive events telling about change in Lookup state.
M
Message
- class org.amega.vnet.core.
Message
.
This class represents a vnet message.
Message(byte[], byte[])
- Constructor for class org.amega.vnet.core.
Message
Create a new Message with the given header and body.
Message(String, byte[])
- Constructor for class org.amega.vnet.core.
Message
Create a new Message with the given header and body.
MessageBuilder
- class org.amega.vnet.core.
MessageBuilder
.
This class is used to build messages.
MessageBuilder()
- Constructor for class org.amega.vnet.core.
MessageBuilder
Create a MB with 128 bytes header buffer that does not require a reply.
MessageBuilder(boolean)
- Constructor for class org.amega.vnet.core.
MessageBuilder
Create a MB with 128 bytes header buffer with the reply flag set to 'reply'. (
MessageBuilder(int)
- Constructor for class org.amega.vnet.core.
MessageBuilder
Create a MB with 'hlen' header buffer that does not require a reply.
MessageBuilder(int, boolean)
- Constructor for class org.amega.vnet.core.
MessageBuilder
Create a MB with 'hlen' header buffer with the reply flag set to 'reply'.
MessageDispatcher
- class org.amega.vnet.core.
MessageDispatcher
.
This class is used to dispatch Messages to the correct MessageHandlers.
MessageDispatcher()
- Constructor for class org.amega.vnet.core.
MessageDispatcher
Create a new MessageDispatcher.
MessageHandler
- interface org.amega.vnet.core.
MessageHandler
.
This interface is used to pass messages received on a Connection to objects that can handle them.
messageRead(ConnectionInputEvent)
- Method in interface org.amega.vnet.core.
ConnectionInputListener
Called when a message is read from the connection.
messageRead(ConnectionInputEvent)
- Method in class org.amega.vnet.core.
Connection
Method receiving Connection input events and doing Message passing.
messageRead(ConnectionInputEvent)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
messageRead(ConnectionInputEvent)
- Method in class org.amega.vnet.client.
VNetClient
This method receives incoming data from the backbone connection throght the ConnectionInputListener interface.
N
name
- Variable in class org.amega.vnet.server.
ENV
The name of this vnet server.
name
- Variable in class org.amega.vnet.server.
User
The name of this user.
next
- Variable in class org.amega.vnet.core.
AList.Entry
nick
- Variable in class org.amega.vnet.server.
User
The nickname of this user.
O
obj
- Variable in class org.amega.vnet.core.
AList.Entry
org.amega.vnet.client
- package org.amega.vnet.client
org.amega.vnet.core
- package org.amega.vnet.core
org.amega.vnet.server
- package org.amega.vnet.server
P
passwd
- Variable in class org.amega.vnet.server.
ENV
Common password list that may be used by individual server components to authenticate users. [
pool
- Variable in class org.amega.vnet.server.
ENV
ThreadPool used for fast thread startup. (shared between all server components)
postMessage(Message)
- Method in class org.amega.vnet.core.
Connection
Place a Message in the queue of outgoing Messages.
prev
- Variable in class org.amega.vnet.core.
AList.Entry
ProxyServer
- class org.amega.vnet.server.
ProxyServer
.
This class implements the 'proxy' server component of the VNet server.
ProxyServer()
- Constructor for class org.amega.vnet.server.
ProxyServer
R
readMessage()
- Method in class org.amega.vnet.core.
Connection
Read a message from this connection.
registerForReply(Message, ReplyListener)
- Method in class org.amega.vnet.core.
ReplyManager
Register a message for reply.
registerHandler(MessageHandler)
- Method in class org.amega.vnet.core.
MessageDispatcher
Register a MessageHandler with this MessageDispatcher.
registerHandler(MessageHandler)
- Method in class org.amega.vnet.client.
VNetClient
Register a message handler with this VNetClient object.
remove(AList.Entry)
- Method in class org.amega.vnet.core.
AList
Assume entry is part of this list. (or else; trouble !)
remove(ConnectionInputListener, ConnectionInputListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
remove(ConnectionStateListener, ConnectionStateListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
remove(EventListener)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
removes 'oldL' from this CoreEventMulticaster chain.
remove(LookupUpdateListener, LookupUpdateListener)
- Static method in class org.amega.vnet.core.
CoreEventMulticaster
remove(String)
- Method in class org.amega.vnet.core.
Lookup
Remove the given key and the Object bound to it from this Lookup service.
removeAll()
- Method in class org.amega.vnet.core.
Lookup
Remove all objects stored in this Lookup object.
removeConnectionInputListener(ConnectionInputListener)
- Method in class org.amega.vnet.core.
Connection
Un-Register a listener for connection input.
removeConnectionStateListener(ConnectionStateListener)
- Method in class org.amega.vnet.core.
Connection
Un-Register a listener for change in connection state.
removeFirst()
- Method in class org.amega.vnet.core.
AList
Remove the first Entry and return it.
removeLast()
- Method in class org.amega.vnet.core.
AList
Remove the last Entry and return it.
removeLookupUpdateListener(LookupUpdateListener)
- Method in class org.amega.vnet.core.
Lookup
Un-register a listener so it no longer receives update events.
REPLY
- Static variable in class org.amega.vnet.core.
Message
REPLY_ID
- Static variable in class org.amega.vnet.core.
Message
ReplyListener
- interface org.amega.vnet.core.
ReplyListener
.
Simple interface implemented by objects that want to receive reply-messages from a ReplyManager.
ReplyManager
- class org.amega.vnet.core.
ReplyManager
.
This class is used to coordinate reply Messages withing the Message request/reply framework.
ReplyManager()
- Constructor for class org.amega.vnet.core.
ReplyManager
ReplyWait
- class org.amega.vnet.core.
ReplyWait
.
A ReplyWait object is used to block the current thread waiting for a reply.
ReplyWait()
- Constructor for class org.amega.vnet.core.
ReplyWait
REQUEST_ID
- Static variable in class org.amega.vnet.core.
Message
run()
- Method in class org.amega.vnet.core.
ThreadPool
This method is run by a low priority thread and is used to regulate the thread count by adding new threads when the thread count gets too low. (do we really need this ?)
run()
- Method in class org.amega.vnet.core.
Connector
Waiting for incoming connections...
S
sendMessage(Message)
- Method in class org.amega.vnet.client.
VNetClient
General method used to send a message to the server and obtain an answer.
sendMessage(Message, ReplyListener)
- Method in class org.amega.vnet.client.
VNetClient
General method used to send a message to the server and obtain an answer.
Server
- interface org.amega.vnet.server.
Server
.
This interface should be extended by all VNet server components that should be run by the ServerControl class.
ServerControl
- class org.amega.vnet.server.
ServerControl
.
This class is used for server startup and control.
ServerControl()
- Constructor for class org.amega.vnet.server.
ServerControl
Create a ServerControl object used to control a VNet Server.
ServerControl(Properties)
- Constructor for class org.amega.vnet.server.
ServerControl
Create a ServerControl object used to control a VNet Server.
serverLookup
- Variable in class org.amega.vnet.server.
ENV
Lookup containing references to all server components running at the VNet server.
setBody(byte[])
- Method in class org.amega.vnet.core.
MessageBuilder
apply a byte[] body for this message.
setBody(String)
- Method in class org.amega.vnet.core.
MessageBuilder
apply a String body for this message. (converts the String to byte[])
setMaxThreads(int)
- Method in class org.amega.vnet.core.
ThreadPool
Adjust the maximum number of threads allowed on this pool.
setMinThreads(int)
- Method in class org.amega.vnet.core.
ThreadPool
Adjust the minimum number of threads in this pool.
setName(String)
- Method in class org.amega.vnet.core.
MessageDispatcher
Define the name that should be used in the from property of Messages sent by this MessageDispatcher.
setProperty(String, String)
- Method in class org.amega.vnet.core.
Connection
Set a property of this Connection
size()
- Method in class org.amega.vnet.core.
AList
startServer()
- Method in class org.amega.vnet.server.
ServerControl
Start the VNet server (begin listening for clients).
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.core.
Connection
Method receiving Connection input events and doing Close propagation.
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
stateChanged(ConnectionStateEvent)
- Method in interface org.amega.vnet.core.
ConnectionStateListener
Called when the state of the connection changes.
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.client.
VNetClient
This method is called whenever a connection we are listening to have changed state.
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.server.
BackBoneServer
Handle user logout.
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.server.
ServerControl
This method handles incoming connections.
stateChanged(ConnectionStateEvent)
- Method in class org.amega.vnet.server.
ProxyServer
Handle proxy disconnect.
STATUS_FAIL
- Static variable in class org.amega.vnet.core.
Message
STATUS_READY
- Static variable in class org.amega.vnet.core.
ReplyWait
STATUS_TIMEOUT
- Static variable in class org.amega.vnet.core.
ReplyWait
STATUS_WAITING
- Static variable in class org.amega.vnet.core.
ReplyWait
statusFail()
- Method in class org.amega.vnet.core.
Message
Check the status of this Message.
T
ThreadPool
- class org.amega.vnet.core.
ThreadPool
.
Class implementing pooling of threads.
ThreadPool()
- Constructor for class org.amega.vnet.core.
ThreadPool
Creates a thread pool with min=10, max=50, initial = 30.
ThreadPool(int, int)
- Constructor for class org.amega.vnet.core.
ThreadPool
Creates a thread pool with min/max = 'min'/'max' and '(min + max / 2)' initial threads
ThreadPool(int, int, int)
- Constructor for class org.amega.vnet.core.
ThreadPool
Creates a thread pool with min/max/initial = 'min'/'max'/'initial'
TO
- Static variable in class org.amega.vnet.core.
Message
toString()
- Method in class org.amega.vnet.core.
ConnectionInputEvent
toString()
- Method in class org.amega.vnet.core.
ConnectionStateEvent
toString()
- Method in class org.amega.vnet.core.
Message
Returns a textual representation of this Message.
U
unregisterHandler(MessageHandler)
- Method in class org.amega.vnet.core.
MessageDispatcher
Un-Register a MessageHandler with this MessageDispatcher.
unregisterHandler(MessageHandler)
- Method in class org.amega.vnet.client.
VNetClient
UnRegister a message handler from this VNetClient object.
User
- class org.amega.vnet.server.
User
.
This class represents a user logged on to the BackBone server component.
User(String, Connection)
- Constructor for class org.amega.vnet.server.
User
User(String, Connection, String)
- Constructor for class org.amega.vnet.server.
User
V
VALUE_ADDED
- Static variable in class org.amega.vnet.core.
LookupUpdateEvent
VALUE_REMOVED
- Static variable in class org.amega.vnet.core.
LookupUpdateEvent
VALUE_REPLACED
- Static variable in class org.amega.vnet.core.
LookupUpdateEvent
valueAdded(LookupUpdateEvent)
- Method in interface org.amega.vnet.core.
LookupUpdateListener
Called when a new value was added to the Lookup being the source of the event.
valueAdded(LookupUpdateEvent)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
valueRemoved(LookupUpdateEvent)
- Method in interface org.amega.vnet.core.
LookupUpdateListener
Called when a value was removed from the Lookup being the source of the event.
valueRemoved(LookupUpdateEvent)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
valueReplaced(LookupUpdateEvent)
- Method in interface org.amega.vnet.core.
LookupUpdateListener
Called when a value was replaced in the Lookup being the source of the event.
valueReplaced(LookupUpdateEvent)
- Method in class org.amega.vnet.core.
CoreEventMulticaster
VNCE_serverConnectionLost()
- Method in interface org.amega.vnet.client.
VNCListener
VNCException
- exception org.amega.vnet.client.
VNCException
.
This class is used to signal exceptions within the methods of the VNetClient class.
VNCException(String)
- Constructor for class org.amega.vnet.client.
VNCException
Create a new VNCExeption with the given error message.
VNCListener
- interface org.amega.vnet.client.
VNCListener
.
This interface should be implemented by the embedding application in order to be notified of 'events' related to the VNet client.
VNetClient
- class org.amega.vnet.client.
VNetClient
.
This is the main class of the vnet client.
VNetClient(VNCListener)
- Constructor for class org.amega.vnet.client.
VNetClient
Init client runtime structures and instantiate a ThreadPool object used for fast thread startup.
VNSE
- Static variable in class org.amega.vnet.core.
Message
Constants defining values of header properties with predefined semantics.
VNSE_userLogin(String)
- Method in interface org.amega.vnet.client.
VNCListener
VNSE_userLogout(String)
- Method in interface org.amega.vnet.client.
VNCListener
W
waitForReply()
- Method in class org.amega.vnet.core.
ReplyWait
Wait for a reply (see below) using default timeout of 10 seconds.
waitForReply(int)
- Method in class org.amega.vnet.core.
ReplyWait
This method blocks the current thread until the deliverMessage method is called, or a timeout occurs.
WANT_REPLY
- Static variable in class org.amega.vnet.core.
Message
Constants defining the names of header properties with predefined semantics.
wantReply()
- Method in class org.amega.vnet.core.
Message
Returns wether this message wants a reply. (based on header values)
workerDone(ThreadPool.Worker)
- Method in class org.amega.vnet.core.
ThreadPool
This method is called by workers to tell the ThreadPool that they have completed their tasks.
writeMessage(Message)
- Method in class org.amega.vnet.core.
Connection
Write a message to this connection.
_
_a
- Variable in class org.amega.vnet.core.
CoreEventMulticaster
_b
- Variable in class org.amega.vnet.core.
CoreEventMulticaster
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
R
S
T
U
V
W
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES