|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.Component edu.sdsc.inca.Client edu.sdsc.inca.ManagerClient
Created by IntelliJ IDEA.
Field Summary | |
java.lang.String |
resourceName
|
Fields inherited from class edu.sdsc.inca.Client |
CLIENT_OPTS, host, port, reader, socket, writer |
Fields inherited from class edu.sdsc.inca.Component |
authenticate, cert, certPath, COMPONENT_OPTS, key, keyPath, logFile, password, trusted, trustedPath |
Constructor Summary | |
ManagerClient()
|
Method Summary | |
java.lang.String |
commandPing(java.lang.String data)
Send a ping to the server and return the response data. |
ProtocolReader |
getReader()
Return the reader connected to the remote reporter manager. |
java.lang.String |
getResourceName()
Return the name of the resource this manager client is attached to. |
ProtocolWriter |
getWriter()
Return the writer connected to the remote reporter manager. |
void |
sendPackage(java.lang.String filename,
java.lang.String installPath,
java.lang.String name,
byte[] packageContent,
java.lang.String permissions,
java.lang.String dependencies,
java.lang.String version)
Send the provided package information and content to the manager. |
void |
sendProxyRenewInfo(java.lang.String dn,
java.lang.String hostname,
int lifetime,
java.lang.String password,
int port,
java.lang.String username)
Send the provided proxy renewal information to the manager. |
void |
sendSuite(java.lang.String resource,
edu.sdsc.inca.dataModel.suite.SuiteDocument suite)
Send the specified suite document to the remote reporter manager. |
void |
setReader(ProtocolReader reader)
Set the reader connected to the remote reporter manager. |
void |
setResourceName(java.lang.String resourceName)
Set the name of the resource the remote reporter manager is hosted on. |
void |
setWriter(ProtocolWriter writer)
Set the writer connected to the remote reporter manager. |
Methods inherited from class edu.sdsc.inca.Client |
close, commandGetLog, commandLogConfig, connect, dialog, getHost, getPort, getUri, isConnected, main, read, setConfiguration, setHost, setPort, setServer, telnetDialog, write |
Methods inherited from class edu.sdsc.inca.Component |
addTrustedCert, configComponent, createSocket, getAuthenticate, getCertificate, getCertificatePath, getKey, getKeyPath, getLogFile, getPassword, getTrustedCertificates, getTrustedPath, openResourceStream, readCredentials, readVersion, setAuthenticate, setCertificatePath, setKeyPath, setLogFile, setPassword, setTrustedPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String resourceName
Constructor Detail |
public ManagerClient()
Method Detail |
public java.lang.String commandPing(java.lang.String data) throws java.io.IOException, ProtocolException
commandPing
in class Client
data
- the ping message data
java.io.IOException
- on read/write error
ProtocolException
- on an invalid messagepublic ProtocolReader getReader()
public java.lang.String getResourceName()
public ProtocolWriter getWriter()
public void sendPackage(java.lang.String filename, java.lang.String installPath, java.lang.String name, byte[] packageContent, java.lang.String permissions, java.lang.String dependencies, java.lang.String version) throws java.io.IOException, ProtocolException
filename
- The name of the file to store this package as.installPath
- The path relative to the package cache directory to
store this package at.name
- The repository name for this package.packageContent
- The package contentpermissions
- The permissions to set on the package once installed
or null to use default permissions.dependencies
- The dependencies (space delimited) on this package or
null if no dependencies.version
- The version of this package.
java.io.IOException
- on read/write error
ProtocolException
- on an invalid messagepublic void sendProxyRenewInfo(java.lang.String dn, java.lang.String hostname, int lifetime, java.lang.String password, int port, java.lang.String username) throws java.io.IOException, ProtocolException
dn
- The DN of the MyProxy server (use null if standard DN)hostname
- The host where the MyProxy server is running onlifetime
- The lifetime of the new proxy credentialpassword
- The password to authenticate to the MyProxy server
[default: 24 hours]port
- The port where the MyProxy server is running on
[default: 7512]username
- The username the proxy credential is stored under
java.io.IOException
- on read/write error
ProtocolException
- on an invalid messagepublic void sendSuite(java.lang.String resource, edu.sdsc.inca.dataModel.suite.SuiteDocument suite) throws java.io.IOException, ProtocolException
resource
- The name of the resource the suite is being sent to.suite
- A suite to send to the reporter manager.
java.io.IOException
- on read/write error
ProtocolException
- on an invalid messagepublic void setReader(ProtocolReader reader)
reader
- The reader for the manager clientpublic void setResourceName(java.lang.String resourceName)
resourceName
- The name of the remote reporter manager.public void setWriter(ProtocolWriter writer)
writer
- The reader for the manager client
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |