public class ArkHttpApi extends Object implements Closeable
Constructor and Description |
---|
ArkHttpApi(String address)
Connect to the server.
|
ArkHttpApi(String address,
String password)
Connect to the server and authenticate.
|
Modifier and Type | Method and Description |
---|---|
String |
analysisRow(String json)
POST /afc/command/compare/rowcompareanalysis
|
void |
close() |
String |
deleteConfig(String type,
String alias)
DELETE /afc/config
|
String |
getConfig(String type,
String alias)
GET /afc/config
|
String |
getConfigList(String type)
GET /afc/config/list
|
String |
getDatabase(String moduleName)
GET /afc/info/db
|
String |
getDiskFree(String type,
String alias)
GET /afc/info/df
|
String |
getFile(String sourcePath)
GET /afc/command/getfile
|
String |
getJobStatus(String jobCode)
GET /afc/info/job/status
|
String |
getLastScn(String postModuleName)
GET /afc/info/lastscn
|
String |
getLogs(String fileName,
String start)
GET /afc/log/logstring
|
String |
getModules()
GET /afc/info/modules
|
String |
getModuleState(String type,
String alias,
String option)
GET /afc/module/state
|
String |
getPeer()
GET /afc/info/peer
|
String |
getStatistics(String alias)
GET /afc/info/statistics
|
String |
getTableHash(String userName,
String tableName,
String scn)
GET /afc/command/compare/tablehash
|
String |
getTables(String user)
GET /afc/info/tables
|
String |
getTracingFileList(String alias)
GET /afc/info/tracingfile/list
|
String |
getUsers(String option)
GET /afc/info/users
|
String |
getUserTables(String option)
GET /afc/info/usertables
|
String |
moduleStart(String json)
POST /afc/module/start
|
String |
moduleStop(String json)
POST /afc/module/stop
|
boolean |
open(String password)
POST /afc/auth/init
|
String |
recvFile(String json)
POST /afc/command/recvfile
|
String |
rowCompare(String json)
POST /afc/command/compare/rowhash
|
String |
setConfig(String json)
POST /afc/config
|
String |
totalCompare(String json)
POST /afc/command/compare/total
|
public ArkHttpApi(String address)
address
- http uri (e.g. http://127.0.0.1:8080)public ArkHttpApi(String address, String password) throws IOException, NoSuchAlgorithmException
address
- HTTP URI (e.g. http://127.0.0.1:8080)password
- plain text passwordIOException
- if an I/O error occursNoSuchAlgorithmException
- if no Provider supports a MessageDigestSpi implementation for the
specified algorithm.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean open(String password) throws IOException, NoSuchAlgorithmException
password
- plain text passwordIOException
- if an I/O error occursNoSuchAlgorithmException
- if no Provider supports a MessageDigestSpi implementation for the
specified algorithm.public String moduleStart(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String moduleStop(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String getModuleState(String type, String alias, String option) throws IOException
type
- request paramalias
- request paramoption
- request paramIOException
- if an I/O error occurspublic String getPeer() throws IOException
IOException
- if an I/O error occurspublic String getModules() throws IOException
IOException
- if an I/O error occurspublic String getDiskFree(String type, String alias) throws IOException
type
- request paramalias
- request paramIOException
- if an I/O error occurspublic String getStatistics(String alias) throws IOException
alias
- request paramIOException
- if an I/O error occurspublic String getTracingFileList(String alias) throws IOException
alias
- request paramIOException
- if an I/O error occurspublic String getJobStatus(String jobCode) throws IOException
jobCode
- request paramIOException
- if an I/O error occurspublic String getUsers(String option) throws IOException
option
- request paramIOException
- if an I/O error occurspublic String getTables(String user) throws IOException
user
- request paramIOException
- if an I/O error occurspublic String getUserTables(String option) throws IOException
option
- request paramIOException
- if an I/O error occurspublic String getDatabase(String moduleName) throws IOException
moduleName
- request paramIOException
- if an I/O error occurspublic String getLastScn(String postModuleName) throws IOException
postModuleName
- request paramIOException
- if an I/O error occurspublic String getTableHash(String userName, String tableName, String scn) throws IOException
userName
- request paramtableName
- request paramscn
- request paramIOException
- if an I/O error occurspublic String totalCompare(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String rowCompare(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String analysisRow(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String getFile(String sourcePath) throws IOException
sourcePath
- request paramIOException
- if an I/O error occurspublic String recvFile(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String deleteConfig(String type, String alias) throws IOException
type
- request paramalias
- request paramIOException
- if an I/O error occurspublic String getConfig(String type, String alias) throws IOException
type
- request paramalias
- request paramIOException
- if an I/O error occurspublic String setConfig(String json) throws IOException
json
- request entityIOException
- if an I/O error occurspublic String getConfigList(String type) throws IOException
type
- request paramIOException
- if an I/O error occurspublic String getLogs(String fileName, String start) throws IOException
fileName
- request paramstart
- request paramIOException
- if an I/O error occursCopyright © 2019. All rights reserved.