Package io.antmedia.console.rest
Class SupportRestService
java.lang.Object
io.antmedia.console.rest.CommonRestService
io.antmedia.console.rest.SupportRestService
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static org.slf4j.Logger
static final int
static final int
private jakarta.servlet.ServletContext
private IStatsCollector
Fields inherited from class io.antmedia.console.rest.CommonRestService
applicationContext, gson, IS_AUTHENTICATED, LICENSE_KEY, MARKET_BUILD, NODE_GROUP, SCOPE_SYSTEM, SERVER_NAME, SESSION_SCOPE_KEY, USER_EMAIL, USER_PASSWORD, USER_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addZipEntry
(ZipOutputStream zipOut, File input) static String
static StringBuilder
readResponse
(org.apache.http.HttpResponse response) boolean
sendSupport
(SupportRequest supportRequest) sendSupportRequest
(SupportRequest request) static void
zipFile()
Methods inherited from class io.antmedia.console.rest.CommonRestService
addInitialUser, addUser, authenticateUser, changeLogSettings, changeServerSettings, changeSettings, changeUserPassword, changeUserPasswordInternal, configureSsl, createApplication, currentLevelDetect, deleteApplication, deleteSession, deleteUser, deleteVoDStream, editUser, extractFQDN, getAllowedLoginAttempts, getAppAdaptor, getApplication, getApplicationInfo, getApplications, getAppLiveStreams, getBlockedStatus, getContext, getCPUInfo, getDataStore, getDataStoreFactory, getFileSystemInfo, getGPUInfo, getHeapDump, getHttpClient, getJVMMemoryInfo, getLicenceServiceInstance, getLicenceStatus, getLicenceStatus, getLiveClientsSize, getLogFile, getMD5Hash, getServerSettings, getServerSettingsInternal, getServerTime, getSettings, getShutdownStatus, getStatsCollector, getSystemInfo, getSystemMemoryInfo, getSystemResourcesInfo, getThreadDump, getThreadDumpJSON, getThreadsInfo, getTmpDirectory, getUserList, getVersion, getWebAppsDirectory, isAdmin, isAuthenticated, isAuthenticatedRest, isClusterMode, isEnterpriseEdition, isFirstLogin, isInClusterMode, isShutdownProperly, resetBroadcast, sendUserInfo, setDataStore, setDataStoreFactory, setRequestForTest, setShutdownStatus
-
Field Details
-
logger
protected static org.slf4j.Logger logger -
servletContext
@Context private jakarta.servlet.ServletContext servletContext -
statsCollector
-
LOG_FILE
- See Also:
-
SEND_SUPPORT_CONNECT_TIMEOUT_SECONDS
public static final int SEND_SUPPORT_CONNECT_TIMEOUT_SECONDS- See Also:
-
SEND_SUPPORT_SOCKET_TIMEOUT_SECONDS
public static final int SEND_SUPPORT_SOCKET_TIMEOUT_SECONDS- See Also:
-
-
Constructor Details
-
SupportRestService
public SupportRestService()
-
-
Method Details
-
sendSupportRequest
@POST @Path("/request") @Produces("application/json") @Consumes("application/json") public Result sendSupportRequest(SupportRequest request) -
sendSupport
- Throws:
Exception
-
zipFile
public static void zipFile() -
addZipEntry
-
getCpuInfo
-
readResponse
- Throws:
IOException
-