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 longaddMasterEntropy(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) static FifoFilestatic intgetMasterEntropy(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) static longgetMasterEntropyNeeded(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:
IOExceptionSQLException
-
getMasterEntropy
public static int getMasterEntropy(DatabaseConnection conn, RequestSource source, byte[] entropy, int numBytes) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getMasterEntropyNeeded
public static long getMasterEntropyNeeded(DatabaseConnection conn, RequestSource source) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
