|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.arm4.arm40.transaction.ArmInterface
org.arm4.arm40.transaction.ArmFactory
org.arm4.arm40.tranreport.ArmTranReportFactory
public class ArmTranReportFactory
Provides methods to create instances of the classes in
the org.opengroup.arm40.tranreport package. An error callback method can
be registered for objects created with this factory (see
setErrorCallback(ArmErrorCallback)). For additional
details about error handling philosophy see the description
of ArmTransactionFactory.
ArmTranReportFactory is instantiated using a class loader.
The actual name of the factory implementation class is obtained from the
system property whose name is provided in the
propertyKey constant.
| Field Summary | |
|---|---|
static java.lang.String |
propertyKey
|
| Fields inherited from class org.arm4.arm40.transaction.ArmFactory |
|---|
m_nativeLoaded |
| Fields inherited from class org.arm4.arm40.transaction.ArmInterface |
|---|
m_errorCode, m_factory |
| Constructor Summary | |
|---|---|
ArmTranReportFactory()
|
|
| Method Summary | |
|---|---|
ArmApplicationRemote |
newArmApplicationRemote(ArmApplicationDefinition definition,
java.lang.String group,
java.lang.String instance,
java.lang.String[] contextValues,
ArmSystemAddress systemAddress)
Creates an ArmApplicationRemote. |
ArmSystemAddress |
newArmSystemAddress(short format,
byte[] addressBytes,
ArmID id)
Creates an ArmSystemAddress from the specified format and the input byte array. |
ArmSystemAddress |
newArmSystemAddress(short format,
byte[] addressBytes,
int offset,
ArmID id)
Creates an ArmSystemAddress from the specified format and the input byte array. |
ArmSystemAddress |
newArmSystemAddress(short format,
byte[] addressBytes,
int offset,
int length,
ArmID id)
Creates an ArmSystemAddress from the specified format and the input byte array. |
ArmTranReport |
newArmTranReport(ArmApplication app,
ArmTransactionDefinition definition)
Creates an object that represents an instance of a transaction. |
boolean |
setErrorCallback(ArmErrorCallback errorCallback)
Registers an error callback for objects created through this factory. |
| Methods inherited from class org.arm4.arm40.transaction.ArmInterface |
|---|
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface |
|---|
getErrorCode, getErrorMessage, setErrorCode |
| Field Detail |
|---|
public static final java.lang.String propertyKey
| Constructor Detail |
|---|
public ArmTranReportFactory()
| Method Detail |
|---|
public ArmApplicationRemote newArmApplicationRemote(ArmApplicationDefinition definition,
java.lang.String group,
java.lang.String instance,
java.lang.String[] contextValues,
ArmSystemAddress systemAddress)
ArmTranReportFactoryArmApplicationRemote.
If systemAddress is null,
the addressing information for the local system is used.
newArmApplicationRemote in interface ArmTranReportFactorydefinition - metadata describing the type of the ARM application.
Must not be null.group - Name of the group the application belongs to.
May be null.instance - Name this application instance is given.
May be null.contextValues - An array of strings providing the value parts of
(name,value) context properties.
May be null.systemAddress - address of the remote system the application is
executing on.
ArmApplicationRemote instance.ArmApplication
public ArmSystemAddress newArmSystemAddress(short format,
byte[] addressBytes,
ArmID id)
ArmTranReportFactoryArmSystemAddress description
for more details about the parameters. The length of the address data
is the length of addressBytes, if not restricted otherwise
through the format parameter.
newArmSystemAddress in interface ArmTranReportFactoryformat - the address format.addressBytes - a byte array containig the address data.id - An optional 16-byte ID associated with the identity of
the ArmSystemAddress.
ArmSystemAddress
public ArmSystemAddress newArmSystemAddress(short format,
byte[] addressBytes,
int offset,
ArmID id)
ArmTranReportFactoryArmSystemAddress description
for more details about the parameters. The length of the address data
is the length of addressBytes, if not restricted otherwise
through the format parameter.
newArmSystemAddress in interface ArmTranReportFactoryformat - the address format.addressBytes - a byte array containig the address data.offset - start of the address bytes within the array.id - An optional 16-byte ID associated with the identity of
the ArmSystemAddress.
ArmSystemAddress
public ArmSystemAddress newArmSystemAddress(short format,
byte[] addressBytes,
int offset,
int length,
ArmID id)
ArmTranReportFactoryArmSystemAddress description
for more details about the parameters. The length of the address data
is length, if not restricted otherwise
through the format parameter.
newArmSystemAddress in interface ArmTranReportFactoryformat - the address format.addressBytes - a byte array containig the address data.offset - start of the address bytes within the array.length - the number of bytes of valid address data.id - An optional 16-byte ID associated with the identity of
the ArmSystemAddress.
ArmSystemAddress
public ArmTranReport newArmTranReport(ArmApplication app,
ArmTransactionDefinition definition)
ArmTranReportFactoryArmTransactionDefinition
object. It is scoped by an application instance,
represented by ArmApplication (or its subclass,
ArmApplicationRemote).
newArmTranReport in interface ArmTranReportFactoryapp - the application instance the transaction belongs to.definition - the metadata describing the type of the transaction.
ArmTranReport instance.public boolean setErrorCallback(ArmErrorCallback errorCallback)
ArmTranReportFactoryArmTransactionFactory.
setErrorCallback in interface ArmTranReportFactorysetErrorCallback in class ArmFactoryerrorCallback - an application object implementing the
ArmErrorCallback> interface.
- Returns:
true if registration is accepted.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||