A B C F G H I J L M N P R S T W

A

addConnection(Object, Object) - Method in interface com.ch.odi.common.graphs.Graph
Creates a connection between two nodes in a graph.
addConnection(Object, Object) - Method in class com.ch.odi.common.graphs.HashGraph
Creates a connection between two nodes in a graph.
addNode(Object, Object) - Method in interface com.ch.odi.common.graphs.Graph
Adds a node to the graph.
addNode(Object, Object) - Method in class com.ch.odi.common.graphs.HashGraph
Adds a node to the graph.
addSchedulerListener(SchedulerListener) - Method in class com.ch.odi.parallel.ParallelScheduler
 
available() - Method in class com.ch.odi.io.BandwidthLimitInputStream
 

B

BandwidthLimitInputStream - class com.ch.odi.io.BandwidthLimitInputStream.
Description: This is an input stream that limits throughput.
BandwidthLimitInputStream(InputStream) - Constructor for class com.ch.odi.io.BandwidthLimitInputStream
Creates a Stream The default limit is 9600 bytes per second
BandwidthLimitOutputStream - class com.ch.odi.io.BandwidthLimitOutputStream.
Description: This in an output stream that limits throughput Copyright: Copyright (c) 2001
BandwidthLimitOutputStream(OutputStream) - Constructor for class com.ch.odi.io.BandwidthLimitOutputStream
Creates a Stream The default limit is 9600 bytes per second

C

Cache - class com.ch.odi.common.Cache.
Description: This is an expiring cache.
cleanString(String, int) - Static method in class com.ch.odi.common.Strings
Replaces single apostrophes (') with double apostrophes('') for use in SQL queries and cuts the string to a maximum length.
close() - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
com.ch.odi.common - package com.ch.odi.common
 
com.ch.odi.common.graphs - package com.ch.odi.common.graphs
 
com.ch.odi.io - package com.ch.odi.io
 
com.ch.odi.net - package com.ch.odi.net
 
com.ch.odi.parallel - package com.ch.odi.parallel
 
ConnectionHandler - interface com.ch.odi.net.ConnectionHandler.
Description: A ConnectionHandler handles an incoming network connection.
contains(Object) - Method in interface com.ch.odi.common.graphs.Graph
Checks if a node is in the graph.
contains(Object) - Method in class com.ch.odi.common.graphs.HashGraph
Checks if a node is in the graph.

F

findShortestPath(Object, Collection) - Method in class com.ch.odi.common.graphs.Pathfinder
Finds the shortest path from a start node to the closest of end nodes.
findShortestPath(Object, Object) - Method in class com.ch.odi.common.graphs.Pathfinder
Finds the shortest path between two nodes.

G

getInstance() - Static method in class com.ch.odi.common.Cache
Returns the Cache instance.
getJob() - Method in class com.ch.odi.parallel.SchedulerEvent
Gets the job that caused the event.
getNeighbours(Object) - Method in interface com.ch.odi.common.graphs.Graph
Gets all nodes connected to the specified node.
getNeighbours(Object) - Method in class com.ch.odi.common.graphs.HashGraph
Gets all nodes connected to the specified node.
getNextJob() - Method in interface com.ch.odi.parallel.JobFactory
Returns a new ParallelJob
getNodes() - Method in interface com.ch.odi.common.graphs.Graph
Gets all the nodes in the graph.
getNodes() - Method in class com.ch.odi.common.graphs.HashGraph
Gets all the nodes in the graph.
getSched() - Method in class com.ch.odi.parallel.SchedulerEvent
Gets the PrallelScheduler that caused the event.
getScheduler() - Method in class com.ch.odi.parallel.ParallelJob
Returns the scheduler that was set with the setScheduler method.
Graph - interface com.ch.odi.common.graphs.Graph.
Description: A graph consists of interconnected nodes.
GraphException - exception com.ch.odi.common.graphs.GraphException.
Title: Description: Copyright: Copyright (c) 2002 Ortwin Glück Company:
GraphException(String) - Constructor for class com.ch.odi.common.graphs.GraphException
 

H

handle(Socket) - Method in interface com.ch.odi.net.ConnectionHandler
The implementing class should handle the connection here.
Hashes - class com.ch.odi.common.Hashes.
Description: This class contains static functions that operate on Hashtables and similar objects.
Hashes() - Constructor for class com.ch.odi.common.Hashes
 
HashGraph - class com.ch.odi.common.graphs.HashGraph.
Title: Thread safe implementation of a graph with hashtables.
HashGraph() - Constructor for class com.ch.odi.common.graphs.HashGraph
 
hasMoreJobs() - Method in interface com.ch.odi.parallel.JobFactory
Returns true if there are any more jobs.

I

isConnected(Object, Object) - Method in interface com.ch.odi.common.graphs.Graph
Checks if two nodes are connected.
isConnected(Object, Object) - Method in class com.ch.odi.common.graphs.HashGraph
Checks if two nodes are connected.
isEmpty() - Method in class com.ch.odi.common.graphs.HashGraph
Checks if the graph contains any nodes.
isStopped() - Method in interface com.ch.odi.net.ConnectionHandler
The PortListener uses this method.

J

jobEnded(SchedulerEvent) - Method in interface com.ch.odi.parallel.SchedulerListener
Fired after a ParallelJob ends.
JobFactory - interface com.ch.odi.parallel.JobFactory.
 

L

LastConnectionException - exception com.ch.odi.common.graphs.LastConnectionException.
Title: Description: Copyright: Copyright (c) 2002 Ortwin Glück Company:
LastConnectionException() - Constructor for class com.ch.odi.common.graphs.LastConnectionException
 
listen() - Method in class com.ch.odi.net.PortListener
Starts listening on the port.
log(String) - Method in interface com.ch.odi.net.ConnectionHandler
The PortListener sends status messages to this method.

M

mark(int) - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
markSupported() - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
multiKeyPut(Hashtable, Collection, Object) - Static method in class com.ch.odi.common.Hashes
Inserts multiple keys with the same value into a hashtable.

N

NetworkThread - class com.ch.odi.net.NetworkThread.
These methods should go to a new TokenizedReader class.
NetworkThread() - Constructor for class com.ch.odi.net.NetworkThread
 
NoSuchNodeException - exception com.ch.odi.common.graphs.NoSuchNodeException.
Title: Description: Copyright: Copyright (c) 2002 Ortwin Glück Company:
NoSuchNodeException() - Constructor for class com.ch.odi.common.graphs.NoSuchNodeException
 
NoSuchNodeException(String) - Constructor for class com.ch.odi.common.graphs.NoSuchNodeException
 
notifyJobEnd(ParallelJob) - Method in class com.ch.odi.parallel.ParallelScheduler
Called by the ParallelJob class to notify this scheduler that a thread has ended.

P

ParallelJob - class com.ch.odi.parallel.ParallelJob.
 
ParallelJob() - Constructor for class com.ch.odi.parallel.ParallelJob
 
ParallelScheduler - class com.ch.odi.parallel.ParallelScheduler.
 
ParallelScheduler(JobFactory) - Constructor for class com.ch.odi.parallel.ParallelScheduler
Creates a new Scheduler that uses the specified factory to produce jobs.
ParallelScheduler(JobFactory, int) - Constructor for class com.ch.odi.parallel.ParallelScheduler
Creates a new Scheduler that uses the specified factory to produce jobs.
Pathfinder - class com.ch.odi.common.graphs.Pathfinder.
Title: Finds the shortest path between two nodes in a graph.
Pathfinder(Graph) - Constructor for class com.ch.odi.common.graphs.Pathfinder
 
PortListener - class com.ch.odi.net.PortListener.
Description: This object listens on a port and passes incoming connections to a custom handler object.
PortListener() - Constructor for class com.ch.odi.net.PortListener
Deprecated. You should not create empty PortListeners
PortListener(int, ConnectionHandler) - Constructor for class com.ch.odi.net.PortListener
Creates a new PortListener
PortListenerThread - class com.ch.odi.net.PortListenerThread.
Description: Wraps a PortListener into its own thread.
PortListenerThread(int, ConnectionHandler) - Constructor for class com.ch.odi.net.PortListenerThread
Creates a new PortListenerThread

R

read() - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
read(byte[]) - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
read(byte[], int, int) - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
removeConnection(Object, Object) - Method in interface com.ch.odi.common.graphs.Graph
Removes a connection between two nodes.
removeConnection(Object, Object) - Method in class com.ch.odi.common.graphs.HashGraph
Removes a connection between two nodes.
removeNode(Object) - Method in interface com.ch.odi.common.graphs.Graph
Removes a node an all its connections from the graph.
removeNode(Object) - Method in class com.ch.odi.common.graphs.HashGraph
Removes a node and all its connections from the graph.
removeSchedulerListener(SchedulerListener) - Method in class com.ch.odi.parallel.ParallelScheduler
 
replace(String, String, String) - Static method in class com.ch.odi.common.Strings
Replaces all occurences of a string with another string.
reset() - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
retrieve(String) - Method in class com.ch.odi.common.Cache
Gets an object from the cache by its name The object is referenced by its name specified when it was stored.
run() - Method in class com.ch.odi.net.NetworkThread
 
run() - Method in class com.ch.odi.net.PortListenerThread
Starts listening.
run() - Method in class com.ch.odi.parallel.ParallelJob
Called by the scheduler
run() - Method in class com.ch.odi.parallel.ParallelScheduler
Starts the scheduler.

S

SchedulerEvent - class com.ch.odi.parallel.SchedulerEvent.
Title: Description: Copyright: Copyright (c) 2002 Ortwin Glück Company:
SchedulerEvent(ParallelScheduler, ParallelJob) - Constructor for class com.ch.odi.parallel.SchedulerEvent
Creates a new SchedulerEvent.
SchedulerListener - interface com.ch.odi.parallel.SchedulerListener.
Title: Description: Copyright: Copyright (c) 2002 Ortwin Glück Company:
setConnectionHandler(ConnectionHandler) - Method in class com.ch.odi.net.PortListener
Deprecated. You should not change the connection handler
setHopLimit(int) - Method in class com.ch.odi.common.graphs.Pathfinder
Sets the maximum number of hops.
setLimit(int, long) - Method in class com.ch.odi.io.BandwidthLimitOutputStream
Sets the bandwidth limit Sample: bytes=300, time=500 means you can not write more than 300 bytes in 500 milliseconds
setLimit(int, long) - Method in class com.ch.odi.io.BandwidthLimitInputStream
Sets the bandwidth limit Sample: bytes=300, time=500 means you can not read more than 300 bytes within 500 milliseconds
setMaxThreads(int) - Method in class com.ch.odi.parallel.ParallelScheduler
Sets the maximum number of threads that are running at the same time.
setPort(int) - Method in class com.ch.odi.net.PortListener
Deprecated. You should not change the port
setScheduler(ParallelScheduler) - Method in class com.ch.odi.parallel.ParallelJob
The scheduler must register itself with this method befor starting the thread.
size() - Method in interface com.ch.odi.common.graphs.Graph
Gets the number of nodes in the graph.
size() - Method in class com.ch.odi.common.graphs.HashGraph
 
skip(long) - Method in class com.ch.odi.io.BandwidthLimitInputStream
 
start() - Method in class com.ch.odi.parallel.ParallelJob
The implementing class can override this method to do the actual work.
stopListening() - Method in class com.ch.odi.net.PortListener
Stops listening on the port.
store(String, Object, int) - Method in class com.ch.odi.common.Cache
Puts an object into the cache The object obj is put into the cache under the specified unique name.
Strings - class com.ch.odi.common.Strings.
Description: This class contains static functions that operate on Strings.
Strings() - Constructor for class com.ch.odi.common.Strings
 

T

TTL_1DAY - Static variable in class com.ch.odi.common.Cache
 
TTL_1HOUR - Static variable in class com.ch.odi.common.Cache
 
TTL_1MIN - Static variable in class com.ch.odi.common.Cache
 
TTL_1WEEK - Static variable in class com.ch.odi.common.Cache
 
TTL_5MIN - Static variable in class com.ch.odi.common.Cache
 
TTL_5SEC - Static variable in class com.ch.odi.common.Cache
 

W

write(byte[]) - Method in class com.ch.odi.io.BandwidthLimitOutputStream
 
write(byte[], int, int) - Method in class com.ch.odi.io.BandwidthLimitOutputStream
 
write(int) - Method in class com.ch.odi.io.BandwidthLimitOutputStream
 

A B C F G H I J L M N P R S T W