Package org.jgroups.util
Provides useful functionality which cannot be assigned to any particular other package.
-
Interface Summary Interface Description AgeOutCache.Handler<K> Command The Command patttern (see Gamma et al.).SchedulerListener Provides callback for use with aScheduler
.Streamable Implementations of Streamable can add their state directly to the output stream, enabling them to bypass costly serializationThreadDecorator An object that can alter the state of a thread when it receives a callback from aThreadManager
notifying it that the thread has been created or released from use.ThreadFactory ThreadManager An object that manages threads and provides callbacks to aThreadDecorator
to allow it to alter their state.TimeScheduler.Task The interface that submitted tasks must implement -
Class Summary Class Description AckCollector AgeOutCache<K> Cache which removes its elements after a certain timeBoundedList<T> A bounded subclass of LinkedList, oldest elements are removed once max capacity is exceeded.Buffer Buffer with an offset and length.ContextObjectInputStream ObjectInputStream which sets a contact classloader for reading bytes into objects.DefaultThreadFactory Thread factory mainly responsible for naming of threads.Digest A message digest, which is used by the PBCAST layer for gossiping (also used by NAKACK for keeping track of current seqnos for all members).Digest.Entry Class keeping track of the lowest and highest sequence numbers delivered, and the highest sequence numbers received, per member.DirectExecutor ExposedBufferedInputStream ExposedBufferedOutputStream ExposedByteArrayInputStream ExposedByteArrayOutputStream Extends ByteArrayOutputStream, but exposes the internal buffer.ExposedDataOutputStream FIFOMessageQueue<K,V> Blocking queue which can only process 1 message per service concurrently, establishing FIFO order per sender.GetNetworkInterfaces Lists all network interfaces on a systemHeaders Open addressing based implementation of a hashmap (not supporting the Map interface though) for message headers.LazyThreadFactory Lazily names threads: whenever the address or cluster name is changed, all threads are renamedMagicObjectInputStream Uses magic numbers for class descriptorsMagicObjectOutputStream Uses magic numbers for class descriptorsMarshaller Title: JGroups Communications Description: Contact me at mail@filip.net Copyright: Copyright (c) 2002 Company: www.filip.netMutableDigest A mutable version of Digest (which is immutableOutgoingBufferPool Maintains a pool of ExposedDataOutputStreams.PortsManager Maintains a list of ports used on this host, associated with time stamps.Promise<T> Allows a thread to submit an asynchronous request and to wait for the result.Proxy Redirects incoming TCP connections to other hosts/ports.Queue Elements are added at the tail and removed from the head.Range ResponseCollector<T> Similar to AckCollector, but collects responses, not just acks.ReusableThread Reusable thread class.Rsp class that represents a response from a communicationRspList Contains responses from all members.Scheduler Implementation of a priority scheduler.Scheduler.Task SeqnoTable Maintains the highest received and highest delivered seqno per memberShutdownRejectedExecutionHandler ShutdownRejectedExecutionHandler is a decorator RejectedExecutionHandler used in all JGroups ThreadPoolExecutor(s).SizeBoundedQueue Queue as described in http://jira.jboss.com/jira/browse/JGRP-376.ThreadManagerThreadPoolExecutor ThreadPoolExecutor subclass that implements @{link ThreadManager}.ThreadPool Maintains a set of ReusableThreads.TimedWriter Waits until the buffer has been written to the output stream, or until timeout msecs have elapsed, whichever comes first.TimeScheduler Fixed-delay & fixed-rate single thread schedulerTriple<V1,V2,V3> Holds 3 values, useful when we have a map with a key, but more than 1 value and we don't want to create a separate holder object for the values, and don't want to pass the values as a list or array.Tuple<V1,V2> Holds 2 values, useful when we have a map with a key, but more than 1 value and we don't want to create a separate holder object for the values, and don't want to pass the values as a list or array.UnmodifiableVector Vector which cannot be modifiedUtil Collection of various utility routines that can not be assigned to other classes. -
Exception Summary Exception Description QueueClosedException