java.lang.Object
com.aoindustries.aoserv.master.RandomHandler
The
RandomHandler
stores obtains a pool of random data from servers that have excess and provides
this data to those servers that need more.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
addMasterEntropy
(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) static FifoFile
static int
getMasterEntropy
(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) static long
getMasterEntropyNeeded
(DatabaseConnection conn, RequestSource source)
-
Method Details
-
getFifoFile
- Throws:
IOException
-
addMasterEntropy
public static long addMasterEntropy(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) throws IOException, SQLException - Throws:
IOException
SQLException
-
getMasterEntropy
public static int getMasterEntropy(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) throws IOException, SQLException - Throws:
IOException
SQLException
-
getMasterEntropyNeeded
public static long getMasterEntropyNeeded(DatabaseConnection conn, RequestSource source) throws IOException, SQLException - Throws:
IOException
SQLException
-