import javax.management.remote.JMXServiceURL;
import org.onap.policy.common.im.jpa.ResourceRegistrationEntity;
import org.onap.policy.common.im.jpa.StateManagementEntity;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.onap.policy.common.im.jmx.ComponentAdminMBean;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
*/
public class Main
{
+ private static final Logger logger = LoggerFactory.getLogger(Main.class.getName());
+
// table mapping 'resourceName' to 'StateManagmentEntity'
static HashMap<String, StateManagementEntity> stateManagementTable =
new HashMap<String, StateManagementEntity>();
String formatString = sb.toString();
// display column headers
- System.out.printf(formatString, (Object[])labels);
+ logger.info(formatString, (Object[])labels);
System.out.printf(formatString, (Object[])underlines);
// display all of the rows