private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
@Override public void stop() { delegate.stop(); }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
private void unregisterAgent() { if (agent != null) { agent.stop(); agent = null; } } }
public void deactivateManager() { agent.stop(); // TODO use IOUtils FileUtils.deleteAll(agentDir); }
@Override public void dispose() { super.dispose(); if (otherInstanceAgent != null) { otherInstanceAgent.stop(); otherInstanceAgent = null; toBeImportedProfile = null; } cleanLocalRepository(); }
public Object start(IApplicationContext context) throws Exception { Map<?, ?> allArgs = context.getArguments(); String[] args = (String[]) allArgs.get(IApplicationContext.APPLICATION_ARGS); processArguments(args); // if the user didn't give us a profile id, then use the default SDK one if (profileId == null) profileId = IProfileRegistry.SELF; initializeServices(); IProfile profile = getProfile(profileId); if (profile == null) throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); //$NON-NLS-1$//$NON-NLS-2$ GarbageCollector gc = (GarbageCollector) agent.getService(GarbageCollector.SERVICE_NAME); gc.runGC(profile); agent.stop(); return null; }
public Object start(IApplicationContext context) throws Exception { Map<?, ?> allArgs = context.getArguments(); String[] args = (String[]) allArgs.get(IApplicationContext.APPLICATION_ARGS); processArguments(args); // if the user didn't give us a profile id, then use the default SDK one if (profileId == null) profileId = IProfileRegistry.SELF; initializeServices(); IProfile profile = getProfile(profileId); if (profile == null) throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); //$NON-NLS-1$//$NON-NLS-2$ GarbageCollector gc = (GarbageCollector) agent.getService(GarbageCollector.SERVICE_NAME); gc.runGC(profile); agent.stop(); return null; }
public Object start(IApplicationContext context) throws Exception { Map<?, ?> allArgs = context.getArguments(); String[] args = (String[]) allArgs.get(IApplicationContext.APPLICATION_ARGS); processArguments(args); // if the user didn't give us a profile id, then use the default SDK one if (profileId == null) profileId = DEFAULT_PROFILE_ID; initializeServices(); IProfile profile = getProfile(profileId); if (profile == null) throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); //$NON-NLS-1$//$NON-NLS-2$ GarbageCollector gc = (GarbageCollector) agent.getService(GarbageCollector.SERVICE_NAME); gc.runGC(profile); agent.stop(); return null; }
@Override public Object start(IApplicationContext context) throws Exception { Map<?, ?> allArgs = context.getArguments(); String[] args = (String[]) allArgs.get(IApplicationContext.APPLICATION_ARGS); processArguments(args); // if the user didn't give us a profile id, then use the default SDK one if (profileId == null) profileId = IProfileRegistry.SELF; initializeServices(); IProfile profile = getProfile(profileId); if (profile == null) throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); //$NON-NLS-1$//$NON-NLS-2$ GarbageCollector gc = (GarbageCollector) agent.getService(GarbageCollector.SERVICE_NAME); gc.runGC(profile); agent.stop(); return null; }