public class MythTemplate extends AbstractOperations implements MythOperations
formatter| Constructor and Description |
|---|
MythTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Bool> |
addStorageGroupDir(String groupName,
String directoryName,
String hostName)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
backupDatabase()
- POST
|
org.springframework.http.ResponseEntity<Bool> |
changePassword(String username,
String oldPassword,
String newPassword)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
checkDatabase(boolean repair)
- POST
|
protected String |
getApiUrlBase() |
org.springframework.http.ResponseEntity<ConnectionInfo> |
getConnectionInfo(String pin,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<String> |
getHostName()
- GET
|
org.springframework.http.ResponseEntity<StringList> |
getHosts(ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<StringList> |
getKeys(ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<LogMessageList> |
getLogs(String hostname,
String application,
int pid,
int tid,
String thread,
String filename,
int line,
String function,
org.joda.time.DateTime from,
org.joda.time.DateTime to,
String level,
String messageContains,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<SettingList> |
getSetting(String hostname,
String key,
String defaultValue,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<StorageGroupDirectoryList> |
getStoreageGroupDirectories(String groupName,
String hostname,
ETagInfo etag)
- GET
|
org.springframework.http.ResponseEntity<TimeZoneInfo> |
getTimeZoneInfo()
- GET
|
org.springframework.http.ResponseEntity<Bool> |
profileDelete()
- POST
|
org.springframework.http.ResponseEntity<Bool> |
profileSubmit()
- POST
|
org.springframework.http.ResponseEntity<String> |
profileText()
- GET
|
org.springframework.http.ResponseEntity<String> |
profileUpdated()
- GET
|
org.springframework.http.ResponseEntity<String> |
profileUrl()
- GET
|
org.springframework.http.ResponseEntity<Bool> |
putSetting(String hostname,
String key,
String value)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
removeStorageGroupDirectory(String groupName,
String directoryName,
String hostname)
- POST
|
org.springframework.http.ResponseEntity<Bool> |
sendMessage(String message,
String address,
int udpPort,
int timeout)
- GET
|
org.springframework.http.ResponseEntity<Bool> |
testDatabaseSettings(String hostname,
String username,
String password,
String databaseName,
int databasePort)
- POST
|
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtagpublic MythTemplate(org.springframework.web.client.RestOperations restOperations,
String apiUrlBase)
public org.springframework.http.ResponseEntity<Bool> addStorageGroupDir(String groupName, String directoryName, String hostName) throws MythServiceApiRuntimeException
MythOperationsaddStorageGroupDir in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> backupDatabase() throws MythServiceApiRuntimeException
MythOperationsbackupDatabase in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> changePassword(String username, String oldPassword, String newPassword) throws MythServiceApiRuntimeException
MythOperationschangePassword in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> checkDatabase(boolean repair) throws MythServiceApiRuntimeException
MythOperationscheckDatabase in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<ConnectionInfo> getConnectionInfo(String pin, ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetConnectionInfo in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<String> getHostName() throws MythServiceApiRuntimeException
MythOperationsgetHostName in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<StringList> getHosts(ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetHosts in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<StringList> getKeys(ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetKeys in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<LogMessageList> getLogs(String hostname, String application, int pid, int tid, String thread, String filename, int line, String function, org.joda.time.DateTime from, org.joda.time.DateTime to, String level, String messageContains, ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetLogs in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<SettingList> getSetting(String hostname, String key, String defaultValue, ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetSetting in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<StorageGroupDirectoryList> getStoreageGroupDirectories(String groupName, String hostname, ETagInfo etag) throws MythServiceApiRuntimeException
MythOperationsgetStoreageGroupDirectories in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<TimeZoneInfo> getTimeZoneInfo() throws MythServiceApiRuntimeException
MythOperationsgetTimeZoneInfo in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> profileDelete() throws MythServiceApiRuntimeException
MythOperationsprofileDelete in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> profileSubmit() throws MythServiceApiRuntimeException
MythOperationsprofileSubmit in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<String> profileText() throws MythServiceApiRuntimeException
MythOperationsprofileText in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<String> profileUrl() throws MythServiceApiRuntimeException
MythOperationsprofileUrl in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<String> profileUpdated() throws MythServiceApiRuntimeException
MythOperationsprofileUpdated in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> putSetting(String hostname, String key, String value) throws MythServiceApiRuntimeException
MythOperationsputSetting in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> removeStorageGroupDirectory(String groupName, String directoryName, String hostname) throws MythServiceApiRuntimeException
MythOperationsremoveStorageGroupDirectory in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> sendMessage(String message, String address, int udpPort, int timeout) throws MythServiceApiRuntimeException
MythOperationssendMessage in interface MythOperationsMythServiceApiRuntimeExceptionpublic org.springframework.http.ResponseEntity<Bool> testDatabaseSettings(String hostname, String username, String password, String databaseName, int databasePort) throws MythServiceApiRuntimeException
MythOperationstestDatabaseSettings in interface MythOperationsMythServiceApiRuntimeExceptionprotected String getApiUrlBase()
getApiUrlBase in class AbstractOperationsCopyright © 2012. All Rights Reserved.