public class AttributesJMX extends Object implements IHostAttributes
| Constructor and Description |
|---|
AttributesJMX() |
| Modifier and Type | Method and Description |
|---|---|
int |
fieldCount()
Returns the number of fields in the host attributes.
|
String |
getAgentID()
Returns the agent ID.
|
String |
getInitialContextFactory()
Returns the initial context factory.
|
String |
getJndiName()
Returns the JNDI Name.
|
String |
getServerURL()
Returns the JMX URL of the remote MBean Server.
|
boolean |
isAgentLog() |
boolean |
isLocalJVM()
Returns
true if an MBean Server in the local JVM is used. |
boolean |
isMbeanServerCreate()
Returns
true if an MBean Server is created if it's not found. |
boolean |
isRemoteJVM()
Returns
true if an MBean Server in the remote JVM is used. |
boolean |
isReportDatabase()
Returns whether the Job report transfered to the Automation Engine database.
|
boolean |
isReportErrorOnly()
Returns
true if the Job report will be stored only in case of Job interruption. |
boolean |
isReportFile()
Returns
true if the Job report is stored in the file system
on the target system. |
boolean |
isUseAnyMBeanServer()
Returns
true if any local MBean Server is used. |
boolean |
isUseJDNI()
Returns
true if JNDI is used to get a reference to the MBean Server. |
boolean |
isUseSpecificMBeanServer()
Returns
true if an MBean Server with the specified agent ID is used. |
void |
load(com.uc4.util.XMLDocument doc,
Element hostAttr)
Loads the host attributes.
|
String |
name()
Returns the host attributes name.
|
void |
setAgentID(String agentID)
Sets the agent ID.
|
void |
setAgentLog(boolean agentLog)
Sets the Agent Process Log for this SAP Job.
|
void |
setInitialContextFactory(String initialContextFactory)
Sets the initial context factory.
|
void |
setJndiName(String jndiName)
Sets the JNDI name.
|
void |
setLocalJVM()
Uses an MBean Server in the local Java Virtual Machine.
|
void |
setMbeanServerCreate(boolean mbeanServerCreate)
Sets whether an MBean Server should be created if it does not exist.
|
void |
setRemoteJVM()
Uses an MBean Server in a remote JVM.
|
void |
setReportDatabase(boolean reportDatabase)
Sets whether the Job report should be transfered to the database.
|
void |
setReportErrorOnly(boolean reportErrorOnly)
Sets whether the Job report should be stored only in case of Job interruption.
|
void |
setReportFile(boolean reportFile)
Sets whether the Job report should be stored in the file system on the target system.
|
void |
setServerURL(String serverURL)
Sets the JMX URL of the remote MBean Server.
|
void |
setUseAnyMBeanServer()
Uses any local MBean Server.
|
void |
setUseJDNI()
Uses JDNI to get a reference to the MBean Server.
|
void |
setUseSpecificMBeanServer()
An MBean Server with the specified agent ID is used.
|
void |
store(com.uc4.util.XMLDocument doc,
Element objectElement)
Writes the host attributes back to the
XMLDocument. |
public void load(com.uc4.util.XMLDocument doc,
Element hostAttr)
IHostAttributesload in interface IHostAttributesdoc - XML Document containing the JobhostAttr - Element which contains host attributespublic void store(com.uc4.util.XMLDocument doc,
Element objectElement)
IHostAttributesXMLDocument.store in interface IHostAttributesdoc - DocumentobjectElement - ObjectElementpublic boolean isAgentLog()
public void setAgentLog(boolean agentLog)
agentLog - true if the Log should be transferedpublic boolean isReportDatabase()
true if the Job report is transfered to the database false otherwisepublic void setReportDatabase(boolean reportDatabase)
reportDatabase - true if the job report should be transfered
to the database false otherwisepublic boolean isReportErrorOnly()
true if the Job report will be stored only in case of Job interruption.
This function is only available when "Database" and/or "File" have been selected.true if the job report is stored only in case of Job interruptionpublic void setReportErrorOnly(boolean reportErrorOnly)
reportErrorOnly - true if the job report should be stored
only in case of Job interruptionpublic boolean isReportFile()
true if the Job report is stored in the file system
on the target system.true if the job report is stored in the file system.public void setReportFile(boolean reportFile)
reportFile - true if the job report should be stored in the file systempublic void setLocalJVM()
public boolean isLocalJVM()
true if an MBean Server in the local JVM is used.public void setRemoteJVM()
public boolean isRemoteJVM()
true if an MBean Server in the remote JVM is used.public String getInitialContextFactory()
public void setInitialContextFactory(String initialContextFactory)
initialContextFactory - initial context factorypublic String getServerURL()
public void setServerURL(String serverURL)
serverURL - JMX URLpublic String getAgentID()
public void setAgentID(String agentID)
agentID - agent IDpublic String getJndiName()
public void setJndiName(String jndiName)
jndiName - JNDI namepublic boolean isMbeanServerCreate()
true if an MBean Server is created if it's not found.public void setMbeanServerCreate(boolean mbeanServerCreate)
mbeanServerCreate - true if the MBean Server should be createdpublic void setUseAnyMBeanServer()
public boolean isUseAnyMBeanServer()
true if any local MBean Server is used.public void setUseSpecificMBeanServer()
public boolean isUseSpecificMBeanServer()
true if an MBean Server with the specified agent ID is used.public void setUseJDNI()
public boolean isUseJDNI()
true if JNDI is used to get a reference to the MBean Server.public int fieldCount()
IHostAttributesfieldCount in interface IHostAttributespublic String name()
IHostAttributesname in interface IHostAttributesCopyright © 2021. All rights reserved.