public String getContainerName() { if (containerName == null) { return GlobalConstants.DEFAULT.toString(); } return containerName; }
public String getContainerName() { if (containerName == null) { return GlobalConstants.DEFAULT.toString(); } return containerName; }
public String getContainerName() { if (containerName == null) { return GlobalConstants.DEFAULT.toString(); } return containerName; }
/** * Function called by the dependency manager when all the required * dependencies are satisfied * */ void init() { log.debug("flat L2 implementation INIT called!"); containerName = GlobalConstants.DEFAULT.toString(); }
@Override public boolean doesContainerExist(String ContainerId) { return GlobalConstants.DEFAULT.toString().equalsIgnoreCase(ContainerId); }
@Override public List<String> getContainerNames() { /* * Return container names as they were configured by user (case sensitive) * along with the default container */ List<String> containerNameList = new ArrayList<String>(); containerNameList.add(GlobalConstants.DEFAULT.toString()); return containerNameList; }
private Dictionary<String,Object> properties() { final Hashtable<String,Object> props = new Hashtable<String, Object>(); props.put(GlobalConstants.PROTOCOLPLUGINTYPE.toString(), NodeIDType.OPENFLOW); props.put("protocolName", NodeIDType.OPENFLOW); return props; } }
@Override public List<String> getContainerNameList() { /* * Return container names as they were configured by user (case sensitive) * along with the default container */ List<String> containerNameList = new ArrayList<String>(); containerNameList.add(GlobalConstants.DEFAULT.toString()); containerNameList.addAll(containerConfigs.keySet()); return containerNameList; }
void setPluginInService (Map props, IPluginInBridgeDomainConfigService s) { String type = null; Object value = props.get(GlobalConstants.PROTOCOLPLUGINTYPE.toString()); if (value instanceof String) { type = (String) value; } if (type == null) { logger.error("Received a PluginInConnectionService without any " + "protocolPluginType provided"); } else { this.pluginService.put(type, s); } }
/** * Constructor. * * @param props Protocol plugin service properties. * @param s A protocol plugin service handler. */ public ProtocolService(Map<?, ?> props, T s) { service = s; String key = GlobalConstants.PROTOCOLPLUGINPRIORITY.toString(); Object value = props.get(key); if (value instanceof Integer) { priority = ((Integer)value).intValue(); } else { priority = DEFAULT_PRIORITY; } }
/** * Returns whether the passed NodeConnector belongs to the container * * @param container container name * @param table node table to test * @return true if belongs false otherwise */ public boolean containerOwnsNodeTable(String container, NodeTable table) { // All node table belong to the default container if (container.equals(GlobalConstants.DEFAULT.toString())) { return true; } Set<NodeTable> tableSet = containerToNt.get(container); return (tableSet == null) ? false : tableSet.contains(table); }
void unsetPluginInService(Map props, IPluginInBridgeDomainConfigService s) { String type = null; Object value = props.get(GlobalConstants.PROTOCOLPLUGINTYPE.toString()); if (value instanceof String) { type = (String) value; } if (type == null) { logger.error("Received a PluginInConnectionService without any " + "protocolPluginType provided"); } else if (this.pluginService.get(type).equals(s)) { this.pluginService.remove(type); } }
/** * Returns whether the passed NodeConnector belongs to the container * * @param container container name * @param p node connector to test * @return true if belongs false otherwise */ public boolean containerOwnsNodeConnector(String container, NodeConnector p) { // All node connectors belong to the default container if (container.equals(GlobalConstants.DEFAULT.toString())) { return true; } Set<NodeConnector> portSet = containerToNc.get(container); return (portSet == null) ? false : portSet.contains(p); }
/** * Returns whether the passed NodeConnector belongs to the container * * @param container container name * @param p node connector to test * @return true if belongs false otherwise */ public boolean containerOwnsNodeConnector(String container, NodeConnector p) { // All node connectors belong to the default container if (container.equals(GlobalConstants.DEFAULT.toString())) { return true; } Set<NodeConnector> portSet = containerToNc.get(container); return (portSet == null) ? false : portSet.contains(p); }
/** * Returns whether the passed NodeConnector belongs to the container * * @param container container name * @param table node table to test * @return true if belongs false otherwise */ public boolean containerOwnsNodeTable(String container, NodeTable table) { // All node table belong to the default container if (container.equals(GlobalConstants.DEFAULT.toString())) { return true; } Set<NodeTable> tableSet = containerToNt.get(container); return (tableSet == null) ? false : tableSet.contains(table); }
private String getContainerName() { if (container == null) { return GlobalConstants.DEFAULT.toString(); } return container.getName(); }
@Override public boolean doesContainerExist(String containerName) { // Test for default container if (GlobalConstants.DEFAULT.toString().equalsIgnoreCase(containerName)) { return true; } // Test for non-default one return (getContainerByName(containerName) != null); }
public void init() { logger.info("ConfigurationService Manager init"); // Create the default startup directory, so that container unaware apps can initiate save createContainerDirectory(ROOT + GlobalConstants.DEFAULT.toString()); }
public static String getPortName(NodeConnector nodeConnector, Object bundle) { return getPortName(nodeConnector, GlobalConstants.DEFAULT.toString(), bundle); }