Skip navigation links
A B C D E F G H I L M N O P R S T U W 

A

addNewConnectionListener(INewClientSocketListener) - Method in class com.buabook.common.net.SocketAcceptorThread
 
addShutdownFunction(ShutdownFunction) - Method in class com.buabook.common.shutdown.ShutdownThread
 
addShutdownListener(ShutdownThread) - Static method in class com.buabook.common.shutdown.ShutdownThread
Adds the specified shutdown listener to be executed when the JVM signals its going to halt
applicationName - Variable in class com.buabook.common.shutdown.ShutdownThread
 
arrayToString(Object[]) - Static method in class com.buabook.common.Printers
 

B

bindToPort - Variable in class com.buabook.common.net.SocketAcceptorThread
 

C

com.buabook.common - package com.buabook.common
 
com.buabook.common.concurrent - package com.buabook.common.concurrent
 
com.buabook.common.connection - package com.buabook.common.connection
 
com.buabook.common.net - package com.buabook.common.net
 
com.buabook.common.net.exceptions - package com.buabook.common.net.exceptions
 
com.buabook.common.net.interfaces - package com.buabook.common.net.interfaces
 
com.buabook.common.random - package com.buabook.common.random
 
com.buabook.common.shutdown - package com.buabook.common.shutdown
 
convertStringToClass(String, Class<T>) - Static method in class com.buabook.common.Objects
Converts a string into the specified class type by assuming a new instance of the class can be constructed with a string argument (e.g.

D

DataSocket - Class in com.buabook.common.net
Simple Socket Wrapper
DataSocket(Socket) - Constructor for class com.buabook.common.net.DataSocket
Instantiates the wrapper object based on an existing Socket
DataSocketFailedToInitialiseException - Exception in com.buabook.common.net.exceptions
(c) 2014 - 2017 Sport Trades Ltd
DataSocketFailedToInitialiseException() - Constructor for exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
DataSocketFailedToInitialiseException(String) - Constructor for exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
DataSocketFailedToInitialiseException(Throwable) - Constructor for exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
DataSocketFailedToInitialiseException(String, Throwable) - Constructor for exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
DataSocketFailedToInitialiseException(String, Throwable, boolean, boolean) - Constructor for exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
DATE_DASH - Static variable in class com.buabook.common.Formatters
Will print Joda DateTime as date with dashes (e.g.
DATE_DOT - Static variable in class com.buabook.common.Formatters
Will print Joda DateTime as date with dots (e.g.
DATE_TIME_DASH - Static variable in class com.buabook.common.Formatters
Will print Joda DateTime as date/time (24-hour time) with dashes (e.g.
DATE_TIME_LOG - Static variable in class com.buabook.common.Formatters
Will print Joda DateTime as date/time for logging (e.g.
disconnect() - Method in class com.buabook.common.net.DataSocket
Disconnects the socket.
doShutdown() - Method in interface com.buabook.common.shutdown.ShutdownFunction
 

E

equals(Object) - Method in class com.buabook.common.connection.Process
 

F

FailedToBindToPortException - Exception in com.buabook.common.net.exceptions
(c) 2014 Sport Trades Ltd
FailedToBindToPortException() - Constructor for exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
FailedToBindToPortException(String) - Constructor for exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
FailedToBindToPortException(Throwable) - Constructor for exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
FailedToBindToPortException(String, Throwable) - Constructor for exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
FailedToBindToPortException(String, Throwable, boolean, boolean) - Constructor for exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
Formatters - Class in com.buabook.common
Data Formatters
Formatters() - Constructor for class com.buabook.common.Formatters
 
FRIENDLY_DATE_TIME - Static variable in class com.buabook.common.Formatters
Will print Joda DateTime as user-friendly date with 24 hour time (e.g.

G

generateCode(int) - Method in class com.buabook.common.random.RandomCodeGenerator
NOTE: The generated code is not guaranteed to be unique.
getApplicationRoot(Class<?>) - Static method in class com.buabook.common.Systems
Determines the root folder that the application is running from based on the location of class containing the application main method.
getConfig(String) - Static method in class com.buabook.common.Systems
Provides a way of retrieving system configuration from either an environment variable first or, if not set, then a Java system property.
getContentsFromClassPath(String) - Static method in class com.buabook.common.Resources
 
getHostname() - Method in class com.buabook.common.connection.Process
 
getListJoiner() - Static method in class com.buabook.common.Printers
 
getNullUuid() - Static method in class com.buabook.common.Uuids
 
getObjectFieldsAsMap(Object) - Static method in class com.buabook.common.Objects
Extracts all fields, including private fields, from the specified object and returns them in a Map.
getPort() - Method in class com.buabook.common.connection.Process
 
getReceiveStream() - Method in class com.buabook.common.net.DataSocket
 
getRemoteSocketAddress() - Method in class com.buabook.common.net.DataSocket
 
getSendStream() - Method in class com.buabook.common.net.DataSocket
 

H

hashCode() - Method in class com.buabook.common.connection.Process
 
hostname - Variable in class com.buabook.common.connection.Process
 

I

INewClientSocketListener - Interface in com.buabook.common.net.interfaces
New Client Socket Connection Listener
initialiseIOStreams() - Method in class com.buabook.common.net.DataSocket
 
IS_VALID_EMAIL - Static variable in class com.buabook.common.Patterns
 
isClosed() - Method in class com.buabook.common.net.DataSocket
 
isNullOrEmpty(UUID) - Static method in class com.buabook.common.Uuids
Tests if the specified parameter is a null or an empty UUID.
isValidEmail(String) - Static method in class com.buabook.common.Patterns
 

L

LIST_JOINER - Static variable in class com.buabook.common.Printers
 
listToString(List<?>) - Static method in class com.buabook.common.Printers
 
log - Static variable in class com.buabook.common.net.DataSocket
 
log - Static variable in class com.buabook.common.net.SocketAcceptorThread
 
log - Static variable in class com.buabook.common.shutdown.ShutdownThread
 

M

message - Static variable in exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
message - Static variable in exception com.buabook.common.net.exceptions.FailedToBindToPortException
 

N

NamedThreadFactory - Class in com.buabook.common.concurrent
ThreadFactory with Custom Name Prefixes
NamedThreadFactory(String) - Constructor for class com.buabook.common.concurrent.NamedThreadFactory
 
newConnectionListeners - Variable in class com.buabook.common.net.SocketAcceptorThread
 
newThread(Runnable) - Method in class com.buabook.common.concurrent.NamedThreadFactory
 
notifyNewClientSocket(Socket) - Method in interface com.buabook.common.net.interfaces.INewClientSocketListener
Method called when a new client socket is accepted (via ServerSocket.accept()).
NULL_UUID - Static variable in class com.buabook.common.Uuids
 

O

Objects - Class in com.buabook.common
Object Helper Functions
Objects() - Constructor for class com.buabook.common.Objects
 
openServerSocket(Process) - Static method in class com.buabook.common.net.SocketAcceptorThread
Opens the ServerSocket on the specified port

P

Patterns - Class in com.buabook.common
Common Regular Expressions (as Pattern)
Patterns() - Constructor for class com.buabook.common.Patterns
 
port - Variable in class com.buabook.common.connection.Process
 
Printers - Class in com.buabook.common
Object to String Printers - For Logging
Printers() - Constructor for class com.buabook.common.Printers
 
Process - Class in com.buabook.common.connection
Generic Server Definition Container
Process(String, Integer) - Constructor for class com.buabook.common.connection.Process
 
Process(String, String) - Constructor for class com.buabook.common.connection.Process
Provides object instantiation with the port as a String and performs the cast to Integer as part of the construction

R

random - Variable in class com.buabook.common.random.RandomCodeGenerator
 
RandomCodeGenerator - Class in com.buabook.common.random
Random Uber-like Code Generator
RandomCodeGenerator() - Constructor for class com.buabook.common.random.RandomCodeGenerator
 
receiveStream - Variable in class com.buabook.common.net.DataSocket
 
reconnect() - Method in class com.buabook.common.net.DataSocket
This method will only attempt a reconnect on a disconnected socket (i.e.
remoteSocketAddress - Variable in class com.buabook.common.net.DataSocket
 
removeConnectionListener(INewClientSocketListener) - Method in class com.buabook.common.net.SocketAcceptorThread
 
Resources - Class in com.buabook.common
Class Path Loading of Resources
Resources() - Constructor for class com.buabook.common.Resources
 
run() - Method in class com.buabook.common.net.SocketAcceptorThread
 
run() - Method in class com.buabook.common.shutdown.ShutdownThread
 

S

sendStream - Variable in class com.buabook.common.net.DataSocket
 
serialVersionUID - Static variable in exception com.buabook.common.net.exceptions.DataSocketFailedToInitialiseException
 
serialVersionUID - Static variable in exception com.buabook.common.net.exceptions.FailedToBindToPortException
 
serverSocket - Variable in class com.buabook.common.net.SocketAcceptorThread
 
ShutdownFunction - Interface in com.buabook.common.shutdown
Shutdown Function Interface for ShutdownThread
shutdownFunctions - Variable in class com.buabook.common.shutdown.ShutdownThread
 
ShutdownThread - Class in com.buabook.common.shutdown
Shutdown Hook Thread
ShutdownThread(String) - Constructor for class com.buabook.common.shutdown.ShutdownThread
 
ShutdownThread(String, List<ShutdownFunction>) - Constructor for class com.buabook.common.shutdown.ShutdownThread
 
socket - Variable in class com.buabook.common.net.DataSocket
The socket that is wrapped by this class.
SocketAcceptorThread - Class in com.buabook.common.net
Socket Acceptor Thread
SocketAcceptorThread(Process) - Constructor for class com.buabook.common.net.SocketAcceptorThread
 
split(String, String) - Static method in class com.buabook.common.StringSplitter
Provides a more reliable version of String.split(String), using Guava's Splitter.
splitAndIgnoreEmpty(String, String) - Static method in class com.buabook.common.StringSplitter
Provides a more reliable version of String.split(String), using Guava's Splitter.
StringSplitter - Class in com.buabook.common
StringSplitter() - Constructor for class com.buabook.common.StringSplitter
 
Systems - Class in com.buabook.common
Host System Interface Methods
Systems() - Constructor for class com.buabook.common.Systems
 

T

threadCounter - Variable in class com.buabook.common.concurrent.NamedThreadFactory
 
threadPrefix - Variable in class com.buabook.common.concurrent.NamedThreadFactory
 
TO_CURRENCY - Static variable in class com.buabook.common.Formatters
Will convert a decimal to currency format (e.g.
TO_STRING_RADIX - Static variable in class com.buabook.common.random.RandomCodeGenerator
 
toString() - Method in class com.buabook.common.connection.Process
 

U

Uuids - Class in com.buabook.common
Helper Functions for UUID
Uuids() - Constructor for class com.buabook.common.Uuids
 

W

waitForClient() - Method in class com.buabook.common.net.SocketAcceptorThread
Blocks the thread and waits for a new inbound client to connect.
A B C D E F G H I L M N O P R S T U W 
Skip navigation links

Copyright © 2017. All rights reserved.