public Alarm[] getDescriptors(String[] alarmIDs) throws NullPointerException, ManagementException {
		if (alarmIDs == null) {
			throw new NullPointerException("AlarmID[] must not be null");
		}

		Set<Alarm> alarms = new HashSet<Alarm>();

		try {
			for (String id : alarmIDs) {
				Alarm a = getDescriptor(id);
				if (a != null)
					alarms.add(a);
			}
			return alarms.toArray(new Alarm[alarms.size()]);

		} catch (Exception e) {
			throw new ManagementException("Failed to get desciptors.", e);
		}
	}
public Alarm[] getDescriptors(String[] alarmIDs) throws NullPointerException, ManagementException {
		if (alarmIDs == null) {
			throw new NullPointerException("AlarmID[] must not be null");
		}

		Set<Alarm> alarms = new HashSet<Alarm>();

		try {
			for (String id : alarmIDs) {
				Alarm a = getDescriptor(id);
				if (a != null)
					alarms.add(a);
			}
			return alarms.toArray(new Alarm[alarms.size()]);

		} catch (Exception e) {
			throw new ManagementException("Failed to get desciptors.", e);
		}
	}
public Alarm [ ] getDescriptors ( String [ ] alarmIDs ) throws NullPointerException , ManagementException { if ( alarmIDs == null ) { throw new NullPointerException ( "AlarmID[] must not be null" ) ; } Set < Alarm > alarms = new HashSet < Alarm > ( ) ; try { for ( String id : alarmIDs ) { Alarm a = getDescriptor ( id ) ; if ( a != null ) alarms . add ( a ) ; } return alarms . toArray ( new Alarm [ alarms . size ( ) ] ) ; } catch ( Exception e ) { throw new ManagementException ( "Failed to get desciptors." , e ) ; } }
/*
(non-Javadoc)
@see javax.slee.management.AlarmMBean#getDescriptors(java.lang.String[])
/ * ( non - Javadoc )