本文整理了Java中org.ccsds.moims.mo.mal.structures.Union.getLongValue()
方法的一些代码示例,展示了Union.getLongValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.getLongValue()
方法的具体详情如下:
包路径:org.ccsds.moims.mo.mal.structures.Union
类名称:Union
方法名:getLongValue
暂无
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* The dumpMemory operation allows a consumer to dump memory areas of a selected device from a provider. The dumping process can be aborted by using the identifier provided in the acknowledge phase.
* @param deviceName The deviceName field shall contain the name of the destination device. The interpretation of the value is implementation-specific.
* @param base The base field shall contain the base reference of the memory within the memory block.
* @param memoryAreas The memoryAreas field shall contain the memory areas to be dumped.
* @param adapter adapter Listener in charge of receiving the messages from the service provider.
* @return The acknowledge value of the interaction.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification.
* @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception.
*/
public Long dumpMemory(org.ccsds.moims.mo.mal.structures.Identifier deviceName, org.ccsds.moims.mo.mal.structures.UInteger base, org.ccsds.moims.mo.softwaremanagement.memorymanagement.structures.MemoryAreaList memoryAreas, org.ccsds.moims.mo.softwaremanagement.memorymanagement.consumer.MemoryManagementAdapter adapter) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.progress(org.ccsds.moims.mo.softwaremanagement.memorymanagement.MemoryManagementHelper.DUMPMEMORY_OP, adapter, deviceName, base, memoryAreas);
Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
return (body0 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body0).getLongValue();
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* The.
* @param from .
* @param until .
* @param objectTypes .
* @param compression .
* @param adapter adapter Listener in charge of receiving the messages from the service provider.
* @return The acknowledge value of the interaction.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification.
* @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception.
*/
public Long retrieveRange(org.ccsds.moims.mo.mal.structures.FineTime from, org.ccsds.moims.mo.mal.structures.FineTime until, org.ccsds.moims.mo.com.structures.ObjectTypeList objectTypes, org.ccsds.moims.mo.mal.structures.Identifier compression, org.ccsds.moims.mo.com.archivesync.consumer.ArchiveSyncAdapter adapter) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.progress(org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper.RETRIEVERANGE_OP, adapter, from, until, objectTypes, compression);
Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
return (body0 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body0).getLongValue();
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* The publishProvider operation adds a new or updates an existing entry in the list of service providers held in the directory service.
* @param newProviderDetails The newProviderDetails field shall hold the provider details of the service to be added or updated in the directory service.
If any of the fields of the newProviderDetails domain/sessionType/SessionName/network fields are either empty or contain the wildcard '*' an INVALID error shall be returned.
If the providerName field of the PublishDetails structure is empty or contains the wildcard '*' an INVALID error shall be returned.
If the area/service/version fields of the PublishDetails structure contain '0' or the supportedCapabilities list is empty or contains '0' then an INVALID error shall be returned.
For each contained ProviderAddressDetails structure if the supportedLevels list is empty or the priorityLevels field is '0' then an INVALID error shall be returned.
If an error is being returned then no changes shall be made.
* @return The return value of the interaction.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification.
* @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception.
*/
public org.ccsds.moims.mo.common.directory.body.PublishProviderResponse publishProvider(org.ccsds.moims.mo.common.directory.structures.PublishDetails newProviderDetails) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.common.directory.DirectoryHelper.PUBLISHPROVIDER_OP, newProviderDetails);
Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
Object body1 = (Object) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
return new org.ccsds.moims.mo.common.directory.body.PublishProviderResponse((body0 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body0).getLongValue(), (body1 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body1).getLongValue());
}
代码示例来源:origin: int.esa.nmf.core.moservices.impl/ccsds-mc
public static double getDouble(Attribute attr) {
int type = attr.getTypeShortForm();
switch (type) {
case Attribute._DOUBLE_TYPE_SHORT_FORM:
//Already double.
return ((Union) attr).getDoubleValue();
case Attribute._SHORT_TYPE_SHORT_FORM:
// Short.
return ((Union) attr).getShortValue();
case Attribute._USHORT_TYPE_SHORT_FORM:
// UShort
return ((UShort) attr).getValue();
case Attribute._INTEGER_TYPE_SHORT_FORM:
// Integer
return ((Union) attr).getIntegerValue();
case Attribute._UINTEGER_TYPE_SHORT_FORM:
// UInteger
return ((UInteger) attr).getValue();
case Attribute._LONG_TYPE_SHORT_FORM:
// Long
return ((Union) attr).getLongValue();
}
return 0;
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* The handover operation allows an existing login to be transferred to a new user. Two cases are expected here, the first is where the operation is used to change the user's current role, and the second is where an operations context is handed over to another user.
* @param newUserDetails The newUserDetails field shall contain the details of the new user and role combination.
If the username field of the supplied Profile structure is either NULL, the wildcard '*', or empty an INVALID error shall be returned.
If roles are required by the system and the role field of the supplied Profile structure is NULL then an INVALID error shall be returned.
The role field of the supplied Profile structure may be NULL if roles are not used by the system.
An UNKNOWN error shall be returned if the username, password and role combination are not correct for the system i.e. unknown user/role or incorrect password.
A DUPLICATE error shall be returned if the username and role combination is currently in use.
A TOO_MANY error shall be returned if the username or role are already used and exceed the permitted maximum usage value (deployment dependent).
The DUPLICATE and TOO_MANY checks shall take into account the fact that current operator/role combination will be logged out after the handover operation completes.
If the handover is successful the provider shall create a new LoginInstance COM object and store it in the COM archive.
The related link of the new LoginInstance COM object shall be set to the requested LoginRole COM object.
The source link of the new LoginInstance COM object shall be set to the LoginInstance COM object that represents the previous login.
If the handover operation is successful a LogoutEvent COM event shall be generated for the previous login and a LoginEvent COM event shall be generated for the new login.
* @param newUserPassword newUserPassword Argument number 1 as defined by the service operation.
* @return The return value of the interaction.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification.
* @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception.
*/
public org.ccsds.moims.mo.common.login.body.HandoverResponse handover(org.ccsds.moims.mo.common.login.structures.Profile newUserDetails, String newUserPassword) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.common.login.LoginHelper.HANDOVER_OP, newUserDetails, (newUserPassword == null) ? null : new org.ccsds.moims.mo.mal.structures.Union(newUserPassword));
Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Blob());
Object body1 = (Object) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
return new org.ccsds.moims.mo.common.login.body.HandoverResponse((org.ccsds.moims.mo.mal.structures.Blob) body0, (body1 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body1).getLongValue());
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* The login operation allows a user to log in to the system. A user can log in more than once by using a different role; however, a specific deployment may place limits on the number of users that may use a specific role, and in that case will fail the login operation.
* @param userDetails The userDetails field shall contain the details of the new user and role combination.
If the username field of the supplied Profile structure is either the wildcard '*' or empty an INVALID error shall be returned.
If roles are required by the system and the role field of the supplied Profile structure is NULL then an INVALID error shall be returned.
The role field of the supplied Profile structure may be NULL if roles are not used by the system.
An UNKNOWN error shall be returned if the username, password and role combination are not correct for the system i.e. unknown user/role or incorrect password.
A DUPLICATE error shall be returned if the username and role combination is currently in use.
A TOO_MANY error shall be returned if the username or role are already used and exceed the permitted maximum usage value (deployment dependent).
If the login is successful the provider shall create a new LoginInstance COM object and store it in the COM archive.
The related link of the new LoginInstance COM object shall be set to the requested LoginRole COM object.
A LoginEvent COM event shall be generated at this point.
* @param password password Argument number 1 as defined by the service operation.
* @return The return value of the interaction.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a problem during the interaction as defined by the MAL specification.
* @throws org.ccsds.moims.mo.mal.MALException if there is an implementation exception.
*/
public org.ccsds.moims.mo.common.login.body.LoginResponse login(org.ccsds.moims.mo.common.login.structures.Profile userDetails, String password) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
org.ccsds.moims.mo.mal.transport.MALMessageBody body = consumer.request(org.ccsds.moims.mo.common.login.LoginHelper.LOGIN_OP, userDetails, (password == null) ? null : new org.ccsds.moims.mo.mal.structures.Union(password));
Object body0 = (Object) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Blob());
Object body1 = (Object) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE));
return new org.ccsds.moims.mo.common.login.body.LoginResponse((org.ccsds.moims.mo.mal.structures.Blob) body0, (body1 == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body1).getLongValue());
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* Called by the MAL when a PROGRESS update is received from a provider.
* @param msgHeader msgHeader The header of the received message.
* @param body body The body of the received message.
* @param qosProperties qosProperties The QoS properties associated with the message.
* @throws org.ccsds.moims.mo.mal.MALException if an error is detected processing the message.
*/
public final void progressUpdateReceived(org.ccsds.moims.mo.mal.transport.MALMessageHeader msgHeader, org.ccsds.moims.mo.mal.transport.MALMessageBody body, java.util.Map qosProperties) throws org.ccsds.moims.mo.mal.MALException
{
switch (msgHeader.getOperation().getValue())
{
case org.ccsds.moims.mo.softwaremanagement.appslauncher.AppsLauncherHelper._STOPAPP_OP_NUMBER:
stopAppUpdateReceived(msgHeader, (body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), qosProperties);
break;
default:
throw new org.ccsds.moims.mo.mal.MALException("Consumer adapter was not expecting operation number " + msgHeader.getOperation().getValue());
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* Called by the MAL when a PROGRESS acknowledgement is received from a provider.
* @param msgHeader msgHeader The header of the received message.
* @param body body The body of the received message.
* @param qosProperties qosProperties The QoS properties associated with the message.
* @throws org.ccsds.moims.mo.mal.MALException if an error is detected processing the message.
*/
public final void progressAckReceived(org.ccsds.moims.mo.mal.transport.MALMessageHeader msgHeader, org.ccsds.moims.mo.mal.transport.MALMessageBody body, java.util.Map qosProperties) throws org.ccsds.moims.mo.mal.MALException
{
switch (msgHeader.getOperation().getValue())
{
case org.ccsds.moims.mo.softwaremanagement.memorymanagement.MemoryManagementHelper._DUMPMEMORY_OP_NUMBER:
dumpMemoryAckReceived(msgHeader, (body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), qosProperties);
break;
default:
throw new org.ccsds.moims.mo.mal.MALException("Consumer adapter was not expecting operation number " + msgHeader.getOperation().getValue());
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Called by the MAL when a PROGRESS acknowledgement is received from a provider.
* @param msgHeader msgHeader The header of the received message.
* @param body body The body of the received message.
* @param qosProperties qosProperties The QoS properties associated with the message.
* @throws org.ccsds.moims.mo.mal.MALException if an error is detected processing the message.
*/
public final void progressAckReceived(org.ccsds.moims.mo.mal.transport.MALMessageHeader msgHeader, org.ccsds.moims.mo.mal.transport.MALMessageBody body, java.util.Map qosProperties) throws org.ccsds.moims.mo.mal.MALException
{
switch (msgHeader.getOperation().getValue())
{
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGE_OP_NUMBER:
retrieveRangeAckReceived(msgHeader, (body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), qosProperties);
break;
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGEAGAIN_OP_NUMBER:
retrieveRangeAgainAckReceived(msgHeader, qosProperties);
break;
default:
throw new org.ccsds.moims.mo.mal.MALException("Consumer adapter was not expecting operation number " + msgHeader.getOperation().getValue());
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._FREE_OP_NUMBER:
free((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendAcknowledgement();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.common.directory.DirectoryHelper._WITHDRAWPROVIDER_OP_NUMBER:
delegate.withdrawProvider((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendAcknowledgement();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._FREE_OP_NUMBER:
delegate.free((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendAcknowledgement();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleSubmit(org.ccsds.moims.mo.mal.provider.MALSubmit interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.common.directory.DirectoryHelper._WITHDRAWPROVIDER_OP_NUMBER:
withdrawProvider((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendAcknowledgement();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleInvoke(org.ccsds.moims.mo.mal.provider.MALInvoke interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._CHECKIMAGEINTEGRITY_OP_NUMBER:
checkImageIntegrity((org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union("")) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(""))).getStringValue(), new CheckImageIntegrityInteraction(interaction));
break;
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._CLONEIMAGE_OP_NUMBER:
cloneImage((org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), new CloneImageInteraction(interaction));
break;
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._PATCHIMAGE_OP_NUMBER:
patchImage((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), new PatchImageInteraction(interaction));
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/software-management
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleInvoke(org.ccsds.moims.mo.mal.provider.MALInvoke interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._CHECKIMAGEINTEGRITY_OP_NUMBER:
delegate.checkImageIntegrity((org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union("")) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(""))).getStringValue(), new CheckImageIntegrityInteraction(interaction));
break;
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._CLONEIMAGE_OP_NUMBER:
delegate.cloneImage((org.ccsds.moims.mo.mal.structures.LongList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.LongList()), (org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.IdentifierList()), new CloneImageInteraction(interaction));
break;
case org.ccsds.moims.mo.softwaremanagement.softwareimage.SoftwareImageHelper._PATCHIMAGE_OP_NUMBER:
delegate.patchImage((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), new PatchImageInteraction(interaction));
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/platform
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._LISTUNITSAVAILABLE_OP_NUMBER:
org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse listUnitsAvailableRt = delegate.listUnitsAvailable((org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.IdentifierList()), interaction);
interaction.sendResponse(listUnitsAvailableRt.getBodyElement0(), listUnitsAvailableRt.getBodyElement1());
break;
case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._ENABLEUNIT_OP_NUMBER:
delegate.enableUnit((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendResponse();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/platform
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._LISTUNITSAVAILABLE_OP_NUMBER:
org.ccsds.moims.mo.platform.powercontrol.body.ListUnitsAvailableResponse listUnitsAvailableRt = listUnitsAvailable((org.ccsds.moims.mo.mal.structures.IdentifierList) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.IdentifierList()), interaction);
interaction.sendResponse(listUnitsAvailableRt.getBodyElement0(), listUnitsAvailableRt.getBodyElement1());
break;
case org.ccsds.moims.mo.platform.powercontrol.PowerControlHelper._ENABLEUNIT_OP_NUMBER:
enableUnit((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Boolean.FALSE))).getBooleanValue(), (body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction);
interaction.sendResponse();
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGE_OP_NUMBER:
delegate.retrieveRange((org.ccsds.moims.mo.mal.structures.FineTime) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.FineTime()), (org.ccsds.moims.mo.mal.structures.FineTime) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.FineTime()), (org.ccsds.moims.mo.com.structures.ObjectTypeList) body.getBodyElement(2, new org.ccsds.moims.mo.com.structures.ObjectTypeList()), (org.ccsds.moims.mo.mal.structures.Identifier) body.getBodyElement(3, new org.ccsds.moims.mo.mal.structures.Identifier()), new RetrieveRangeInteraction(interaction));
break;
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGEAGAIN_OP_NUMBER:
delegate.retrieveRangeAgain((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), (org.ccsds.moims.mo.mal.structures.UIntegerList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.UIntegerList()), new RetrieveRangeAgainInteraction(interaction));
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.nmf.core.moservices.api/com-nmf
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleProgress(org.ccsds.moims.mo.mal.provider.MALProgress interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGE_OP_NUMBER:
retrieveRange((org.ccsds.moims.mo.mal.structures.FineTime) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.FineTime()), (org.ccsds.moims.mo.mal.structures.FineTime) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.FineTime()), (org.ccsds.moims.mo.com.structures.ObjectTypeList) body.getBodyElement(2, new org.ccsds.moims.mo.com.structures.ObjectTypeList()), (org.ccsds.moims.mo.mal.structures.Identifier) body.getBodyElement(3, new org.ccsds.moims.mo.mal.structures.Identifier()), new RetrieveRangeInteraction(interaction));
break;
case org.ccsds.moims.mo.com.archivesync.ArchiveSyncHelper._RETRIEVERANGEAGAIN_OP_NUMBER:
retrieveRangeAgain((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), (org.ccsds.moims.mo.mal.structures.UIntegerList) body.getBodyElement(1, new org.ccsds.moims.mo.mal.structures.UIntegerList()), new RetrieveRangeAgainInteraction(interaction));
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
代码示例来源:origin: int.esa.ccsds.mo/API_COMMON
/**
* Called by the provider MAL layer on reception of a message to handle the interaction.
* @param interaction interaction the interaction object.
* @param body body the message body.
* @throws org.ccsds.moims.mo.mal.MALException if there is a internal error.
* @throws org.ccsds.moims.mo.mal.MALInteractionException if there is a operation interaction error.
*/
public void handleRequest(org.ccsds.moims.mo.mal.provider.MALRequest interaction, org.ccsds.moims.mo.mal.transport.MALMessageBody body) throws org.ccsds.moims.mo.mal.MALInteractionException, org.ccsds.moims.mo.mal.MALException
{
switch (interaction.getOperation().getNumber().getValue())
{
case org.ccsds.moims.mo.common.directory.DirectoryHelper._LOOKUPPROVIDER_OP_NUMBER:
interaction.sendResponse(delegate.lookupProvider((org.ccsds.moims.mo.common.directory.structures.ServiceFilter) body.getBodyElement(0, new org.ccsds.moims.mo.common.directory.structures.ServiceFilter()), interaction));
break;
case org.ccsds.moims.mo.common.directory.DirectoryHelper._PUBLISHPROVIDER_OP_NUMBER:
org.ccsds.moims.mo.common.directory.body.PublishProviderResponse publishProviderRt = delegate.publishProvider((org.ccsds.moims.mo.common.directory.structures.PublishDetails) body.getBodyElement(0, new org.ccsds.moims.mo.common.directory.structures.PublishDetails()), interaction);
interaction.sendResponse((publishProviderRt.getBodyElement0() == null) ? null : new org.ccsds.moims.mo.mal.structures.Union(publishProviderRt.getBodyElement0()), (publishProviderRt.getBodyElement1() == null) ? null : new org.ccsds.moims.mo.mal.structures.Union(publishProviderRt.getBodyElement1()));
break;
case org.ccsds.moims.mo.common.directory.DirectoryHelper._GETSERVICEXML_OP_NUMBER:
interaction.sendResponse(delegate.getServiceXML((body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE)) == null) ? null : ((org.ccsds.moims.mo.mal.structures.Union) body.getBodyElement(0, new org.ccsds.moims.mo.mal.structures.Union(Long.MAX_VALUE))).getLongValue(), interaction));
break;
default:
interaction.sendError(new org.ccsds.moims.mo.mal.MALStandardError(org.ccsds.moims.mo.mal.MALHelper.UNSUPPORTED_OPERATION_ERROR_NUMBER, new org.ccsds.moims.mo.mal.structures.Union("Unknown operation")));
}
}
内容来源于网络,如有侵权,请联系作者删除!