A B C D E F G H I J L M N O S T U V

A

asByteArray() - Method in class org.safehaus.uuid.EthernetAddress
Returns 6 byte byte array that contains the binary representation of this ethernet address; byte 0 is the most significant byte (and so forth)
asByteArray() - Method in class org.safehaus.uuid.UUID
Returns the UUID as a 16-byte byte array

B

BadAddressException - Exception in com.ccg.net.ethernet
Exception thrown when passed a bad value to decode a ethernet address from.

C

checkLoad() - Static method in class org.safehaus.uuid.NativeInterfaces
 
clone() - Method in class org.safehaus.uuid.EthernetAddress
Default cloning behaviour (bitwise copy) is just fine...
clone() - Method in class org.safehaus.uuid.UUID
Default cloning behaviour (bitwise copy) is just fine...
com.ccg.net.ethernet - package com.ccg.net.ethernet
 
compareTo(Object) - Method in class org.safehaus.uuid.EthernetAddress
Method that compares this EthernetAddress to one passed in as argument.
compareTo(Object) - Method in class org.safehaus.uuid.UUID
Let's also make UUIDs sortable.
connectToJavaUtilLogging(Logger) - Static method in class org.safehaus.uuid.ext.JavaUtilLogger
Static method to call to make JUG use to proxy all of its logging through the specified j.u.l Logger instance.
connectToJavaUtilLogging() - Static method in class org.safehaus.uuid.ext.JavaUtilLogger
Static method to call to make JUG use a log4j proxy all of its logging through a j.u.l Logger constructed to correspond with org.safehaus.uuid.Logger class (this generally determines j.u.l category output etc settings).
connectToLog4j(Logger) - Static method in class org.safehaus.uuid.ext.Log4jLogger
Static method to call to make JUG use to proxy all of its logging through the specified log4j Logger instance.
connectToLog4j() - Static method in class org.safehaus.uuid.ext.Log4jLogger
Static method to call to make JUG use a log4j proxy all of its logging through a log4j Logger constructed to correspond with org.safehaus.uuid.Logger class (this generally determines log4j category output etc settings).

D

deactivate() - Method in class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
deactivate() - Method in class org.safehaus.uuid.TimestampSynchronizer
Method UUIDTimer will call if this synchronizer object is being replaced by another synchronizer (or removed, that is, no more synchronization is to be done).
doDeactivate(LockedFile, LockedFile) - Static method in class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
doLogError(String) - Method in class org.safehaus.uuid.ext.JavaUtilLogger
 
doLogError(String) - Method in class org.safehaus.uuid.ext.Log4jLogger
 
doLogError(String) - Method in class org.safehaus.uuid.Logger
 
doLogInfo(String) - Method in class org.safehaus.uuid.ext.JavaUtilLogger
 
doLogInfo(String) - Method in class org.safehaus.uuid.ext.Log4jLogger
 
doLogInfo(String) - Method in class org.safehaus.uuid.Logger
 
doLogWarning(String) - Method in class org.safehaus.uuid.ext.JavaUtilLogger
 
doLogWarning(String) - Method in class org.safehaus.uuid.ext.Log4jLogger
 
doLogWarning(String) - Method in class org.safehaus.uuid.Logger
 
doSetLogLevel(int) - Method in class org.safehaus.uuid.Logger
 
doSetOutput(PrintStream) - Method in class org.safehaus.uuid.ext.JavaUtilLogger
Note: this method is meaningless with log4j, since it has more advanced output mapping and filtering mechanisms.
doSetOutput(Writer) - Method in class org.safehaus.uuid.ext.JavaUtilLogger
Note: this method is meaningless with log4j, since it has more advanced output mapping and filtering mechanisms.
doSetOutput(PrintStream) - Method in class org.safehaus.uuid.ext.Log4jLogger
Note: this method is meaningless with log4j, since it has more advanced output mapping and filtering mechanisms.
doSetOutput(Writer) - Method in class org.safehaus.uuid.ext.Log4jLogger
Note: this method is meaningless with log4j, since it has more advanced output mapping and filtering mechanisms.
doSetOutput(PrintStream) - Method in class org.safehaus.uuid.Logger
 
doSetOutput(Writer) - Method in class org.safehaus.uuid.Logger
 
doWrite(String) - Method in class org.safehaus.uuid.Logger
 

E

equals(Object) - Method in class com.ccg.net.ethernet.EthernetAddress
Determine if two ethernet address objects are "equal".
equals(Object) - Method in class org.safehaus.uuid.EthernetAddress
 
equals(Object) - Method in class org.safehaus.uuid.TagURI
 
equals(Object) - Method in class org.safehaus.uuid.UUID
Checking equality of UUIDs is easy; just compare the 128-bit number.
EthernetAddress - Class in com.ccg.net.ethernet
Manage ethernet address objects and provide a means to determine the ethernet address of the machine the JVM is running on.
EthernetAddress - Class in org.safehaus.uuid
EthernetAddress encapsulates the 6-byte Mac address defined in IEEE 802.1 standard.
EthernetAddress(String) - Constructor for class org.safehaus.uuid.EthernetAddress
String constructor; given a 'standard' ethernet MAC address string (like '00:C0:F0:3D:5B:7C'), constructs an EthernetAddress instance.
EthernetAddress(byte[]) - Constructor for class org.safehaus.uuid.EthernetAddress
Binary constructor that constructs an instance given the 6 byte (48-bit) address.
EthernetAddress(long) - Constructor for class org.safehaus.uuid.EthernetAddress
Another binary constructor; constructs an instance from the given long argument; the lowest 6 bytes contain the address.

F

FileBasedTimestampSynchronizer - Class in org.safehaus.uuid.ext
Implementation of TimestampSynchronizer, which uses file system as the storage and locking mechanism.
FileBasedTimestampSynchronizer() - Constructor for class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
Constructor that uses default values for names of files to use (files will get created in the current working directory), as well as for the update frequency value (10 seconds).
FileBasedTimestampSynchronizer(File, File) - Constructor for class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
FileBasedTimestampSynchronizer(File, File, long) - Constructor for class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
fromBytes(byte[]) - Static method in class com.ccg.net.ethernet.EthernetAddress
Set the binary ID of your ethernet adapter.
fromString(String) - Static method in class com.ccg.net.ethernet.EthernetAddress
Parse a ethernet address object from a string.

G

generateNameBasedUUID(UUID, String, MessageDigest) - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating name-based UUIDs, using the standard name-based generation method described in the UUID specs, and the caller supplied hashing method.
generateNameBasedUUID(UUID, String) - Method in class org.safehaus.uuid.UUIDGenerator
Method similar to the previous one; the difference being that a shared MD5 digest instance will be used.
generateRandomBasedUUID() - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating (pseudo-)random based UUIDs, using the default (shared) SecureRandom object.
generateRandomBasedUUID(Random) - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating (pseudo-)random based UUIDs, using the specified SecureRandom object.
generateTagURIBasedUUID(TagURI) - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating UUIDs using tag URIs.
generateTagURIBasedUUID(TagURI, MessageDigest) - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating UUIDs using tag URIs.
generateTimeBasedUUID() - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating time based UUIDs.
generateTimeBasedUUID(EthernetAddress) - Method in class org.safehaus.uuid.UUIDGenerator
Method for generating time based UUIDs.
getAllAdapters() - Static method in class com.ccg.net.ethernet.EthernetAddress
Get all of the ethernet addresses associated with the local machine.
getAllInterfaces() - Static method in class org.safehaus.uuid.NativeInterfaces
 
getBytes() - Method in class com.ccg.net.ethernet.EthernetAddress
Get the binary ID of your ethernet adapter.
getDummyAddress() - Method in class org.safehaus.uuid.UUIDGenerator
Method that returns a randomly generated dummy ethernet address.
getHashAlgorithm() - Method in class org.safehaus.uuid.UUIDGenerator
 
getInstance() - Static method in class org.safehaus.uuid.UUIDGenerator
Method used for accessing the singleton generator instance.
getNullUUID() - Static method in class org.safehaus.uuid.UUID
Accessor for getting the shared null UUID
getPrimaryAdapter() - Static method in class com.ccg.net.ethernet.EthernetAddress
Try to determine the primary ethernet address of the machine.
getPrimaryInterface() - Static method in class org.safehaus.uuid.NativeInterfaces
 
getRandomNumberGenerator() - Method in class org.safehaus.uuid.UUIDGenerator
Method for getting the shared random number generator used for generating the UUIDs.
getTimestamp(byte[]) - Method in class org.safehaus.uuid.UUIDTimer
 
getType() - Method in class org.safehaus.uuid.UUID
Returns the UUID type code

H

hashCode() - Method in class com.ccg.net.ethernet.EthernetAddress
Get a hash code for the object.
hashCode() - Method in class org.safehaus.uuid.UUID
 

I

INDEX_CLOCK_HI - Static variable in class org.safehaus.uuid.UUID
 
INDEX_CLOCK_LO - Static variable in class org.safehaus.uuid.UUID
 
INDEX_CLOCK_MID - Static variable in class org.safehaus.uuid.UUID
 
INDEX_CLOCK_SEQUENCE - Static variable in class org.safehaus.uuid.UUID
 
INDEX_TYPE - Static variable in class org.safehaus.uuid.UUID
 
INDEX_VARIATION - Static variable in class org.safehaus.uuid.UUID
 
initialize() - Method in class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
This method is to be called only once by UUIDTimer.
initialize() - Method in class org.safehaus.uuid.TimestampSynchronizer
Initialization method is will be called on an instance by UUIDTimer right after it's been configured with one.
isEnabled() - Method in class org.safehaus.uuid.Logger
Internal method used to quickly check if the Logger's output is suppressed or not.
isNull() - Method in class com.ccg.net.ethernet.EthernetAddress
Check to see if all bytes of the ethernet address are zero.
isNullUUID() - Method in class org.safehaus.uuid.UUID
 

J

JavaUtilLogger - Class in org.safehaus.uuid.ext
Simple wrapper that allows easy connecting of JUG logging into JDK 1.4+ logging implementation (aka "java.util.logging" aka "JUL".
Jug - Class in org.safehaus.uuid
Class that implements command-line interface for accessing functionality implemented by UUIDGenerator.
Jug() - Constructor for class org.safehaus.uuid.Jug
 

L

Log4jLogger - Class in org.safehaus.uuid.ext
Simple wrapper that allows easy connecting of JUG logging into log4j logging subsystem.
LOG_ALL - Static variable in class org.safehaus.uuid.Logger
 
LOG_ERROR_AND_ABOVE - Static variable in class org.safehaus.uuid.Logger
 
LOG_INFO_AND_ABOVE - Static variable in class org.safehaus.uuid.Logger
 
LOG_NOTHING - Static variable in class org.safehaus.uuid.Logger
 
LOG_WARNING_AND_ABOVE - Static variable in class org.safehaus.uuid.Logger
 
logError(String) - Static method in class org.safehaus.uuid.Logger
 
Logger - Class in org.safehaus.uuid
This is the simple logging interface used by JUG package.
Logger() - Constructor for class org.safehaus.uuid.Logger
 
logInfo(String) - Static method in class org.safehaus.uuid.Logger
 
logWarning(String) - Static method in class org.safehaus.uuid.Logger
 

M

main(String[]) - Static method in class org.safehaus.uuid.EthernetAddress
 
main(String[]) - Static method in class org.safehaus.uuid.Jug
 
main(String[]) - Static method in class org.safehaus.uuid.NativeInterfaces
Test driver to test if native ethernet adapter/interface access works ok.
main(String[]) - Static method in class org.safehaus.uuid.TagURI
A simple test harness is added to make (automated) testing of the class easier.
main(String[]) - Static method in class org.safehaus.uuid.UUID
 
main(String[]) - Static method in class org.safehaus.uuid.UUIDGenerator
A simple test harness is added to make (automated) testing of the class easier.
mLogLevel - Variable in class org.safehaus.uuid.Logger
Threshold to use for outputting varius log statements.
mOutput1 - Variable in class org.safehaus.uuid.Logger
Output object to use, if defined; initialized to System.err.
mOutput2 - Variable in class org.safehaus.uuid.Logger
Override output used to explicitly specify where to pass diagnostic output, instead of System.err.

N

NAMESPACE_DNS - Static variable in class org.safehaus.uuid.UUID
 
NAMESPACE_OID - Static variable in class org.safehaus.uuid.UUID
 
NAMESPACE_URL - Static variable in class org.safehaus.uuid.UUID
 
NAMESPACE_X500 - Static variable in class org.safehaus.uuid.UUID
 
NativeInterfaces - Class in org.safehaus.uuid
Proxy class that uses JNI-based functionality to obtain information about local interfaces.
NativeInterfaces() - Constructor for class org.safehaus.uuid.NativeInterfaces
 
NULL - Static variable in class com.ccg.net.ethernet.EthernetAddress
Constant ethernet address object which has the "null address".

O

org.safehaus.uuid - package org.safehaus.uuid
Package that contains core (non-optional) Jug classes.
org.safehaus.uuid.ext - package org.safehaus.uuid.ext
Package that contains optional Jug classes; classes that either: Depend on optional external packages; like log4j or java.util.logging - based Logger adapters.

S

sDefaultLibSubdir - Static variable in class org.safehaus.uuid.NativeInterfaces
 
setDescCaching(boolean) - Static method in class org.safehaus.uuid.UUID
 
setLibDir(File) - Static method in class org.safehaus.uuid.NativeInterfaces
Method that allows overriding of default library directory, to allow loading of native interface access code from specific application dependant location.
setLogger(Logger) - Static method in class org.safehaus.uuid.Logger
Method that can be used to completely re-define the logging functionality JUG uses.
setLogLevel(int) - Static method in class org.safehaus.uuid.Logger
Method to set the minimum level of messages that will get logged using currently specific logger instace.
setOutput(PrintStream) - Static method in class org.safehaus.uuid.Logger
Method that will re-direct output of the logger using the specified PrintStream.
setOutput(Writer) - Static method in class org.safehaus.uuid.Logger
Method that will re-direct output of the logger using the specified Writer.
setRandomNumberGenerator(Random) - Method in class org.safehaus.uuid.UUIDGenerator
Method that can be called to specify alternative random number generator to use.
setSynchronizer(TimestampSynchronizer) - Method in class org.safehaus.uuid.UUIDTimer
 
setUpdateInterval(long) - Method in class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
setUseStdLibDir(boolean) - Static method in class org.safehaus.uuid.NativeInterfaces
 
synchronizeExternally(TimestampSynchronizer) - Method in class org.safehaus.uuid.UUIDGenerator
Method that can (and should) be called once right after getting the instance, to ensure that system time stamp values used are valid (with respect to values used earlier by JUG instances), and to use file-lock based synchronization mechanism to prevent multiple JVMs from running conflicting instances of JUG (first one to be started wins on contention).

T

TagURI - Class in org.safehaus.uuid
A class that allows creation of tagURI instances.
TagURI(String, String, Calendar) - Constructor for class org.safehaus.uuid.TagURI
Constructor for creating tagURI instances.
TimestampSynchronizer - Class in org.safehaus.uuid
This is the API for utility classes optionally used by UUIDTimer to ensure that timestamp values used for generating time/location-based UUIDs are monotonically increasing, as well as that only one such generator is ever used on a single system, even in presence of multiple JVMs.
TimestampSynchronizer() - Constructor for class org.safehaus.uuid.TimestampSynchronizer
 
toByteArray() - Method in class org.safehaus.uuid.EthernetAddress
Synonym to 'asByteArray()'
toByteArray(byte[]) - Method in class org.safehaus.uuid.EthernetAddress
 
toByteArray(byte[], int) - Method in class org.safehaus.uuid.EthernetAddress
 
toByteArray(byte[], int) - Method in class org.safehaus.uuid.UUID
Fills in the 16 bytes (from index pos) of the specified byte array with the UUID contents.
toByteArray(byte[]) - Method in class org.safehaus.uuid.UUID
 
toByteArray() - Method in class org.safehaus.uuid.UUID
'Synonym' for 'asByteArray'
toLong() - Method in class org.safehaus.uuid.EthernetAddress
 
toString() - Method in class com.ccg.net.ethernet.EthernetAddress
Get the string representation of the ethernet address.
toString() - Method in class org.safehaus.uuid.EthernetAddress
Returns the canonical string representation of this ethernet address.
toString() - Method in class org.safehaus.uuid.TagURI
 
toString() - Method in class org.safehaus.uuid.UUID
 
TYPE_DCE - Static variable in class org.safehaus.uuid.UUID
 
TYPE_NAME_BASED - Static variable in class org.safehaus.uuid.UUID
 
TYPE_NULL - Static variable in class org.safehaus.uuid.UUID
 
TYPE_RANDOM_BASED - Static variable in class org.safehaus.uuid.UUID
 
TYPE_TIME_BASED - Static variable in class org.safehaus.uuid.UUID
 

U

update(long) - Method in class org.safehaus.uuid.ext.FileBasedTimestampSynchronizer
 
update(long) - Method in class org.safehaus.uuid.TimestampSynchronizer
Method called by UUIDTimer to indicate that it has generated a timestamp value that is beyond last legal timestamp value.
UUID - Class in org.safehaus.uuid
UUID represents Universally Unique Identifiers (aka Global UID in Windows world).
UUID() - Constructor for class org.safehaus.uuid.UUID
Default constructor creates a NIL UUID, one that contains all zeroes Note that the clearing of array is actually unnecessary as JVMs are required to clear up the allocated arrays by default.
UUID(byte[]) - Constructor for class org.safehaus.uuid.UUID
Constructor for cases where you already have the 16-byte binary representation of the UUID (for example if you save UUIDs binary takes less than half of space string representation takes).
UUID(byte[], int) - Constructor for class org.safehaus.uuid.UUID
Constructor for cases where you already have the binary representation of the UUID (for example if you save UUIDs binary takes less than half of space string representation takes) in a byte array
UUID(String) - Constructor for class org.safehaus.uuid.UUID
Constructor for creating UUIDs from the canonical string representation Note that implementation is optimized for speed, not necessarily code clarity...
UUIDGenerator - Class in org.safehaus.uuid
UUIDGenerator is the class that contains factory methods for generating UUIDs using one of the three specified 'standard' UUID generation methods: (see draft-leach-uuids-guids-01.txt for details) Time-based generation generates UUID using spatial and temporal uniqueness.
UUIDTimer - Class in org.safehaus.uuid
UUIDTimer produces the time stamps required for time-based UUIDs.
UUIDTimer(Random) - Constructor for class org.safehaus.uuid.UUIDTimer
 

V

valueOf(byte[]) - Static method in class org.safehaus.uuid.EthernetAddress
Constructs a new EthernetAddress given the byte array that contains binary representation of the address.
valueOf(int[]) - Static method in class org.safehaus.uuid.EthernetAddress
Constructs a new EthernetAddress given the byte array that contains binary representation of the address.
valueOf(String) - Static method in class org.safehaus.uuid.EthernetAddress
Constructs a new EthernetAddress given a string representation of the ethernet address.
valueOf(long) - Static method in class org.safehaus.uuid.EthernetAddress
Constructs a new EthernetAddress given the long int value (64-bit) representation of the ethernet address (of which 48 LSB contain the definition) Note that calling this method returns the same result as would using the matching constructor.
valueOf(String) - Static method in class org.safehaus.uuid.UUID
Constructs a new UUID instance given the canonical string representation of an UUID.
valueOf(byte[], int) - Static method in class org.safehaus.uuid.UUID
Constructs a new UUID instance given a byte array that contains the (16 byte) binary representation.
valueOf(byte[]) - Static method in class org.safehaus.uuid.UUID
Constructs a new UUID instance given a byte array that contains the (16 byte) binary representation.

A B C D E F G H I J L M N O S T U V