public class ControlClient extends Object
ControlClient
class is a helper class to interact with a started
Sling instance through its ControlListener class.Constructor and Description |
---|
ControlClient(File directory,
org.apache.maven.plugin.logging.Log logger)
Creates an instance of this control support class.
|
Modifier and Type | Method and Description |
---|---|
int |
dumpThreads()
Implements the client side of the control connection sending the command
to retrieve a thread dump.
|
int |
getPort() |
boolean |
isStarted() |
int |
shutdownServer()
Implements the client side of the control connection sending the command
to shutdown Sling.
|
int |
statusServer()
Implements the client side of the control connection sending the command
to check whether Sling is active.
|
public ControlClient(File directory, org.apache.maven.plugin.logging.Log logger)
The host (name or address) and port number of the socket is defined by
the listenSpec
parameter. This parameter is defined as
[ host ":" ] port
. If the parameter is empty or
null
it defaults to localhost:0. If the host name
is missing it defaults to localhost.
public int getPort()
public boolean isStarted()
public int shutdownServer()
public int statusServer()
public int dumpThreads()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.