public static ArchiveType earType() { return getModuleType(ModuleType.EAR.toString()); }
public static ArchiveType rarType() { return getModuleType(ModuleType.RAR.toString()); }
public static ArchiveType warType() { return getModuleType(ModuleType.WAR.toString()); }
public static ArchiveType ejbType() { return getModuleType(ModuleType.EJB.toString()); }
public static ArchiveType carType() { return getModuleType(ModuleType.CAR.toString()); }
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.toString().equals(ModuleType.EAR.toString())) { return true; } return false; }
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.toString().equals(ModuleType.WAR.toString()) || archiveType.toString().equals(ModuleType.EJB.toString())) { return true; } return false; }
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.toString().equals(ModuleType.WAR.toString()) || archiveType.toString().equals(ModuleType.EJB.toString())) { return true; } return false; } }
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.toString().equals(ModuleType.WAR.toString()) || archiveType.toString().equals(ModuleType.EJB.toString()) || archiveType.toString().equals(ModuleType.CAR.toString())) { return true; } return false; } }
public TargetModuleID[] getRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException { if (deployment == null) throw new IllegalStateException("Deployment manager is disconnected"); try { String type = null; if (type != null) { moduleType.toString(); } Set<String> targetModulesStrings = deployment.list(type, "running", toTargetSet(targetList)); Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getAvailableModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, null, toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getNonRunningModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, "stopped", toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getAvailableModules(ModuleType moduleType, Target[] targetList) throws TargetException { if (deployment == null) throw new IllegalStateException("Deployment manager is disconnected"); try { String type = null; if (type != null) { moduleType.toString(); } Set<String> targetModulesStrings = deployment.list(type, null, toTargetSet(targetList)); Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getNonRunningModules(ModuleType moduleType, Target[] targetList) throws TargetException { if (deployment == null) throw new IllegalStateException("Deployment manager is disconnected"); try { String type = null; if (type != null) { moduleType.toString(); } Set<String> targetModulesStrings = deployment.list(type, "stopped", toTargetSet(targetList)); Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getAvailableModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, null, toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getNonRunningModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, "stopped", toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
public TargetModuleID[] getRunningModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, "running", toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }
/** * * This API is used to help determine if the sniffer should recognize * the current archive. * If the sniffer does not support the archive type associated with * the current deployment, the sniffer should not recognize the archive. * * @param archiveType the archive type to check * @return whether the sniffer supports the archive type * */ public boolean supportsArchiveType(ArchiveType archiveType) { if (archiveType.equals(ejbType) || archiveType.toString().equals(ModuleType.WAR.toString())) { return true; } return false; }
public TargetModuleID[] getRunningModules(final ModuleType moduleType, final Target[] targetList) throws TargetException { if (deployment == null) { throw new IllegalStateException("Deployment manager is disconnected"); } try { final String type = null; if (type != null) { moduleType.toString(); } final Set<String> targetModulesStrings = deployment.list(type, "running", toTargetSet(targetList)); final Set<TargetModuleID> targetModules = toTargetModuleIds(targetModulesStrings); return targetModules.toArray(new TargetModuleID[targetModules.size()]); } catch (final DeploymentException e) { throw new IllegalStateException("DeployerException while listing deployments", e); } }