if ( operationalStatus == null )
{
throw new Exception( "The topic is not set" );
}
Situation aSituation = new SituationImpl( new CategoryImpl( MuwsConstants.SITUATION_AVAILABILITY ) );
if ( firstEvent )
{
aSituation.setSeverity( (short) 4 );
lStringC.setStringValue( "Available disk space is too low" );
aSituation.setSuccessDisposition( Boolean.FALSE );
m_correlationId = ((UUID) IdentifierUtils.UUID_VERSION_FOUR_GENERATOR.nextIdentifier()).toString();
}
else
{
aSituation.setSeverity( (short) 1 );
lStringC.setStringValue( "Available disk space is OK" );
aSituation.setSuccessDisposition( Boolean.TRUE );
}
LangStringImpl lstring = new LangStringImpl( lStringC );
aSituation.setMessage( lstring );
XmlBeansManagementEvent event = new XmlBeansManagementEvent( aSituation );
// set resource Reporter and source ResourceId
ResourcePropertySet propSet = m_notificationProducerResource.getResourcePropertySet( );
ResourceProperty resourceId = propSet.get( ApplicationPropertyQNames.RESOURCEID );