/** * Default constructor which creates a column enumeration object. * * @param name The name of the column. * @param width The width of the column. * @param imageName The name of the image. Names are defined in {@link InspectITImages}. * @param dataComparator Comparator for the column. */ private Column( String name, int width, String imageName, IDataComparator<? super HttpTimerData> dataComparator) { this.name = name; this.width = width; this.image = InspectIT.getDefault().getImage(imageName); this.dataComparator = dataComparator; }
/** * The default constructor of this class. The ip and port is mandatory to create the connection. * * @param ip The ip of the CMR. * @param port The port used by the CMR. * @param name The name of the CMR assigned by user. */ public CmrRepositoryDefinition(String ip, int port, String name) { this.ip = ip; this.port = port; this.onlineStatus = OnlineStatus.UNKNOWN; this.name = name; CmrServiceProvider cmrServiceProvider = InspectIT.getService(CmrServiceProvider.class); sqlDataAccessService = cmrServiceProvider.getSqlDataAccessService(this); serverStatusService = cmrServiceProvider.getServerStatusService(this); invocationDataAccessService = cmrServiceProvider.getInvocationDataAccessService(this); exceptionDataAccessService = cmrServiceProvider.getExceptionDataAccessService(this); httpTimerDataAccessService = cmrServiceProvider.getHttpTimerDataAccessService(this); cmrManagementService = cmrServiceProvider.getCmrManagementService(this); timerDataAccessService = cmrServiceProvider.getTimerDataAccessService(this); globalDataAccessService = cmrServiceProvider.getGlobalDataAccessService(this); storageService = cmrServiceProvider.getStorageService(this); configurationInterfaceService = cmrServiceProvider.getConfigurationInterfaceService(this); jmxDataAccessService = cmrServiceProvider.getJmxDataAccessService(this); cachedDataService = new RefreshEditorsCachedDataService(globalDataAccessService, this); }
/** * Creates new folder with given name. * * @param levelName Name. * @return {@link Composite}. */ private static Composite createFolder(String levelName) { Composite composite = new Composite(); composite.setName(levelName); composite.setImage(InspectIT.getDefault().getImage(InspectITImages.IMG_FOLDER)); return composite; }