Class AdminPortListener
java.lang.Object
ru.bgcrm.util.AdminPortListener
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAdminPortListener(int port) Constructor, binds a server socket on loopback interface only -
Method Summary
-
Field Details
-
RESPONSE_SCHEDULER_HAS_TASKS
- See Also:
-
s
-
run
protected boolean run
-
-
Constructor Details
-
AdminPortListener
public AdminPortListener(int port) Constructor, binds a server socket on loopback interface only- Parameters:
port- the port number
-
-
Method Details
-
run
-
getVersionInfo
- Returns:
- app version string
-
statusApp
- Returns:
- running application status: version, uptime, memory
-
uptimeStatus
- Returns:
- string with formatted
START_TIMEand calculated uptime after it
-
memoryStatus
- Returns:
- string with application's memory state
-
start
public void start()
-