@NotThreadSafe public abstract static class ServerSupport.Abstract extends Object implements ServerSupport
ServerSupport.Abstract| Constructor and Description |
|---|
Abstract() |
| Modifier and Type | Method and Description |
|---|---|
protected static Method |
getMethod(Class<?> objectClass,
String methodName,
Class<?>... parameterTypes)
Gets a method for a class.
|
protected static Method |
getMethod(Object instance,
String methodName,
Class<?>... parameterTypes)
Gets a method for an object instance.
|
protected Logger |
getThisLogger()
Gets the logger.
|
protected static Optional<Object> |
invoke(Method method,
Object... args)
Invokes a static method.
|
protected static Optional<Object> |
invoke(Object instance,
Method method,
Object... args)
Invokes a method on an object instance.
|
protected static void |
setSystemProperty(String key,
Optional<String> value)
Sets a system property.
|
boolean |
setUp(KeyedGroups supportProperties,
File dataDir)
Sets up the database server.
|
void |
tearDown()
Tears down what has been set up.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionURL, getDialectSupport, start, stoppublic boolean setUp(KeyedGroups supportProperties, File dataDir)
setUp in interface ServerSupportsupportProperties - The support configuration properties.dataDir - The database data directory.public void tearDown()
tearDown in interface ServerSupport@Nonnull
@CheckReturnValue
protected static Method getMethod(@Nonnull
Class<?> objectClass,
@Nonnull
String methodName,
Class<?>... parameterTypes)
objectClass - The object class.methodName - The method name.parameterTypes - The parameter types.@Nonnull
@CheckReturnValue
protected static Method getMethod(@Nonnull
Object instance,
@Nonnull
String methodName,
Class<?>... parameterTypes)
instance - The object instance.methodName - The method name.parameterTypes - The parameter types.@Nonnull
protected static Optional<Object> invoke(@Nonnull
Method method,
@Nonnull
Object... args)
method - The static method.args - The arguments for the method.@Nonnull
protected static Optional<Object> invoke(@Nonnull
Object instance,
@Nonnull
Method method,
@Nonnull
Object... args)
instance - The object instance.method - The method.args - The arguments for the method.protected static void setSystemProperty(@Nonnull
String key,
@Nonnull
Optional<String> value)
key - The property key.value - The optional property value.@Nonnull @CheckReturnValue protected final Logger getThisLogger()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.