public class NodeAgentService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AuthHash |
protected java.lang.String |
authorityKeyEntry |
protected java.lang.String |
dataFolder |
protected boolean |
debug |
protected java.lang.String |
driversFile |
protected net.exogeni.orca.drivers.DriverFactory |
factory |
protected org.apache.log4j.Logger |
logger |
static java.lang.String |
NodeToken |
static java.lang.String |
PropertyExceptionMessage |
static java.lang.String |
PropertyExceptionStack |
protected java.lang.String |
root |
protected java.lang.String |
serverAlias |
protected java.lang.String |
ServerKeyStoreDestination |
protected java.lang.String |
serverKeyStoreName |
protected java.lang.String |
serverStorePassword |
protected java.lang.String |
testCmdLineFile |
| Modifier | Constructor and Description |
|---|---|
protected |
NodeAgentService() |
| Modifier and Type | Method and Description |
|---|---|
int |
executeDriver(net.exogeni.orca.drivers.DriverId driverId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
Executes the specified operation on the given driver
|
int |
executeObjectDriver(net.exogeni.orca.drivers.DriverId driverId,
java.lang.String objectId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
Executes the specified operation on the given driver for the given object
|
net.exogeni.orca.drivers.util.DriverScriptExecutionResult |
executeScript(java.lang.String name,
java.lang.String arguments)
Executes the specified script passing the given arguments
|
protected int |
expandPackage(net.exogeni.orca.drivers.DriverId id,
javax.activation.DataHandler pkg,
boolean fresh) |
boolean |
getCalled()
Gets the called flag value (used to test if the registerAuthorityKey function was called.).
|
java.lang.String |
getDataFolder() |
static NodeAgentService |
getInstance()
Returns the singleton instance
|
org.apache.log4j.Logger |
getLogger()
Returns the logger
|
java.lang.String |
getRoot() |
GetServiceKeyResultElement |
getServiceKey()
Retrieves the service public key.
|
java.lang.String |
getStackTraceString(java.lang.Exception e)
Constructs a string from the given stack trace
|
int |
installDriver(net.exogeni.orca.drivers.DriverId id,
java.lang.String className,
javax.activation.DataHandler pkg)
Installs the specified driver
|
protected void |
loadDrivers() |
RegisterAuthorityKeyResultElement |
registerAuthorityKey(java.lang.String alias,
byte[] certificateEncoding,
byte[] message,
byte[] signature)
Registers the authority key with the node.
|
int |
registerKey(java.lang.String alias,
byte[] certificateEncoding)
register the public key/certificate with the service (the certificate is stored in the keystore)
|
protected int |
removePackage(net.exogeni.orca.drivers.DriverId id)
Removes the package folder and its contents.
|
void |
setCalled(boolean flag)
Sets the called flag once the registerAuthorityKey was called.
|
int |
uninstall(net.exogeni.orca.drivers.DriverId id)
Uninstalls the specified driver
|
int |
unregisterKey(java.lang.String alias)
uregister the public key/certificate associated with alias
|
int |
upgradeDriver(net.exogeni.orca.drivers.DriverId id,
java.lang.String className,
javax.activation.DataHandler pkg)
Upgrades the specified driver
|
public static java.lang.String PropertyExceptionMessage
public static java.lang.String PropertyExceptionStack
public static java.lang.String AuthHash
public static java.lang.String NodeToken
protected net.exogeni.orca.drivers.DriverFactory factory
protected org.apache.log4j.Logger logger
protected boolean debug
protected java.lang.String root
protected java.lang.String dataFolder
protected java.lang.String driversFile
protected java.lang.String ServerKeyStoreDestination
protected java.lang.String serverKeyStoreName
protected java.lang.String serverStorePassword
protected java.lang.String serverAlias
protected java.lang.String authorityKeyEntry
protected java.lang.String testCmdLineFile
protected void loadDrivers()
public java.lang.String getRoot()
public java.lang.String getDataFolder()
protected int expandPackage(net.exogeni.orca.drivers.DriverId id,
javax.activation.DataHandler pkg,
boolean fresh)
public int installDriver(net.exogeni.orca.drivers.DriverId id,
java.lang.String className,
javax.activation.DataHandler pkg)
id - Driver idclassName - Class namepkg - Path to jar fileprotected int removePackage(net.exogeni.orca.drivers.DriverId id)
throws java.lang.Exception
id - driver identifierjava.lang.Exception - in case of errorpublic int upgradeDriver(net.exogeni.orca.drivers.DriverId id,
java.lang.String className,
javax.activation.DataHandler pkg)
id - Driver idclassName - Class namepkg - Path to jar filepublic int uninstall(net.exogeni.orca.drivers.DriverId id)
id - Driver idpublic net.exogeni.orca.drivers.util.DriverScriptExecutionResult executeScript(java.lang.String name,
java.lang.String arguments)
name - namearguments - argumentspublic int executeDriver(net.exogeni.orca.drivers.DriverId driverId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
driverId - Driver identifieractionId - Action identifierin - Incoming properties listout - Outgoing properties listpublic int executeObjectDriver(net.exogeni.orca.drivers.DriverId driverId,
java.lang.String objectId,
java.lang.String actionId,
java.util.Properties in,
java.util.Properties out)
driverId - Driver identifierobjectId - Object identifieractionId - Action identifierin - Incoming properties listout - Outgoing properties listpublic int registerKey(java.lang.String alias,
byte[] certificateEncoding)
alias - used to store the certificate in the server keystorecertificateEncoding - - certificate enconded in bytespublic int unregisterKey(java.lang.String alias)
alias - of the certificate to be removed from the server keystorepublic RegisterAuthorityKeyResultElement registerAuthorityKey(java.lang.String alias, byte[] certificateEncoding, byte[] message, byte[] signature)
alias - authority aliascertificateEncoding - certificatemessage - parameters passed to the node (Authority IP, timestamp ...)signature - signature of the messagepublic GetServiceKeyResultElement getServiceKey()
public java.lang.String getStackTraceString(java.lang.Exception e)
e - epublic org.apache.log4j.Logger getLogger()
public static NodeAgentService getInstance()
public void setCalled(boolean flag)
flag - flagpublic boolean getCalled()
Copyright © 2018 RENCI. All Rights Reserved.