Hi Frank ,
Thank you for your response , it's Ok now , but what's about scalar
mbean attribute with :
type="long"
snmpType="TimeTicks"
I have found a similar class to TruthValueTC : TimeStampTC ,Is it the
correct one to use for that case ? and what's about the value of Variable
argument ?
Best regards,
Ouafae.
2009/3/25 Frank Fock <[email protected]>
> Hi Ouafae,
>
> Just use "new Integer32(1)" with TruthValueTC.createScalar(..).
>
> Best regards,
> Frank
>
> wafae alami wrote:
>
>> Hi ,
>>
>> I want to create a MOScalar object for a scalar mbean attribute :
>> attribute type =boolean
>> attribute snmpType=TruthValue
>>
>> MOScalar moScalar =
>> moFactory.createScalar(oidScalarMbeanAttribute,
>>
>> moFactory.createAccess(MOAccessImpl.ACCESSIBLE_FOR_READ_WRITE), ? ,
>> "MIB-MODULE-NAME", "TruthValue")
>>
>>
>>
>> what should be the value of the Variable argument ?
>> Sould I create an enumeration for that attribute with "true" , "false"
>> value or there is another thing ready to use in that case ?
>>
>>
>>
>>
>> Thanks in advance .
>>
>> Ouafae .
>> _______________________________________________
>> SNMP4J mailing list
>> [email protected]
>> http://lists.agentpp.org/mailman/listinfo/snmp4j
>>
>
> --
> AGENT++
> http://www.agentpp.com
> http://www.mibexplorer.com
> http://www.mibdesigner.com
>
>
_______________________________________________
SNMP4J mailing list
[email protected]
http://lists.agentpp.org/mailman/listinfo/snmp4j