A B C D E F G H I J L M N O P Q R S T U V W Y

A

activateConnections(Vector) - Method in class jvm.server.DistributedMaintenanceWatchdog
This takes as parameter a vector of ServerID objects and tries to send a NOP message to each server, in order to activate the connection to it.
active() - Method in class jclass.SyncSimpleHashtable
Returns the number of objects in the hashtable.
active() - Method in class jclass.SyncSimpleArray
Returns the number of nonnull objects in the array.
add(Object) - Method in class jclass.SimpleSet
Adds a new object to the set ( no testings are done on the object )
addNewEntity(Entity) - Method in class jvm.server.LocalCommunicationHandler
This basically changes the internal message handler of the given entity to become the current object (this communication handler) which allows it to receive all message events rightaway and to forward them fast via the messages handler interface specific methods.
addNewEntity(Entity) - Method in interface jvm.server.CommunicationHandler
Called each time inside the host's CommunicationServerThread addNewEntity() as last statement, AFTER the new entity is inserted into the Communication ServerThread's structures, BEFORE starting the entity through Entity.up() This gives the handler the oportunity to maybe change the default message handler of this entity and to perform maybe other tasks.
addNewEntity(Entity) - Method in class jvm.server.DistributedCommunicationHandler
This basically changes the internal message handler of the given entity to become the current object (this communication handler) which allows it to receive all message events rightaway and to forward them fast via the messages handler interface specific methods.
addNewEntity(Socket, InetAddress, long, String, long, int, int, long, long) - Method in class jvm.server.CommunicationServerThread
The only entrypoint in which new entities are added.
addTime(long) - Method in class jclass.Timer
Adds the given amount of ms to this timer.
addToGroup(GroupID) - Method in class jvm.entity.Entity
Tries to add this entity's group set also the given one.
addToGroup(GroupID) - Method in class jvm.client.JVMClient
Tries to add a new group to this client's group set.
addToGroup(GroupID) - Method in interface jvm.client.RestrictedClient
Tries to add a new group to this client's group set.
addToGroup(GroupID) - Method in class jvm.client.ClientApplet
 
ADDTOGRP_ID - Static variable in class jvm.message.MessageConstants
ADD me also to this group please says the client.
AHANDLER - Static variable in class jvm.JVMConstants
 
ALL - Static variable in class jclass.dbg
 
annotateClass(Class) - Method in class jclass.SmartObjectOutputStream
 
applyAll(Object) - Method in class jclass.RoundRobin
Powerfull mechanism of applying some function on all the Objects in the structure.
AUTH - Static variable in class jvm.JVMConstants
 
AuthException - exception jvm.AuthException.
If this is thrown than something related to AUTH went wrong.
AuthException(String) - Constructor for class jvm.AuthException
 
REF="jvm/server/ServerMain.html#authHandler">authHandler - Static variable in class jvm.server.ServerMain
This holds a static reference to the used auth handler object.
authHandler - Variable in class jvm.client.JVMClient
This defines the last instantiated AUTH handler after the call of the last login where AUTH was used.
AuthHandler - interface jvm.AuthHandler.
This is a class supposed to deal with authentication & authorization in the system.
authHandlerClass - Static variable in class jvm.server.ServerMain
this is the auth handler's class.
authHandlerClass - Variable in class jvm.client.JVMClient
This defines the class of the used auth handler.
authHandlerName - Static variable in class jvm.server.ServerMain
this is the auth handler's class name.
authHandlerName - Variable in class jvm.client.JVMClient
This defines the fully qualified class name of the used auth handler.
authHandlerVersion - Variable in class jvm.client.JVMClient
This defines the current loaded auth handler version.
authLevel - Variable in class jvm.client.JVMClient
This contains the last attained AUTH level after the call of the last login where AUTH was used.

B

BANNERTEXT - Static variable in class jvm.JVMConstants
 
BCAST_EID - Static variable in class jvm.message.MessageConstants
Special EntityID object that should be used as destination when sending broadcasts on local server.
BCAST_EID - Static variable in class jvm.entity.EntityID
Special EntityID object that should be used as destination when sending broadcasts on local server.
BCAST_GID - Static variable in class jvm.message.MessageConstants
Special GroupID object that includes/matches all groups on local server.
BROADCAST - Static variable in class jvm.message.MessageConstants
Single server broadcast destination.
broadcastGroup - Variable in class jvm.entity.EntityID
This variable does not count inside the entity, the hashCode returns a value that doesn't depend on this, two EntityID objects are equal even if this value is different.
bytes2int(byte[]) - Static method in class jclass.util
Creates a integer out of four bytes using the big endian technique
bytescat(byte[], byte[]) - Static method in class jclass.util
Appends b2 to b1 and returns the result.
bytescut(int, int, byte[]) - Static method in class jclass.util
Cuts between i1 and i2 in b (inclusive) and returns the result.

C

clear() - Method in class jclass.SimpleQueue
Clears the queue.
Client - interface jvm.client.Client.
A interface that defines the necesary connecting and messaging functions for connecting and communicating to a generic server using Message objects.
CLIENT - Static variable in class jvm.JVMConstants
 
clientAddress - Variable in class jvm.entity.EntityID
This address is actually filled in by the server and send back to the client.
ClientApplet - class jvm.client.ClientApplet.
A abstract Applet class that implements the necesary connecting and messaging functions for connecting and communicating with the Server.
ClientApplet() - Constructor for class jvm.client.ClientApplet
 
clientAuthHandlerName - Static variable in class jvm.server.ServerMain
the required compatible client auth handler full qualified class name
clientAuthHandlerVersion - Static variable in class jvm.server.ServerMain
the minimum required version for the client auth handler.
clientPort - Variable in class jvm.entity.EntityID
This defines the port which the client used to connect to the server.
CLIENTS - Static variable in class jvm.JVMConstants
 
close() - Method in class jvm.entity.Entity
Closes the socket.
close() - Method in class jclass.dbg
Closes the underlying stream and defaults it to System.err.
closeInputStream(InputStream) - Static method in class jclass.util
 
closeOutputStream(OutputStream) - Static method in class jclass.util
 
closeSocket(Socket) - Static method in class jclass.util
 
communicate() - Method in class jvm.server.LocalCommunicationHandler
In this particular handler, most of the communication takes place asynchronous via messagehandler mechanisms, inside the newmsg() method.
communicate() - Method in interface jvm.server.CommunicationHandler
This method is called periodically by the CommunicationServerThread inside a loop.
REF="jvm/server/DistributedCommunicationHandler.html#communicate()">communicate() - Method in class jvm.server.DistributedCommunicationHandler
In this particular handler, most of the communication takes place asynchronous via messagehandler mechanisms, inside the newmsg() method.
communicationHandler - Static variable in class jvm.server.ServerMain
The communication handler object used inside.
CommunicationHandler - interface jvm.server.CommunicationHandler.
The heart of the whole comunication system.
communicationHandlerClass - Static variable in class jvm.server.ServerMain
The communication handler class used inside the communication server thread.
communicationHandlerName - Static variable in class jvm.server.ServerMain
The name of the communication handler class used inside.
CommunicationServerThread - class jvm.server.CommunicationServerThread.
The heart of the whole comunication system.
CommunicationServerThread(CommunicationHandler, SimpleProperties) - Constructor for class jvm.server.CommunicationServerThread
Constructs a new CommunicationServerThread.
communicationThread - Static variable in class jvm.server.ServerMain
This holds a static reference to the used CommunicationServerThread.
Comparable - interface jclass.Comparable.
Interface for a class able to compare its instances.
compareTo(Object) - Method in interface jclass.Comparable
Should represent some sort of comparison between the current instance and the provided object.
computeAge(long) - Method in class jclass.TimedObject
Computes the age of this object referring to a given moment in time.
ConfigureConstants - class jvm.ConfigureConstants.
A class defines some constants specific to the system.

Written: Radu Sion
Version: 0.19
Source: ConfigureConstants.java

Visit Smart Software 
ConfigureConstants() - Constructor for class jvm.ConfigureConstants
 
connect() - Method in class jvm.client.ClientApplet
Connects to the server defined by the parameters to the applet, parsed via parse().
connect(int, int, long, long) - Method in class jclass.SyncSimpleGraph
Connects two (existing or not) nodes inside the graph.
connect(ServerID) - Method in class jvm.client.JVMClient
Alternate version of connect.
connect(ServerID) - Method in interface jvm.client.Client
Alternate version of connect.
connect(String) - Method in class jvm.client.JVMClient
Alternate version of connect.
connect(String) - Method in interface jvm.client.Client
Alternate version of connect.
connect(String, long, String) - Method in class jvm.client.JVMClient
 
connect(String, long, String) - Method in interface jvm.client.Client
Connects to the remote server.
connectionSpeed(int) - Method in class jvm.client.JVMClient
 
connectionSpeed(int) - Method in interface jvm.client.RestrictedClient
Estimates the bytes/sec rate available for this connection.
connectionSpeed(int) - Method in class jvm.client.ClientApplet
Estimates the bytes/sec rate available for this connection.
connectionThread - Static variable in class jvm.server.ServerMain
This holds a static reference to the used connect server thread.
ConnectServerThread - class jvm.server.ConnectServerThread.
A thread that runs as server on a specified server socket and accepts connect requests from clients.
ConnectServerThread(ServerSocket, CommunicationServerThread, ServerStreamProtocol, long) - Constructor for class jvm.server.ConnectServerThread
Constructs a thread object.
connectToNearestServer(String, long) - Method in class jvm.client.JVMClient
 
connectToNearestServer(String, long) - Method in interface jvm.client.Client
Tries to discover the nearest server for a given protocol and to connect to it.
Created - Variable in class jclass.TimedObject
A object creation timestamp in ms that should be taken from a timebase that characterizes this object.
CTS_ID - Static variable in class jvm.message.MessageConstants
Clear To Send says server.
currentServerID - tatic variable in class jvm.server.ServerID
This should NOT be used for direct connection purposes.
currentServers - Variable in class jvm.server.DistributedMaintenanceWatchdog
This is a vector of ServerID objects being the latest read server definitions from the server definition file.

D

data - Variable in class jclass.SimpleData
 
DATA_ID - Static variable in class jvm.message.MessageConstants
Data message type.
dbg - class jclass.dbg.
Class defining different level general purpose debugging facilities.
dbg() - Constructor for class jclass.dbg
This constructor defaults the output to System.err.
dbg(PrintStream) - Constructor for class jclass.dbg
This constructor allows choosing a alternate logfile ...
debug_level - Variable in class jclass.dbg
This defines the current debug level.
DEBUG_LEVEL - Static variable in class jclass.dbg
This defines the current debug level.
DEFAULT_SLEEP - Static variable in class jclass.SleepingThread
 
defaultMessageHandler - Static variable in class jvm.entity.Entity
The default message handler for this entity.
DefGroup - Variable in class jvm.server.CommunicationServerThread
 
Destination - Variable in class jvm.message.Message
Destination entity.
DevNullMessageHandler - class jvm.message.DevNullMessageHandler.
This message handler discards any received message.
DevNullMessageHandler() - Constructor for class jvm.message.DevNullMessageHandler
Creates a new message handler that ignores all messages.
disconnect() - Method in class jvm.client.JVMClient
 
disconnect() - Method in interface jvm.client.Client
Disconnects from server.
disconnect() - Method in class jvm.client.ClientApplet
Disconnects from the server.
disconnect(int, int) - Method in class jclass.SyncSimpleGraph
Disables all connections between two nodes that match the given parameters.
dispatchMessage(Message) - Method in class jvm.server.LocalCommunicationHandler
Tries to handle a message and to send it to it's destination.
dispatchMessage(Message) - Method in interface jvm.server.CommunicationHandler
Tries to handle a message and to send it to it's destination.
dispatchMessage(Message) - Method in class jvm.server.DistributedCommunicationHandler
Tries to handle a message and to send it to it's destination.
dispatchSimpleDestinationMessage(Message) - Method in class jvm.server.LocalCommunicationHandler
Tries to handle a message and to send it to it's destination.
dispatchSimpleDestinationMessage(Message) - Method in class jvm.server.DistributedCommunicationHandler
Tries to handle a message and to send it to it's destination.
DistributedCommunicationHandler - class jvm.server.DistributedCommunicationHandler.
This handler implements the simplest possible scenario, with a single server and more clients/applets/etc.
DistributedCommunicationHandler() - Constructor for class jvm.server.DistributedCommunicationHandler
Constructs a new DistributedCommunicationHandler.
DistributedMaintenanceWatchdog - class jvm.server.DistributedMaintenanceWatchdog.
A watchdog that takes care of system and topology maintenance.
DistributedMaintenanceWatchdog() - Constructor for class jvm.server.DistributedMaintenanceWatchdog
 
DNF_ID - Static variable in class jvm.message.MessageConstants
Destination not found says the server.
doAA(InputStream, OutputStream) - Method in interface jvm.AuthHandler
This is the main entrypoint to the provided authentication facilities.
doAA(InputStream, OutputStream) - Method in class jvm.NullAuthHandler
 
DOWN_ID - Static variable in class jvm.message.MessageConstants
Some entity went down says server.
DOWN_QUEUE_TIMEOUT - Variable in class jvm.message.QueueFeedMessageHandler
Default timeout to wait for queue to free up before returning from down().
down() - Method in class jvm.entity.Entity
Tells the threads they should not work anymore.
REF="jvm/message/MessageHandler.html#downMessageHandler()">downMessageHandler() - Method in interface jvm.message.MessageHandler
This method should be called when this message handler is about to be replaced in it's actions.
downMessageHandler() - Method in class jvm.message.MultiplexMessageHandler
Brings down each registered message handler, through their corresponding downMessageHandler methods.
downMessageHandler() - Method in class jvm.message.QueueFeedMessageHandler
This implementation waits until all messages from the queue are gone and then it returns.
downMessageHandler() - Method in class jvm.message.DevNullMessageHandler
This implementation does nothing here.
downMessageHandler() - Method in class jvm.server.LocalCommunicationHandler
Does nothing.
downMessageHandler() - Method in class jvm.server.DistributedCommunicationHandler
Does nothing.
downMessageHandler() - Method in class jvm.client.JVMClient
 
downWatchdog() - Method in interface jvm.server.Watchdog
This method should be called when stopping the watchdog.
downWatchdog() - Method in class jvm.server.DistributedMaintenanceWatchdog
 
downWatchdog() - Method in class jvm.server.NullWatchdog
 
DynamicNumbers - class jclass.DynamicNumbers.
A class able to dynamically allocate and dealocate unique numbers in a given range.
DynamicNumbers(int) - Constructor for class jclass.DynamicNumbers
 

E

ECHO - Static variable in class jvm.JVMConstants
 
ECHO_ID - Static variable in class jvm.message.MessageConstants
Send me a NOP message says client to server or server to client.
elements() - Method in class jclass.SimpleSet
Returns an enumeration of the values in this set.
EmptyException - exception jclass.EmptyException.
A exception thrown when some data structure is empty.

Written: Radu Sion
Version: 0.14
Source: EmptyException.java

Visit Smart Software 
EmptyException() - Constructor for class jclass.EmptyException
 
EmptyException(String) - Constructor for class jclass.EmptyException
 
enableAnnotateClass(boolean) - Method in class jclass.SmartObjectOutputStream
This basically enables or disables the main facility of this class.
enableResolveClass(boolean) - Method in class jclass.SmartObjectInputStream
This basically enables or disables the main facility of this class.
enter() - Method in class jclass.SimpleBarrier
Enqueues the current thread at this barrier, waiting for all the others to join, that is waiting until N (see constructor) threads reached enter().
Entities - Variable in class jvm.server.CommunicationServerThread
A hashtable with EntityID keys and Entity Values that contains all the entities inside the local system.
Entity - class jvm.entity.Entity.
A class wrapping a whole entity communication endpoint.
Entity(Socket, int, int, EntityID, long, long) - Constructor for class jvm.entity.Entity
Creates a new Entity object.
EntityID - class jvm.entity.EntityID.
A simple entity address information wrapping class.
EntityID() - Constructor for class jvm.entity.EntityID
Fake constructor.
EntityID(String) - Constructor for class jvm.entity.EntityID
Creates a new EntityID object.
EntityID(String, ServerID) - Constructor for class jvm.entity.EntityID
Creates a new EntityID object.
EntityID(String, ServerID, InetAddress, long) - Constructor for class jvm.entity.EntityID
Creates a new EntityID object.
equals(Object) - Method in class jvm.entity.GroupID
We're implementing this in order to use properly hash facilities.
equals(Object) - Method in class jvm.entity.EntityID
We're implementing this in order to use properly hash facilities.
equals(Object) - Method in class jvm.server.ServerID
We're implemeneting this in order to use properly hash facilities.
ERROR - Static variable in class jvm.JVMConstants
 
REF="jclass/dbg.html#ERROR">ERROR - Static variable in class jclass.dbg
 

F

FATAL - Static variable in class jclass.dbg
 
FETCH_TIMEOUT - Variable in class jclass.SimpleQueue
This defines the time to wait for a empty queue to receive some object before declaring the queue empty on fetching an object from it.
fetchNext() - Method in class jclass.SimpleQueue
Gets the next object out of the queue.
fetchNext(long) - Method in class jclass.SimpleQueue
Fetches the next object out of queue
filter(Message) - Method in interface jvm.message.MessageFilter
This method determines if a certain message should go through this filter or not.
finalize() - Method in class jvm.entity.TCPIPReadThread
 
finalize() - Method in class jvm.entity.TCPIPWriteThread
 
finalize() - Method in class jvm.server.LocalCommunicationHandler
 
finalize() - Method in class jvm.server.DistributedMaintenanceWatchdog
 
finalize() - Method in class jvm.server.ConnectServerThread
 
finalize() - Method in class jvm.server.CommunicationServerThread
 
finalize() - Method in class jvm.server.DistributedCommunicationHandler
 
fiterControlMessages(boolean) - Method in class jvm.client.JVMClient
Sets the filter control Messages on/off.
freeNumber(int) - Method in class jclass.DynamicNumbers
Deallocates a number.
fromFile(String) - Static method in class jclass.SimpleProperties
Reads a resource file and returnes the resources into a SimpleProperties for later use from inside the calling program.
fromFile(String) - Static method in class jclass.ResourceHash
Reads a resource file and returnes the resources into a ResourceHash for later use from inside the calling program.
fromString(String) - Static method in class jvm.entity.EntityID
Generates a EntityID object from a string provided in a form similar to the output of .toString().
fromString(String) - Static method in class jvm.server.ServerID
Generates a ServerID object from a string provided in a form similar to the output of .toString().
FULL - Static variable in class jvm.JVMConstants
 
FullException - exception jclass.FullException.
A exception thrown when some data structure is full.

Written: Radu Sion
Version: 0.12
Source: FullException.java

Visit Smart Software 
FullException() - Constructor for class jclass.FullException
 
FullException(String) - Constructor for class jclass.FullException
 

G

get(int) - Method in class jclass.SyncSimpleHashtable
Gets a vector of objects with a specified key from the table.
get(int) - Method in class jclass.SyncSimpleArray
Reads the object value at the specified index in the array.
getActive() - Method in class jvm.entity.TCPIPReadThread
Gets the thread's current status.
getActive() - Method in class jvm.entity.TCPIPWriteThread
Gets the thread's current status.
getAppletInfo() - Method in class jvm.client.ClientApplet
Returns some info about the current applet.
getAuthHandlerVersion() - Method in interface jvm.AuthHandler
Returns a version string of this handler.
getAuthHandlerVersion() - Method in class jvm.NullAuthHandler
Returns a version string of this handler.
getBoolean(String) - Method in class jclass.SimpleProperties
Returns a property value interpreted as a boolean.
getBoolean(String) - Method in class jclass.ResourceHash
Returns the first occurence of a resource value interpreted as a boolean.
getClient() - Method in class jvm.client.ClientApplet
Gets the internal client object used.
getClients() - Method in class jvm.client.JVMClient
Not implemented.
getClients() - Method in interface jvm.client.Client
Returns a array of EntityID objects identifying the entities connected to the whole medium. DT>getCommunicationHandlerVersion() - Method in class jvm.server.LocalCommunicationHandler
 
getCommunicationHandlerVersion() - Method in interface jvm.server.CommunicationHandler
Returns a version string of this handler.
getCommunicationHandlerVersion() - Method in class jvm.server.DistributedCommunicationHandler
 
getCurrent() - Method in class jclass.RoundRobin
Gets the current Object.
getData() - Method in class jvm.message.Message
Returns the internal stored data.
getDigit(int, long) - Static method in class jclass.util
Returns the named digit from a long starting with digit 0 at the rightmost position.
getDouble(String) - Method in class jclass.SimpleProperties
Returns the first occurence of a resource value interpreted as a double.
getDouble(String) - Method in class jclass.ResourceHash
Returns the first occurence of a resource value interpreted as a double.
getDoubleValue(String) - Method in class jclass.SimpleProperties
Returns a double representing the value of the above .getDouble() returned Double object.
getDoubleValue(String) - Method in class jclass.ResourceHash
Returns a double representing the value of the above .getDouble() returned Double object.
getEntity() - Method in class jvm.client.JVMClient
Gets the internal Entity object used.
getEntity(EntityID) - Method in class jvm.server.CommunicationServerThread
Accesses the Entities Hashtable in a synchronized manner and returns the Entity corresponding to the eid EntityID.
getEntityID() - Method in class jvm.entity.Entity
Gets the internal used entity id of the client.
getEntityID() - Method in class jvm.client.JVMClient
Gets the clients entity id inside the server structures.
getEntityID() - Method in interface jvm.client.RestrictedClient
Gets the clients entity id inside the server structures.
getEntityID() - Method in class jvm.client.ClientApplet
 
getFrame() - Method in class jclass.ImageArrayCanvas
Returns the current active displayed frame from the file.
getFreeNumber() - Method in class jclass.DynamicNumbers
Allocates a new unique number in the given range.
getGroups() - Method in class jvm.entity.Entity
Returns a vector of GroupID objects representing the groups this entity belongs to.
getGroups() - Method in class jvm.client.JVMClient
Gets the clients group numbers from the server structures.
getGroups() - Method in interface jvm.client.RestrictedClient
Gets the clients groups from the server structures.
getGroups() - Method in class jvm.client.ClientApplet
 
getImage() - Method in class jclass.ImageCanvas
Returns the internal Image object of this Canvas.
getImage() - Method in class jclass.ImageArrayCanvas
Returns the internal Image object of this Canvas.
getInput() - Method in class jclass.InputDialog
 
getLocalClients() - Method in class jvm.client.JVMClient
Returns a array of EntityID objects identifying the entities connected to the local (current) server.
getLocalClients() - Method in interface jvm.client.Client
Returns a array of EntityID objects identifying the entities connected to the local (current) server.
getLong(String) - Method in class jclass.SimpleProperties
Returns a resource value interpreted as a Long.
getLong(String) - Method in class jclass.ResourceHash
Returns the first occurence of a resource value interpreted as a Long.
getLongValue(String) - Method in class jclass.SimpleProperties
Returns a long representing the value of the above .getLong() returned Long object.
getLongValue(String) - Method in class jclass.ResourceHash
Returns a long representing the value of the above .getLong() returned Long object.
getMaxNodes() - Method in class jclass.SyncSimpleGraph
Returns the maximum nodes number that can be handled by this graph This also means that there can be NO node with an id greater than this value, stored inside this graph.
getMaxSize() - Method in class jclass.RoundRobin
Gets the maximum entries allowed in this structure.
getMaxSize() - Method in class jclass.SimpleQueue
Gets the maximum size (entries) in the queue
getNext() - ethod in class jclass.RoundRobin
Gets the next Object in the structure.
getPreferredSize() - Method in class jclass.ImageCanvas
should change this to reflect the real image sizes
getPreferredSize() - Method in class jclass.ImageArrayCanvas
 
getRange() - Method in class jclass.DynamicNumbers
Returns the number that was passed as parameter to the constructor.
getRestrictedClient() - Method in interface jvm.sandbox.Sandbox
This method provides a reference to an existing, connected, logged-in RestrictedClient, able to communicate with other active entities in the medium.
getSandboxProperties() - Method in interface jvm.sandbox.Sandbox
This is intended to allow the loaded sandboxrunnable to access any other properties from within the sandbox environment.
getSandboxProperty(Object) - Method in interface jvm.sandbox.Sandbox
This accesses a particular property from within the sandbox.
getServer(ServerID) - Method in class jvm.server.DistributedCommunicationHandler
Accesses the Servers Hashtable in a synchronized manner and returns the Entity corresponding to the sid ServerID.
getServerID() - Method in class jvm.client.JVMClient
Gets the server id of the server to which this client is connected as retrieved from the server.
getServerID() - Method in interface jvm.client.Client
Gets the server id of the server to which this client is connected as retrieved from the server.
getSleep() - Method in class jclass.SleepingThread
Returns the internal sleep delay.
getString(String) - Method in class jclass.SimpleProperties
 
getString(String) - Method in class jclass.ResourceHash
Returns the first occurence of a resource value treated as a string with the given name.
getTime() - Method in class jvm.client.JVMClient
 
getTime() - Method in interface jvm.client.RestrictedClient
Gets the current overall time (server based).
getTime() - Method in class jvm.client.ClientApplet
Gets the current overal time (server based).
getTimestampBase() - Method in class jvm.entity.Entity
Returns the internal used timestamp timer for the Write thread.
getUsername() - Method in class jvm.entity.Entity
Gets the username used to connect to the server of this entity.
getWatchdogVersion() - Method in interface jvm.server.Watchdog
Returns a version string of this watchdog.
getWatchdogVersion() - Method in class jvm.server.DistributedMaintenanceWatchdog
 
getWatchdogVersion() - Method in class jvm.server.NullWatchdog
 
GROUP_BROADCAST - Static variable in class jvm.message.MessageConstants
Broadcast inside a group on a given server or inside the whole medium.
GroupID - class jvm.entity.GroupID.
A simple piece of information defining a certain group inside the medium.
GroupID() - Constructor for class jvm.entity.GroupID
Fake constructor.
GroupID(String) - Constructor for class jvm.entity.GroupID
Creates a new GroupID object.
GroupID(String, ServerID) - Constructor for class jvm.entity.GroupID
Creates a new GroupID object.

H

handleEvent(Event) - Method in class jclass.MessageDialog
 
handleEvent(Event) - Method in class jclass.InputDialog
 
handleEvent(Event) - Method in class jclass.MessageFrame
 
handleEvent(Event) - Method in class jclass.YesNoDialog
 
HANDLER - Static variable in class jvm.JVMConstants
 
hashCode() - Method in class jvm.entity.GroupID
We're implementing this in order to use properly hash facilities.
hashCode() - Method in class jvm.entity.EntityID
We're implementing this in order to use properly hash facilities.
hashCode() - Method in class jvm.server.ServerID
We're implementing this in order to use properly hash facilities.
HELP - Static variable in class jvm.JVMConstants
 
HELPTEXT - Static variable in class jvm.JVMConstants
 
hide() - Method in class jclass.InputDialog
 
Host - ariable in class jvm.server.ServerID
The host on which this entity runs.

I

IAMSERVER_ID - Static variable in class jvm.message.MessageConstants
I am a server says a server to another.
ImageArrayCanvas - class jclass.ImageArrayCanvas.
Canvas used in displaying images from inside a multiimage file.
ImageArrayCanvas() - Constructor for class jclass.ImageArrayCanvas
Constructs a new object.
ImageArrayCanvas(Image, float, int, int) - Constructor for class jclass.ImageArrayCanvas
Constructs a new object that will use the given image in drawing.
ImageCanvas - class jclass.ImageCanvas.
Simple canvas for displaying simple images.
ImageCanvas() - Constructor for class jclass.ImageCanvas
Constructs a new object.
ImageCanvas(Image, int, int) - Constructor for class jclass.ImageCanvas
Constructs a new object that will use the given image in drawing.
imageUpdate(Image, int, int, int, int, int) - Method in class jclass.ImageCanvas
 
imageUpdate(Image, int, int, int, int, int) - Method in class jclass.ImageArrayCanvas
 
IN_QUEUE_LENGTH - Variable in class jvm.client.JVMClient
Defines the default value for the incomming queue length parameter in the case of a call to the simple version of login() You may set this to some other value than the default.
inConnections(int) - Method in class jclass.SyncSimpleGraph
Returns the incomming connections of a given node.
inConnectionsNumber(int) - Method in class jclass.SyncSimpleGraph
Returns the number of incomming connections of a given node.
INFO - Static variable in class jclass.dbg
 
initCommunicationHandler() - Method in class jvm.server.LocalCommunicationHandler
 
initCommunicationHandler() - Method in interface jvm.server.CommunicationHandler
Called AFTER the host's CommunicationServerThread constructor finishes, inside that constructor, as last statement BEFORE starting the time base.
initCommunicationHandler() - Method in class jvm.server.DistributedCommunicationHandler
 
initSandboxRunnable(Sandbox, Object) - Method in interface jvm.sandbox.SandboxRunnable
This method is called by the Sandbox, after loading the runnable.
InMessageQueue - Variable in class jvm.entity.Entity
The incomming message queue fed through the TCPIPReadThread coupled with the default message handler.
InputDialog - class jclass.InputDialog.
A simple Input Dialog.
InputDialog(Frame, String, boolean, String, String, String) - Constructor for class jclass.InputDialog
Constructs a new dialog with the specified parameters.
INSERT_TIMEOUT - Variable in class jclass.SimpleQueue
This defines the time to wait for a full queue to free up before declaring the queue full on inserting a object into it Should be reasonable small (0-100).
Insert(Object) - Method in class jclass.RoundRobin
Inserts new Object AFTER the current one.
Insert(Object) - Method in class jclass.SimpleQueue
Inserts a object in the queue.
Insert(Object, long) - Method in class jclass.SimpleQueue
Inserts a new object into the queue ( no testings are done on the object )
int2bytes(int) - Static method in class jclass.util
Returns a four bytes array representation of a integer using big endian technique.
INVALID - Static variable in class jvm.JVMConstants
 
INVALID - Static variable in class jvm.message.MessageConstants
Invalid destination.
INVALID_PASSWORD_SLEEP - Static variable in class jvm.JVMConstants
 
INVRQ_ID - Static variable in class jvm.message.MessageConstants
Invalid request says server.
isActive() - Method in class jvm.entity.Entity
Returns this entity's status.
isConnected() - Method in class jvm.client.JVMClient
Returns true if this client is connected.
isConnected() - Method in interface jvm.client.RestrictedClient
Returns true if this client is connected.
isConnected() - Method in class jvm.client.ClientApplet
Returns true if this client is connected.
isEmpty() - Method in class jclass.RoundRobin
Tests if structure is empty.
REF="jclass/SimpleSet.html#isEmpty()">isEmpty() - Method in class jclass.SimpleSet
Tests if the set is empty
isEmpty() - Method in class jclass.SimpleQueue
Tests if the queue is empty
isFull() - Method in class jclass.RoundRobin
Tests if structure is full.
isFull() - Method in class jclass.SimpleQueue
Tests if the queue is full.
isInGroup(GroupID) - Method in class jvm.entity.Entity
Determines if this entity is in the respective group.
isInSet(Object) - Method in class jclass.SimpleSet
Finds out if a certain object is inside the current set.
isLoggedIn() - Method in class jvm.client.JVMClient
Returns true if this client is also logged in.
isLoggedIn() - Method in interface jvm.client.RestrictedClient
Returns true if this client is also logged in.
isLoggedIn() - Method in class jvm.client.ClientApplet
Returns true if this client is also logged in.

J

jclass - package jclass
 
JUNK - Static variable in class jclass.dbg
 
jvm - package jvm
 
JVM - Static variable in class jvm.JVMConstants
 
jvm.client - package jvm.client
 
jvm.entity - package jvm.entity
 
jvm.message - package jvm.message
 
jvm.sandbox - package jvm.sandbox
 
jvm.server - package jvm.server
 
JVMClient - class jvm.client.JVMClient.
A class that implements the necesary connecting and messaging functions for connecting and communicating inside a JVM medium implementation using object serialization.
JVMClient() - Constructor for class jvm.client.JVMClient
Creates a new client.
JVMConstants - class jvm.JVMConstants.
The JVM protocol description constants.
JVMConstants() - Constructor for class jvm.JVMConstants
 
JVMSandboxApplet - class jvm.sandbox.JVMSandboxApplet.
Not implemented.
JVMSandboxApplet() - Constructor for class jvm.sandbox.JVMSandboxApplet
 
JVMServerStreamProtocol - class jvm.server.JVMServerStreamProtocol.
This is a implementation of the server side protocol of the JVM specification.
JVMServerStreamProtocol() - Constructor for class jvm.server.JVMServerStreamProtocol
Creates a new protocol.

L

lastError - Variable in class jvm.client.JVMClient
Contains the last error server response line.
lastLine - Variable in class jvm.client.JVMClient
Contains the last server response line.
lastQuery - Variable in class jvm.client.JVMClient
Contains the last nonnull query sent to the server.
lastTokens - Variable in class jvm.client.JVMClient
Contains the last read tokens from the server.
LISTENTITIES_ID - Static variable in class jvm.message.MessageConstants
Send me a vector with all your connected active entityid's, says the client to the server or a server to another server.
LISTSERVERS_ID - Static variable in class jvm.message.MessageConstants
Send me a vector with all your active serverid's, says the client to the server or a server to another server.
LocalCommunicationHandler - class jvm.server.LocalCommunicationHandler.
Obsoleted.
LocalCommunicationHandler() - Constructor for class jvm.server.LocalCommunicationHandler
Constructs a new LocalCommunicationHandler.
lock() - Method in class jclass.SimpleSemaphore
Locks this semaphore.
lock(long) - Method in class jclass.SimpleSemaphore
Locks this semaphore.
locked - Variable in class jclass.SimpleSemaphore
 
LOGIN - Static variable in class jvm.JVMConstants
 
LOGIN_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default login timeout parameter in the case of a call to the simple version of login() You may set this to some other value than the default.
login(String, String) - Method in class jvm.client.JVMClient
Simplified version of login.
login(String, String) - Method in interface jvm.client.Client
Logs into server.
login(String, String) - Method in class jvm.client.ClientApplet
Logs into server.
REF="jvm/client/JVMClient.html#login(java.lang.String, java.lang.String, int, int, long, long, long)">login(String, String, int, int, long, long, long) - Method in class jvm.client.JVMClient
Logs in to the remote JVM server.
LOGOUT_ID - Static variable in class jvm.message.MessageConstants
Please log me out says the client.
LOGOUT_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default timeout inside the simple version of logout() in waiting for the OK-LOGOUT server response message.
logout() - Method in class jvm.client.JVMClient
This is a version of logout that uses the version with timeouts.
logout() - Method in interface jvm.client.Client
Logs out of the server.
logout() - Method in class jvm.client.ClientApplet
Logs out of the server.
logout(long) - Method in class jvm.client.JVMClient
Logs out of the server.

M

main(String[]) - Static method in class jvm.server.ServerMain
 
MAX - Static variable in class jclass.dbg
 
MAX_ENTRIES - Static variable in class jclass.RoundRobin
The maximum number of entries allowed out of internal reasons
MaxPlayers - Variable in class jvm.server.CommunicationServerThread
The maximum number of entities allowed inside this server.
Message - class jvm.message.Message.
A class designed to be used as a general network carried data object.
Message() - Constructor for class jvm.message.Message
Constructs a new message.
Message(EntityID, EntityID, EntityID[], String, Object, long) - Constructor for class jvm.message.Message
Constructs a new message.
Message(EntityID, EntityID, String, Object) - Constructor for class jvm.message.Message
Constructs a new message.
Message(EntityID, EntityID, String, Object, long) - Constructor for class jvm.message.Message
Constructs a new message.
Message(EntityID, Object) - Constructor for class jvm.message.Message
Constructs a new message.
Message(Object) - Constructor for class jvm.message.Message
Constructs a new message.
MessageConstants - class jvm.message.MessageConstants.
A class that defines some Message specific constants.

Written: Radu Sion
Version: 0.21
Source: MessageConstants.java
MessageConstants() - Constructor for class jvm.message.MessageConstants
 
MessageDialog - class jclass.MessageDialog.
A simple dialog with some text and an ok button.
MessageDialog(Frame, String, boolean, String, String) - Constructor for class jclass.MessageDialog
Constructs a new dialog with the specified parameters.
MessageFilter - interface jvm.message.MessageFilter.
This is a class that is able to tell if it likes/dislikes a certain message.
MessageFrame - class jclass.MessageFrame.
A simple frame used to display a message

Written: Radu Sion
Version: 0.12
Source: MessageFrame.java

Visit Smart Software 
MessageFrame(String, String, String) - Constructor for class jclass.MessageFrame
 
MessageHandler - interface jvm.message.MessageHandler.
This handler gets called each time a new message gets received.
Metric - Variable in class jclass.NodeConnection
Associated metric.
migrate(ServerID) - Method in class jvm.client.JVMClient
 
migrate(ServerID) - Method in interface jvm.client.RestrictedClient
This is a mistery for now.
migrate(ServerID) - Method in interface jvm.client.Client
This is a mistery for now.
MIN - Static variable in class jclass.dbg
 
msgCount - Variable in class jvm.message.DevNullMessageHandler
Counts the non null messages received.
MultiplexMessageHandler - class jvm.message.MultiplexMessageHandler.
This handler basically allows registration of multiple other handlers in order to receive the messages.
MultiplexMessageHandler() - onstructor for class jvm.message.MultiplexMessageHandler
Creates a new message handler that ignores all messages.
mysleep(long) - Method in class jclass.SleepingThread
Implements a sort of sleep that does NOT throw any exception.

N

Name - Variable in class jvm.entity.GroupID
The group's name inside the medium.
Name - Variable in class jvm.entity.EntityID
The entity's name inside the server.
negociate(Socket) - Method in class jvm.server.JVMServerStreamProtocol
Method that should implement the protocol.
negociate(Socket) - Method in interface jvm.server.ServerStreamProtocol
Method that really implements the particular protocol according to the negociation that takes place on the socket i/o datastreams.
NEWFILTER_ID - Static variable in class jvm.message.MessageConstants
Please set a new message filter for me.
newKey(byte) - Static method in class jclass.RandomKeyGenerator
Generates a new random key of a given length.
newmsg(EntityID, Message) - Method in interface jvm.message.MessageHandler
This method should be called each time a new message arrives and needs handling.
newmsg(EntityID, Message) - Method in class jvm.message.MultiplexMessageHandler
It notifies all registered message handlers through their corresponding newmsg() methods.
newmsg(EntityID, Message) - Method in class jvm.message.QueueFeedMessageHandler
This method feeds up the queue given in the constructor by inserting each new received message into it.
newmsg(EntityID, Message) - Method in class jvm.message.DevNullMessageHandler
This method does nothing.
newmsg(EntityID, Message) - Method in class jvm.server.LocalCommunicationHandler
Note: Always remember that this is executed inside the run() of the TCPIPReadThread so don't kill this guy via Entity.down() maybe !!! You may kill him only as LAST statement, before return.
newmsg(EntityID, Message) - Method in class jvm.server.DistributedCommunicationHandler
NOT IMPLEMENTED YET !!! Note: Always remember that this is executed inside the run() of the TCPIPReadThread so don't kill this guy via Entity.down() maybe !!! You may kill him only as LAST statement, before return.
newmsg(EntityID, Message) - Method in class jvm.client.JVMClient
This gets called each time a new message comes in.
NO_EID - Static variable in class jvm.message.MessageConstants
Special EntityID object that should be used instead of returning null (entity id)
NO_EID - Static variable in class jvm.entity.EntityID
Special EntityID object that should be used instead of returning null (entity id)
Node1 - Variable in class jclass.NodeConnection
First node of the connection.
Node2 - Variable in class jclass.NodeConnection
Second node of this connection.
NodeConnection - class jclass.NodeConnection.
Class that defines a simple connection between two nodes.
NodeConnection(int, int, long, long) - Constructor for class jclass.NodeConnection
Creates a new Node Connection object.
none - Static variable in class jvm.JVMConstants
 
NONE - Static variable in class jclass.dbg
 
NOP - Static variable in class jvm.JVMConstants
 
NOP_ID - Static variable in class jvm.message.MessageConstants
No OPeration message.
NOTFOUND - Static variable in class jvm.JVMConstants
 
NOTIMPLEMENTED - Static variable in class jvm.JVMConstants
 
NullAuthHandler - class jvm.NullAuthHandler.
This handler allows anyone to connect.
NullAuthHandler() - Constructor for class jvm.NullAuthHandler
 
NullWatchdog - class jvm.server.NullWatchdog.
A null watchdog.
NullWatchdog() - Constructor for class jvm.server.NullWatchdog
 

O

OK - Static variable in class jvm.JVMConstants
 
OK_ID - Static variable in class jvm.message.MessageConstants
Request fulfilled says server.
otherDestinations - Variable in class jvm.message.Message
This field is not supposed to be supported by all servers.
OUT_QUEUE_LENGTH - ariable in class jvm.client.JVMClient
Defines the default value for the incomming queue length parameter in the case of a call to the simple version of login() You may set this to some other value than the default.
outConnections(int) - Method in class jclass.SyncSimpleGraph
Returns the outgoing connections of a given node.
outConnectionsNumber(int) - Method in class jclass.SyncSimpleGraph
Returns the number of outgoing connections of a given node.
outgoing() - Method in class jvm.client.JVMClient
 
outgoing() - Method in interface jvm.client.Client
Gets the number of Messages in the outgoing message queue.
outgoing() - Method in class jvm.client.ClientApplet
 
OutMessageQueue - Variable in class jvm.entity.Entity
The outgoing message queue which is watched by the TCPIPReadThread and each inserted message gets sent.

P

p(int, Object) - Static method in class jclass.dbg
Prints out the message only if lvl<=debug_level and debug_level!=NONE.
p(int, Object, PrintStream) - Static method in class jclass.dbg
Prints out debugging information.
paint(Graphics) - Method in class jclass.ImageCanvas
 
paint(Graphics) - Method in class jclass.ImageArrayCanvas
 
paint(Graphics) - Method in class jclass.TextScrollerCanvas
Does a scroll step.
PANIC(String, String) - Method in class jvm.server.CommunicationServerThread
Panics and exits, to be used only in case of explicit internal error
parse() - Method in class jvm.client.ClientApplet
Parses the html tag parameters and loads client plugin.
PASS - Static variable in class jvm.JVMConstants
 
passwordsHash - Static variable in class jvm.server.ServerMain
This holds a static reference to the used password file hash.
pause() - Method in class jclass.SleepingThread
Makes a pause according to the internal sleep.
pause(float) - Method in class jclass.SleepingThread
Makes a pause according to the internal sleep multiplied to the adjust parameter.
Port - Variable in class jvm.server.ServerID
The port on which this entity's server runs.
pow_int(int, int) - Static method in class jclass.util
 
pow_long(long, long) - Static method in class jclass.util
 
pp(int, Object) - Method in class jclass.dbg
This uses the static version in order to print out to the internally specified printstream.
Protocol - Variable in class jvm.server.ServerID
The protocol by which this entity is accessible.
ProtocolServerThread - class jvm.server.ProtocolServerThread.
This thread is created for each new accepted socket inside the ConnectionThread and should apply the given protocol on the socket in a somehow blocking mode, that is this thread is dedicated only to a given session after which it exits.
ProtocolServerThread(Socket, ServerStreamProtocol) - Constructor for class jvm.server.ProtocolServerThread
Constructs a new thread object.
put(Object, int) - Method in class jclass.SyncSimpleHashtable
Puts a object with a specified key in the array.

Q

QUEUE_INSERT_TIMEOUT - Variable in class jvm.message.QueueFeedMessageHandler
Default timeout to wait in inserting into queue, before throwing FullException.
QueueFeedMessageHandler - class jvm.message.QueueFeedMessageHandler.
This message handler mainly feeds a queue with all the messages it receives ...

Written: Radu Sion
Version: 0.14
Source: QueueFeedMessageHandler.java

Visit Smart Software 
QueueFeedMessageHandler(SimpleQueue) - Constructor for class jvm.message.QueueFeedMessageHandler
Creates a new message handler that feeds the given queue with every new message it receives.
QUIT - Static variable in class jvm.JVMConstants
 

R

RandomKeyGenerator - class jclass.RandomKeyGenerator.
A random key generator used in generating variable length keys.
RandomKeyGenerator() - Constructor for class jclass.RandomKeyGenerator
 
rawTextQuery(String) - Method in class jvm.client.JVMClient
Sends a raw query string to the jvm server.
RBCAST_EID - Static variable in class jvm.message.MessageConstants
Special EntityID object that should be used as destination when sending a global broadcast on all connected servers.
RBCAST_EID - Static variable in class jvm.entity.EntityID
Special EntityID object that should be used as destination when sending a global broadcast on all connected servers.
RCLIENT - Static variable in class jvm.JVMConstants
 
RCLIENTS - Static variable in class jvm.JVMConstants
 
read(String) - Static method in class jclass.ResourceFileReader
Reads a resource file and fills a hash with resources read from that file.
readLine(InputStream) - Static method in class jclass.util
The method bellow is adapted from the jdk102 DataInputStream source and reads from a InputStream a whole line, that has been terminated by a \n, \r, \r\n or EOF.
readServersFile(String) - Method in class jvm.server.DistributedMaintenanceWatchdog
This reads in ServerID objects from the given file into the provided vector object.
RECEIVE_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default timeout inside the simple version of recv(), in waiting for a message to get into the incomming message queue.
registerMessageHandler(MessageHandler) - Method in class jvm.message.MultiplexMessageHandler
This registers a new message handler.
registerMessageHandler(MessageHandler) - Method in class jvm.client.JVMClient
Registers a new additional incomming message handler.
registerMessageHandler(MessageHandler) - Method in interface jvm.client.RestrictedClient
Registers an incomming message handler.
registerMessageHandler(MessageHandler) - Method in class jvm.client.ClientApplet
 
REMOTE_BROADCAST - Static variable in class jvm.message.MessageConstants
Broadcast on all connected servers to all entities connected.
REMOVE - Static variable in class jvm.JVMConstants
 
Remove() - Method in class jclass.RoundRobin
Removes CURRENT Object.
remove(Entity) - Method in class jvm.server.LocalCommunicationHandler
Should maybe send some message ...
remove(Entity) - Method in interface jvm.server.CommunicationHandler
Called each time the CommunicationServerThread.remove() is called, BEFORE really entering the removal procedure.
remove(Entity) - Method in class jvm.server.DistributedCommunicationHandler
Should maybe send some message ...
remove(EntityID) - Method in class jvm.server.CommunicationServerThread
Removes a entity completely from the server structures and then also does some garbagge collection.
remove(int) - Method in class jclass.SyncSimpleArray
Removes a given object at a specified index in the array.
remove(int) - Method in class jclass.SyncSimpleGraph
Removes a node from the graph by removing all the connections that contain that node integer number.
Devlp note: The respective slot is not deleted ! why should it be ?
remove(int, int) - Method in class jclass.SyncSimpleHashtable
Removes a specific object characterized by it's key and by the order he got into the table, between the objects with the same key.
remove(Object) - Method in class jclass.SimpleSet
Removes a given object from the set (no testings are done on the object)
Remove(Object) - Method in class jclass.RoundRobin
Removes the specified Object.
removeall(int) - Method in class jclass.SyncSimpleHashtable
Removes all the objects with a specified key.
removeFromGroup(GroupID) - Method in class jvm.entity.Entity
Tries to remove this entity from the given group.
removeFromGroup(GroupID) - Method in class jvm.client.JVMClient
Tries to remove this entity from a given group.
removeFromGroup(GroupID) - Method in interface jvm.client.RestrictedClient
Tries to remove this entity from a given group.
removeFromGroup(GroupID) - Method in class jvm.client.ClientApplet
 
RESET_ID - Static variable in class jvm.message.MessageConstants
Reset yourself says server OR please reset me (send me reset message) says client.
reset(long) - Method in class jclass.Timer
Resets the timer to the specified value and stops it
RESFILE - tatic variable in class jvm.ConfigureConstants
 
resolveClass(ObjectStreamClass) - Method in class jclass.SmartObjectInputStream
 
ResourceFileReader - class jclass.ResourceFileReader.
This class is obsolete.
ResourceFileReader() - Constructor for class jclass.ResourceFileReader
 
resourceHash - Static variable in class jvm.server.ServerMain
This holds a static reference to the used global resource hash.
resourceHash - Variable in class jvm.server.DistributedMaintenanceWatchdog
 
ResourceHash - class jclass.ResourceHash.
A class that allows a good maintenance of a set of constants.
ResourceHash(SimpleProperties) - Constructor for class jclass.ResourceHash
Creates a resource hash from a properties object.
ResourceHash(Vector, Vector) - Constructor for class jclass.ResourceHash
Creates a new object.
RestrictedClient - interface jvm.client.RestrictedClient.
This is a general interface defining only certain client functionalities.
result - Variable in class jclass.InputDialog
Contains true if yes pressed, false otherwise
result - Variable in class jclass.YesNoDialog
Contains true if yes pressed, false otherwise
RMFROMGRP_ID - Static variable in class jvm.message.MessageConstants
Please remove me from this group says the client.
RoundRobin - class jclass.RoundRobin.
A synchronized class used in reprezenting a circular list of Objects optimized for round robin parsing.

Written: Radu Sion
Version: 0.24x
Source: RoundRobin.java

Visit Smart Software 
RoundRobin(int) - Constructor for class jclass.RoundRobin
 
RT_SLEEP - Variable in class jvm.client.JVMClient
Defines the default sleep delay for the read thread in the case of a call to the simple version of login() You may set this to some other value than the default.
run() - Method in class jvm.entity.TCPIPReadThread
 
run() - Method in class jvm.entity.TCPIPWriteThread
 
run() - Method in class jvm.server.ProtocolServerThread
 
run() - Method in class jvm.server.DistributedMaintenanceWatchdog
 
run() - Method in class jvm.server.ConnectServerThread
 
run() - Method in class jvm.server.CommunicationServerThread
 
run() - Method in interface jvm.sandbox.SandboxRunnable
Here should the main code lie.
run() - Method in class jclass.ServerUDPThread
 
run() - Method in class jclass.ServerTCPThread
 

S

Sandbox - interface jvm.sandbox.Sandbox.
This interface aims to provide basic connectivity to a certain type of serializable, executable object (SandboxRunnable).
SandboxRunnable - interface jvm.sandbox.SandboxRunnable.
Classes implementing this interface are loaded inside a Sandbox and executed there.
SEND_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default timeout inside the simple version of send(), in waiting for a free slot in the outgoing message queue, before throwing FullException.
send(Message) - Method in class jvm.client.JVMClient
Simple version of send.
send(Message) - Method in interface jvm.client.Client
Sends a Message.
send(Message) - Method in class jvm.client.ClientApplet
 
send(Message, long) - Method in class jvm.client.JVMClient
Sends a Message.
send(Object, Object) - Method in class jvm.client.JVMClient
Sends a Object to a destination.
send(Object, Object) - Method in interface jvm.client.RestrictedClient
Sends a Object to a destination.
send(Object, Object) - Method in class jvm.client.ClientApplet
 
Sender - Variable in class jvm.message.Message
The Sender is a object determining a certain id (Long etc.) of the sending entity inside the virtual medium.
REF="jvm/client/JVMClient.html#sendOK()">sendOK() - Method in class jvm.client.JVMClient
Gives a recommandation if it's ok to send, in order to maintain good feedback.
sendOK() - Method in interface jvm.client.Client
Obsolete.
sendOK() - Method in class jvm.client.ClientApplet
 
sendToServer(ServerID, Message) - Method in class jvm.server.DistributedCommunicationHandler
Tries to insert a given message into a remote server's outgoing message queue.
SERVER - Static variable in class jvm.message.MessageConstants
Single server destination.
SERVER_EID - Static variable in class jvm.message.MessageConstants
Special EntityID object that should be used as destination when directing requests to the server.
SERVER_EID - Static variable in class jvm.entity.EntityID
Special EntityID object that should be used as destination when directing requests to the server.
serverEntityID - Variable in class jvm.server.CommunicationServerThread
Holds a entity id created like new EntityID(MessageConstants.SERVER, serverID)
serverID - Variable in class jvm.entity.GroupID
The ServerID of this groups's server.
serverID - Variable in class jvm.entity.EntityID
The ServerID of this entity's server.
serverID - Variable in class jvm.server.CommunicationServerThread
Holds this server's id.
ServerID - class jvm.server.ServerID.
A simple server identification information wrapping class.
ServerID() - Constructor for class jvm.server.ServerID
Fake constructor.
ServerID(String, long) - Constructor for class jvm.server.ServerID
Creates a new ServerID object.
ServerID(String, long, String) - Constructor for class jvm.server.ServerID
Creates a new ServerID object.
serverMain - Variable in class jvm.server.NullWatchdog
 
ServerMain - class jvm.server.ServerMain.
The main server side class that starts all server threads and also holds some of the global information available.
ServerMain(SimpleProperties) - Constructor for class jvm.server.ServerMain
Fires up all the threads that compose the system.
Servers - Variable in class jvm.server.DistributedCommunicationHandler
A hashtable with ServerID keys and Entity Values that contains entities defining connections to other servers inside the medium.
ServerStreamProtocol - interface jvm.server.ServerStreamProtocol.
Abstract.
ServerTCPThread - class jclass.ServerTCPThread.
A thread that runs as server on a specified port and accepts incomming TCP/IP connect requests.It then puts the incomming socket into a queue which should be parsed by one or more specific protocol threads that treat the requests.

Written: Radu Sion
Version: 0.16
Source: ServerTCPThread.java

Visit Smart Software 
ServerTCPThread(int, SimpleQueue, long) - Constructor for class jclass.ServerTCPThread
Constructs a thread object.
SERVERTEXT - Static variable in class jvm.JVMConstants
 
ServerUDPThread - class jclass.ServerUDPThread.
A thread that runs as server on a specified port and accepts incomming datagrams.
ServerUDPThread(int, int, SimpleQueue, Timer, long) - Constructor for class jclass.ServerUDPThread
Constructs a new thread object.
set(int, Object) - Method in class jclass.SyncSimpleArray
Puts a object at a specified index in the array.
set(String, String) - Method in class jclass.ResourceHash
Sets the named resource value, but only if it already exists here with another value.
setActive(boolean) - Method in class jvm.entity.TCPIPReadThread
Sets the thread's status.
setActive(boolean) - Method in class jvm.entity.TCPIPWriteThread
Sets the thread's status.
setBasicVars(CommunicationServerThread, ResourceHash) - Method in class jvm.server.LocalCommunicationHandler
 
setBasicVars(CommunicationServerThread, SimpleProperties) - Method in interface jvm.server.CommunicationHandler
This is like some sort of constructor for the communication handler and gets called right after instantiating the handler.
REF="jvm/server/DistributedCommunicationHandler.html#setBasicVars(jvm.server.CommunicationServerThread, jclass.SimpleProperties)">setBasicVars(CommunicationServerThread, SimpleProperties) - Method in class jvm.server.DistributedCommunicationHandler
 
setBasicVars(Object) - Method in interface jvm.AuthHandler
This is like some sort of constructor for the communication handler and gets called right after instantiating the handler.
setBasicVars(Object) - Method in class jvm.NullAuthHandler
 
setBasicVars(ServerMain) - Method in interface jvm.server.Watchdog
This is like some sort of constructor it should get called right after instantiating the object.
setBasicVars(ServerMain) - Method in class jvm.server.DistributedMaintenanceWatchdog
 
setBasicVars(ServerMain) - Method in class jvm.server.NullWatchdog
 
setClient(Client) - Method in class jvm.client.ClientApplet
Sets the internal used client.
setData(Object) - Method in class jvm.message.Message
Sets the internal stored data.
setEntityID(EntityID) - Method in class jvm.entity.TCPIPReadThread
Sets the internal used entity id.
setEntityID(EntityID) - Method in class jvm.entity.Entity
Sets the internal used entity id of the client.
setExitIfFullQueues(boolean, boolean) - Method in class jvm.entity.Entity
Controls the behaviour of this entity's testOK() method.
setFrame(float) - Method in class jclass.ImageArrayCanvas
Sets the current displayed frame from inside the file.
setGroups(Vector) - Method in class jvm.entity.Entity
Sets the groups to which this entity belongs to.
setImage(Image) - Method in class jclass.ImageCanvas
Sets the new displayed image.
setInMessageFilter(MessageFilter) - Method in class jvm.client.JVMClient
This method tries to set/change the server side incomming message filter object.
setInMessageFilter(MessageFilter) - Method in interface jvm.client.Client
This method tries to set/change the server side incomming message filter object.
setInMessageFilter(MessageFilter) - Method in class jvm.client.ClientApplet
This method tries to set/change the server side incomming message filter object.
setInMessageHandler(MessageHandler) - Method in class jvm.entity.Entity
This changes the default incomming message handler inside the TCPIPReadThread.
setInput(String) - Method in class jclass.InputDialog
 
setMessageFilter(EntityID, MessageFilter) - Method in class jvm.server.CommunicationServerThread
This tries to set the message filter for the given entity ...
setMessageHandler(MessageHandler) - Method in class jvm.entity.TCPIPReadThread
This sets the incomming message handler.
setMessageSender(boolean) - Method in class jvm.client.JVMClient
Normally, the message sender inside a message, when sending is changed to match the current entityid.
setPrintStream(PrintStream) - Method in class jclass.dbg
 
setSandboxProperty(Object, Object) - Method in interface jvm.sandbox.Sandbox
This allows the loaded SandboxRunnable to access certain areas from within the sandbox itself, maybe for providing return data etc.
setSleep(long) - Method in class jclass.SleepingThread
Sets the internal sleep delay, used when appealing .pause() If invalid value then the sleep delay remains unchanged.
setText(String) - Method in class jclass.TextScrollerCanvas
Sets a new text to be displayed from now on.
setTime(long) - Method in class jclass.Timer
Sets the timer to the specified value and leaves it in it's current state.
setVisible(boolean) - Method in class jclass.MessageDialog
 
show() - Method in class jclass.InputDialog
 
show() - Method in class jclass.MessageFrame
 
show() - Method in class jclass.YesNoDialog
 
showCentered(Container) - Method in class jclass.MessageDialog
 
showCentered(Container) - Method in class jclass.InputDialog
 
SimpleBarrier - class jclass.SimpleBarrier.
A barrier.
REF="jclass/SimpleBarrier.html#SimpleBarrier(int)">SimpleBarrier(int) - Constructor for class jclass.SimpleBarrier
Creates a new SimpleBarrier.
SimpleData - class jclass.SimpleData.
Very simple class designed to wrap some byte[] data into a simple timed object.
SimpleData(byte[]) - Constructor for class jclass.SimpleData
Creates a new SimpleData object based on initial data.
SimpleException - exception jclass.SimpleException.
A exception thrown when we just want to throw something other than Exception.
SimpleException(String) - Constructor for class jclass.SimpleException
 
SimpleProperties - class jclass.SimpleProperties.
This extension of Properties allows reading Long, String, Boolean and Float value fields instead of simple strings.
SimpleProperties() - Constructor for class jclass.SimpleProperties
 
SimpleQueue - class jclass.SimpleQueue.
A class reprezenting a simple static allocated queue of objects which allows also synchronized access.
SimpleQueue(int) - Constructor for class jclass.SimpleQueue
 
SimpleSemaphore - class jclass.SimpleSemaphore.
A simple stupid semaphore implementation.
SimpleSemaphore() - Constructor for class jclass.SimpleSemaphore
 
SimpleSet - class jclass.SimpleSet.
A class reprezenting a simple set of objects which allows also synchronized access.
SimpleSet() - Constructor for class jclass.SimpleSet
Constructs a new empty set.
size() - Method in class jclass.SyncSimpleArray
Returns the number of static allocated slots.
size() - Method in class jclass.ResourceHash
Returns the size of this structure, actually the length of the internal arrays that hold the resources.
size() - Method in class jclass.SimpleSet
Returns the current size (objects) of the set
size() - Method in class jclass.SimpleQueue
Returns the current size (entries) of the queue
Size() - Method in class jclass.RoundRobin
The number of Objects in the structure
sleep(byte) - Method in class jvm.entity.Entity
Tells the threads they should sleep a little bit.
SleepingThread - class jclass.SleepingThread.
A thread skeleton that implements a variable and a method that allows setting a internal sleeping interval.
SleepingThread() - Constructor for class jclass.SleepingThread
 
SleepingThread(Runnable) - Constructor for class jclass.SleepingThread
 
SmartObjectInputStream - class jclass.SmartObjectInputStream.
This stream basically deals with the automatic class loading issues that require that on both sides of a connection there should be a description of the transfered object class available.
SmartObjectInputStream(InputStream) - Constructor for class jclass.SmartObjectInputStream
 
SmartObjectOutputStream - class jclass.SmartObjectOutputStream.
This stream basically deals with the automatic class loading issues that require that on both sides of a connection there should be a description of the transfered object class available.
SmartObjectOutputStream(OutputStream) - Constructor for class jclass.SmartObjectOutputStream
 
socket - Variable in class jvm.entity.Entity
Contains the socket this entity has attached.
start() - Method in class jclass.Timer
Starts the timer.
start(boolean, long) - Method in class jvm.entity.Entity
Starts this entity.
startEntity(EntityID) - Method in class jvm.server.CommunicationServerThread
Starts a entity and sends a RESET and greeting message.
STAT - Static variable in class jvm.JVMConstants
 
stop() - Method in class jclass.Timer
Stops the timer.
stop(boolean) - Method in class jvm.entity.Entity
Stops the internal threads.
stopSandboxRunnable() - Method in interface jvm.sandbox.SandboxRunnable
This is called when the Sandbox determines that the sandbox runnable has to be stopped (maybe before evacuation) ...
streamProtocol - Static variable in class jvm.server.ServerMain
This holds a static reference to the used server stream protocol.
stringWidth(String, FontMetrics) - Static method in class jclass.util
Returns the pixel width of the specified string using the specified fontmetric.
SUPERUSER - Static variable in class jvm.JVMConstants
 
syncpass - tatic variable in class jvm.ConfigureConstants
Password file stuff
SyncSimpleArray - class jclass.SyncSimpleArray.
A simple synchronized static allocated array class.
SyncSimpleArray(int) - Constructor for class jclass.SyncSimpleArray
Creates a new array object of a given size and fills it up with null.
SyncSimpleGraph - class jclass.SyncSimpleGraph.
Class that implements a simple graph providing primitives for node connection handling.
SyncSimpleGraph(int) - Constructor for class jclass.SyncSimpleGraph
Creating a new graph.
SyncSimpleHashtable - class jclass.SyncSimpleHashtable.
A simple synchronized static allocated hashtable with numeric pozitive integer keys only.
SyncSimpleHashtable(int) - Constructor for class jclass.SyncSimpleHashtable
Creates a new hashtable of a given size.
syncuser - Static variable in class jvm.ConfigureConstants
 
systemWatchdog - Static variable in class jvm.server.ServerMain
this holds a static reference to the used system watchdog object.
systemWatchdogClass - Static variable in class jvm.server.ServerMain
this holds a static reference to the used system watchdog class.
systemWatchdogName - Static variable in class jvm.server.ServerMain
this holds a static reference to the used system watchdog class name.

T

TCPIPReadThread - class jvm.entity.TCPIPReadThread.
(please read also bellow !) A thread that reads messages from the network and tries to put them into a queue.
TCPIPReadThread(EntityID, SmartObjectInputStream, MessageHandler, int, long) - Constructor for class jvm.entity.TCPIPReadThread
Constructs a new TCPIPReadThread.
TCPIPWriteThread - class jvm.entity.TCPIPWriteThread.
A thread that reads Messages from a SimpleQueue and writes them to a stream through a SmartObjectOutputStream AFTER timestamping them using a internal settable timer.
TCPIPWriteThread(SmartObjectOutputStream, SimpleQueue, int, long, long) - Constructor for class jvm.entity.TCPIPWriteThread
Creates a new TCPIPWriteThread.
test() - Method in class jvm.client.JVMClient
Tests the status of the entity & others.
test() - Method in interface jvm.client.Client
Tests the status.
test() - Method in class jvm.client.ClientApplet
Tests the status of the connection & others.
testEntity(EntityID) - Method in class jvm.server.CommunicationServerThread
Tests the status of a entity.
testOK() - Method in class jvm.entity.Entity
Tests if this entity is ok, including threads etc.
textArea - Variable in class jclass.MessageDialog
 
textArea - Variable in class jclass.MessageFrame
 
TextScrollerCanvas - class jclass.TextScrollerCanvas.
A canvas that scrolls a text from left to right ...
TextScrollerCanvas(String, int) - Constructor for class jclass.TextScrollerCanvas
Creates a new scroller canvas that should scroll the specified text by using the specified increment in pixels between moves.
time() - Method in class jclass.Timer
Gets the Timer indication.
TimeDiffs - Variable in class jvm.server.DistributedCommunicationHandler
A hashtable with ServerID keys and Long Values containing the timestamp diferences (=(local time)-(remote time)) of the current server to all the connected remote servers.
TimedObject - class jclass.TimedObject.
Is a very simple class that includes a timestamp in it.
TimedObject() - Constructor for class jclass.TimedObject
Constructor that initializes the internal creation timestamp to the absolute UTC time via System.currentTimeMillis().
TimedObject(long) - Constructor for class jclass.TimedObject
Constructor that uses the provided parameter to initialize the creation time.
Timer - class jclass.Timer.
A simple timer in ms.
Timer() - Constructor for class jclass.Timer
Constructs a new started timer object, initialized with the current UTC time in ms.
Timer(long) - Constructor for class jclass.Timer
Constructs a new stopped timer object, resetting it to the parameter specified value.
TimeStamp - Variable in class jvm.message.Message
This is used mainly in time sync between server & entity.
timestampBase - Variable in class jvm.entity.TCPIPWriteThread
This timer is used in timestamping the outgoing messages.
toSimpleProperties() - ethod in class jclass.ResourceHash
Returns a corresponding properties object, containing everything in this resource hash.
toString() - Method in class jvm.message.Message
 
toString() - Method in class jvm.entity.GroupID
We should NOT use here any chars used as delimiters inside the ServerID's string representation.
toString() - Method in class jvm.entity.Entity
 
toString() - Method in class jvm.entity.EntityID
We should NOT use here any chars used as delimiters inside the ServerID's string representation.
toString() - Method in class jvm.server.ServerID
Returns the string representation of this object.
toString() - Method in class jclass.TimedObject
 
toString() - Method in class jclass.SimpleSet
 
toVector() - Method in class jclass.SimpleSet
Returns a vector with the objects in this set.
traceServerID - Variable in class jvm.entity.EntityID
NOT USED YET.
TRUNCATESIZE - Static variable in class jclass.dbg
This is a cut-size in bytes for each line of debuging output.
Type - Variable in class jvm.message.Message
A certain stamp on the object that determines it's type.

U

unicastSend(EntityID, Message) - Method in class jvm.server.CommunicationServerThread
This method should be used by the communication plugin.
unicastSend(Message) - Method in class jvm.server.CommunicationServerThread
This method should be used by the communication plugin.
UNKNOWN - Static variable in class jvm.JVMConstants
 
UNKNOWN - Static variable in class jvm.message.MessageConstants
Unknown destination.
UNKNOWN_EID - Static variable in class jvm.message.MessageConstants
Special EntityID object that should be used when entity is unknown.
UNKNOWN_EID - Static variable in class jvm.entity.EntityID
Special EntityID object that should be used when entity is unknown.
unlock() - Method in class jclass.SimpleSemaphore
Unlocks the semaphore.
unregisterMessageHandler(MessageHandler) - Method in class jvm.message.MultiplexMessageHandler
This unregisters a message handler.
unregisterMessageHandler(MessageHandler) - Method in class jvm.client.JVMClient
 
unregisterMessageHandler(MessageHandler) - Method in interface jvm.client.RestrictedClient
Removes a registered incomming message handler.
unregisterMessageHandler(MessageHandler) - Method in class jvm.client.ClientApplet
 
UNSUPPORTED - Static variable in class jvm.JVMConstants
 
update(Graphics) - Method in class jclass.TextScrollerCanvas
The update method uses an off-screen drawing area to reduce text fliker
updateServer(ServerID, Entity, long) - Method in class jvm.server.DistributedCommunicationHandler
Updates a given entry of the Servers Hashtable with a newer one, and then it closes the old one.
upMessageHandler() - Method in interface jvm.message.MessageHandler
This method should be called when this message handler is about to start again activity AFTER a call to down().
upMessageHandler() - Method in class jvm.message.MultiplexMessageHandler
This notifies all registered message handlers via their corresponding upMessageHandler methods.
upMessageHandler() - Method in class jvm.message.QueueFeedMessageHandler
This does nothing as no additional actions are needed to start this handler.
upMessageHandler() - Method in class jvm.message.DevNullMessageHandler
This does nothing as no additional actions are needed to start this handler.
upMessageHandler() - Method in class jvm.server.LocalCommunicationHandler
Does nothing.
upMessageHandler() - Method in class jvm.server.DistributedCommunicationHandler
Does nothing.
upMessageHandler() - Method in class jvm.client.JVMClient
 
UpTime - Variable in class jvm.server.CommunicationServerThread
The system timer used in computing timeouts etc.
upWatchdog() - Method in interface jvm.server.Watchdog
method is called upon starting the watchdog.
upWatchdog() - Method in class jvm.server.DistributedMaintenanceWatchdog
 
upWatchdog() - Method in class jvm.server.NullWatchdog
 
USER - Static variable in class jvm.JVMConstants
 
userWatchdog - Static variable in class jvm.server.ServerMain
this holds a static reference to the used user watchdog object.
userWatchdogClass - Static variable in class jvm.server.ServerMain
this holds a static reference to the used user watchdog class.
userWatchdogName - Static variable in class jvm.server.ServerMain
this holds a static reference to the used user watchdog class name.
util - class jclass.util.
Stupid class that contains various simple but useful methods.
util() - Constructor for class jclass.util
 

V

VER - Static variable in class jvm.JVMConstants
 
VERSION - Static variable in class jvm.JVMConstants
 
visible - Variable in class jclass.InputDialog
Is true when dialog is hidden.

W

WAIT_FOR_GROUP_ADD_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default amount of the the client waits inside addToGroup(), before returning false, if there is any ongoing add to group activity.
WAIT_FOR_GROUP_REMOVE_TIMEOUT - Variable in class jvm.client.JVMClient
This defines the default amount of the the client waits inside removeFromGroup(), before returning false, if there is any ongoing remove from group activity.
waitEmpty(long) - Method in class jclass.SimpleQueue
Waits for empty queue.
waitFull(long) - Method in class jclass.SimpleQueue
Waits for queue to fill up.
WARN - Static variable in class jclass.dbg
 
Watchdog - interface jvm.server.Watchdog.
A watchdog is a class that is loaded into the system and started via it's start() method.
WATCHDOGS - Static variable in class jvm.JVMConstants
 
WT_SLEEP - Variable in class jvm.client.JVMClient
Defines the default sleep delay for the read thread in the case of a call to the simple version of login() You may set this to some other value than the default.

Y

YesNoDialog - class jclass.YesNoDialog.
A simple Yes/No dialog with some text.
YesNoDialog(Frame, String, boolean, String, String, String) - Constructor for class jclass.YesNoDialog
Constructs a new dialog with the specified parameters.

A B C D E F G H I J L M N O P Q R S T U V W Y