Service function ( String arg0 ) { for ( Service loc0 : services ) { if ( loc0 . getServiceName ( ) . equals ( arg0 ) ) return loc0 ; } Service loc1 = new Service ( arg0 ) ; services . add ( loc1 ) ; return loc1 ; }
find a service or allocate a new one if it does n't exist . concode_field_sep String hostName concode_elem_sep List<ParameterEntry> hostEntries concode_elem_sep String nagiosSource concode_elem_sep List<Service> services concode_field_sep String getHostName concode_elem_sep List<ParameterEntry> getParameters concode_elem_sep String getNagiosSource concode_elem_sep List<Service> getServices concode_elem_sep Service addServiceEntry concode_elem_sep ParameterEntry addParameter concode_elem_sep Service getService concode_elem_sep String getParameter