package org.slc.sli.ingestion.nodes;

import java.util.UUID;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Simple bean that provides information about this ingestion node.
 *
 * @author smelody
 *
 */
@Component
public class NodeInfo {

    private static final Logger LOG = LoggerFactory.getLogger( NodeInfo.class );

    private UUID uuid;

    @Value("${sli.ingestion.nodeType}")
    private String ingestionNodeType;


    public NodeInfo() {
        uuid = UUID.randomUUID();
    }

    @PostConstruct
    public void init() {

        LOG.info( "Starting node with uuid: {} and node type: ", uuid, ingestionNodeType );


    }

    /**
     * Returns the UUID of this node.
     * @return
     */
    public UUID getUUID() {
        return uuid;
    }

    /**
     * Returns the type of ingestion node - loosely typed in IngestionNodeType.
     * @return
     */
    public String getNodeType() {
        return ingestionNodeType;
    }

}

@@ -460,17 +460,16 @@
 tLogger(
- 
 NodeInfo
@@ -474,17 +474,16 @@
 fo.class
- 
 );%0A%0A    
@@ -581,17 +581,16 @@
 eType;%0A%0A
-%0A
     publ
@@ -708,17 +708,16 @@
 OG.info(
- 
 %22Startin
@@ -782,14 +782,12 @@
 Type
- 
 );%0A%0A
-%0A
     
@@ -835,16 +835,23 @@
 s node.%0A
+     *%0A
      * @
@@ -921,32 +921,32 @@
 %0A    %7D%0A%0A    /**%0A
-
      * Returns t
@@ -1009,16 +1009,23 @@
 deType.%0A
+     *%0A
      * @

fix checkstyle