Package de.bytestore.hostinger.handler
Klasse ProcessHandler
java.lang.Object
de.bytestore.hostinger.handler.ProcessHandler
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
attach
(Process processIO, ProcessConsole listenerIO) Attaches a Process Console to a process by invoking the attach method for all Process Listeners.static void
Creates a new process by executing the create method for all Process Listeners.static void
Executes a command for a process by invoking the execute method for all Process Listeners.static boolean
This method checks if the given entity exists in the database.static ProcessExtensionConfig
Retrieves the configuration for the specified provider.static List<ProcessExtensionPoint>
list()
Return all ExtensionPoints for Process API.static String
Retrieves the logback configuration for a process by invoking the logback method for all Process Listeners.static void
Removes the given process by executing the remove method for all Process Listeners.static void
Starts the given process by executing the start method for all Process Listeners.static ProcessStats
Returns the statistics of a process by invoking the stats method for all Process Listeners.static ProcessStatus
Retrieves the status of the given process by executing the status method for all Process Listeners.static void
Stops the given process by executing the stop method for all Process Listeners.static File
Retrieves the volume for the specified Volumes object.
-
Felddetails
-
log
protected static final org.slf4j.Logger log
-
-
Konstruktordetails
-
ProcessHandler
public ProcessHandler()
-
-
Methodendetails
-
list
Return all ExtensionPoints for Process API.- Gibt zurück:
-
start
Starts the given process by executing the start method for all Process Listeners.- Parameter:
processIO
- the process to start- Löst aus:
Exception
-
stop
Stops the given process by executing the stop method for all Process Listeners.- Parameter:
processIO
- the process to stop- Löst aus:
Exception
-
status
Retrieves the status of the given process by executing the status method for all Process Listeners.- Parameter:
processIO
- the process for which to retrieve the status- Gibt zurück:
- the status of the process
- Löst aus:
Exception
-
create
Creates a new process by executing the create method for all Process Listeners.- Parameter:
processIO
- the process to be created
-
execute
Executes a command for a process by invoking the execute method for all Process Listeners.- Parameter:
processIO
- the process for which the command is to be executedcommandIO
- the command to be executed for the process
-
attach
Attaches a Process Console to a process by invoking the attach method for all Process Listeners.- Parameter:
processIO
- the process to which the console is to be attachedlistenerIO
- the ProcessConsole to be attached to the process
-
stats
Returns the statistics of a process by invoking the stats method for all Process Listeners.- Parameter:
processIO
- the process for which the statistics are to be retrieved- Gibt zurück:
- the ProcessStats object containing the statistics of the process
-
logback
Retrieves the logback configuration for a process by invoking the logback method for all Process Listeners.- Parameter:
processIO
- the process for which the logback configuration is to be retrieved- Gibt zurück:
- the logback configuration as a string
-
exitsInDb
This method checks if the given entity exists in the database.- Parameter:
manager
- The data manager for accessing the database.entity
- The entity to check for existence in the database.- Gibt zurück:
- true if the entity exists in the database, false otherwise.
-
volume
Retrieves the volume for the specified Volumes object.- Parameter:
volumeIO
- the Volumes object for which to retrieve the volume- Gibt zurück:
- the File representing the volume
-
remove
Removes the given process by executing the remove method for all Process Listeners.- Parameter:
processIO
- the process to remove
-
getConfig
Retrieves the configuration for the specified provider.- Parameter:
providerIO
- the provider for which to retrieve the configuration- Gibt zurück:
- the configuration for the specified provider
-