test_class.declarator: tz = TimeZone.getTimeZone("UTC")
test_class.modifier: private static
test_class.original_string: private static TimeZone tz = TimeZone.getTimeZone("UTC");
test_class.type: TimeZone
test_class.var_name: tz
test_class.file: common/src/test/java/org/apache/ivory/entity/EntityUtilTest.java
test_class.identifier: EntityUtilTest
test_class.superclass: extends AbstractTestBase
test_case.body: @Test
      public void testFeedView() throws Exception {
          Feed feed = (Feed) EntityType.FEED.getUnmarshaller().unmarshal(
                  getClass().getResourceAsStream(FEED_XML));
          Feed view = EntityUtil.getClusterView(feed, "testCluster");
          Assert.assertEquals(view.getClusters().getClusters().size(), 1);
          Assert.assertEquals(view.getClusters().getClusters().get(0).getName(), "testCluster");
          
          view = EntityUtil.getClusterView(feed, "backupCluster");
          Assert.assertEquals(view.getClusters().getClusters().size(), 2);
      }
test_case.class_method_signature: EntityUtilTest.testFeedView()
test_case.full_signature: @Test public void testFeedView()
test_case.identifier: testFeedView
test_case.invocations: unmarshal getUnmarshaller getResourceAsStream getClass getClusterView assertEquals size getClusters getClusters assertEquals getName get getClusters getClusters getClusterView assertEquals size getClusters getClusters
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFeedView()
focal_class.declarator: MINUTE_IN_MS = 60000L
focal_class.modifier: private static final
focal_class.original_string: private static final long MINUTE_IN_MS = 60000L;
focal_class.type: long
focal_class.var_name: MINUTE_IN_MS
focal_class.declarator: HOUR_IN_MS = 3600000L
focal_class.modifier: private static final
focal_class.original_string: private static final long HOUR_IN_MS = 3600000L;
focal_class.type: long
focal_class.var_name: HOUR_IN_MS
focal_class.declarator: DAY_IN_MS = 86400000L
focal_class.modifier: private static final
focal_class.original_string: private static final long DAY_IN_MS = 86400000L;
focal_class.type: long
focal_class.var_name: DAY_IN_MS
focal_class.declarator: MONTH_IN_MS = 2592000000L
focal_class.modifier: private static final
focal_class.original_string: private static final long MONTH_IN_MS = 2592000000L;
focal_class.type: long
focal_class.var_name: MONTH_IN_MS
focal_class.file: common/src/main/java/org/apache/ivory/entity/EntityUtil.java
focal_class.identifier: EntityUtil
focal_class.class_method_signature: EntityUtil.getEntity(EntityType type, String entityName)
focal_class.full_signature: public static T getEntity(EntityType type, String entityName)
focal_class.identifier: getEntity
focal_class.modifiers: public static
focal_class.parameters: (EntityType type, String entityName)
focal_class.return: T
focal_class.signature: T getEntity(EntityType type, String entityName)
focal_class.class_method_signature: EntityUtil.getEntity(String type, String entityName)
focal_class.full_signature: public static T getEntity(String type, String entityName)
focal_class.identifier: getEntity
focal_class.modifiers: public static
focal_class.parameters: (String type, String entityName)
focal_class.return: T
focal_class.signature: T getEntity(String type, String entityName)
focal_class.class_method_signature: EntityUtil.getTimeZone(String tzId)
focal_class.full_signature: public static TimeZone getTimeZone(String tzId)
focal_class.identifier: getTimeZone
focal_class.modifiers: public static
focal_class.parameters: (String tzId)
focal_class.return: TimeZone
focal_class.signature: TimeZone getTimeZone(String tzId)
focal_class.class_method_signature: EntityUtil.getEndTime(Entity entity, String cluster)
focal_class.full_signature: public static Date getEndTime(Entity entity, String cluster)
focal_class.identifier: getEndTime
focal_class.modifiers: public static
focal_class.parameters: (Entity entity, String cluster)
focal_class.return: Date
focal_class.signature: Date getEndTime(Entity entity, String cluster)
focal_class.class_method_signature: EntityUtil.parseDateUTC(String dateStr)
focal_class.full_signature: public static Date parseDateUTC(String dateStr)
focal_class.identifier: parseDateUTC
focal_class.modifiers: public static
focal_class.parameters: (String dateStr)
focal_class.return: Date
focal_class.signature: Date parseDateUTC(String dateStr)
focal_class.class_method_signature: EntityUtil.getStartTime(Entity entity, String cluster)
focal_class.full_signature: public static Date getStartTime(Entity entity, String cluster)
focal_class.identifier: getStartTime
focal_class.modifiers: public static
focal_class.parameters: (Entity entity, String cluster)
focal_class.return: Date
focal_class.signature: Date getStartTime(Entity entity, String cluster)
focal_class.class_method_signature: EntityUtil.getEndTime(Process process, String cluster)
focal_class.full_signature: public static Date getEndTime(Process process, String cluster)
focal_class.identifier: getEndTime
focal_class.modifiers: public static
focal_class.parameters: (Process process, String cluster)
focal_class.return: Date
focal_class.signature: Date getEndTime(Process process, String cluster)
focal_class.class_method_signature: EntityUtil.getStartTime(Process process, String cluster)
focal_class.full_signature: public static Date getStartTime(Process process, String cluster)
focal_class.identifier: getStartTime
focal_class.modifiers: public static
focal_class.parameters: (Process process, String cluster)
focal_class.return: Date
focal_class.signature: Date getStartTime(Process process, String cluster)
focal_class.class_method_signature: EntityUtil.getEndTime(Feed feed, String cluster)
focal_class.full_signature: public static Date getEndTime(Feed feed, String cluster)
focal_class.identifier: getEndTime
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, String cluster)
focal_class.return: Date
focal_class.signature: Date getEndTime(Feed feed, String cluster)
focal_class.class_method_signature: EntityUtil.getStartTime(Feed feed, String cluster)
focal_class.full_signature: public static Date getStartTime(Feed feed, String cluster)
focal_class.identifier: getStartTime
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, String cluster)
focal_class.return: Date
focal_class.signature: Date getStartTime(Feed feed, String cluster)
focal_class.class_method_signature: EntityUtil.getParallel(Entity entity)
focal_class.full_signature: public static int getParallel(Entity entity)
focal_class.identifier: getParallel
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: int
focal_class.signature: int getParallel(Entity entity)
focal_class.class_method_signature: EntityUtil.setStartDate(Entity entity, String cluster, Date startDate)
focal_class.full_signature: public static void setStartDate(Entity entity, String cluster, Date startDate)
focal_class.identifier: setStartDate
focal_class.modifiers: public static
focal_class.parameters: (Entity entity, String cluster, Date startDate)
focal_class.return: void
focal_class.signature: void setStartDate(Entity entity, String cluster, Date startDate)
focal_class.class_method_signature: EntityUtil.setEndTime(Entity entity, String cluster, Date endDate)
focal_class.full_signature: public static void setEndTime(Entity entity, String cluster, Date endDate)
focal_class.identifier: setEndTime
focal_class.modifiers: public static
focal_class.parameters: (Entity entity, String cluster, Date endDate)
focal_class.return: void
focal_class.signature: void setEndTime(Entity entity, String cluster, Date endDate)
focal_class.class_method_signature: EntityUtil.setParallel(Entity entity, int parallel)
focal_class.full_signature: public static void setParallel(Entity entity, int parallel)
focal_class.identifier: setParallel
focal_class.modifiers: public static
focal_class.parameters: (Entity entity, int parallel)
focal_class.return: void
focal_class.signature: void setParallel(Entity entity, int parallel)
focal_class.class_method_signature: EntityUtil.getParallel(Process process)
focal_class.full_signature: public static int getParallel(Process process)
focal_class.identifier: getParallel
focal_class.modifiers: public static
focal_class.parameters: (Process process)
focal_class.return: int
focal_class.signature: int getParallel(Process process)
focal_class.class_method_signature: EntityUtil.setStartDate(Process process, String cluster, Date startDate)
focal_class.full_signature: public static void setStartDate(Process process, String cluster, Date startDate)
focal_class.identifier: setStartDate
focal_class.modifiers: public static
focal_class.parameters: (Process process, String cluster, Date startDate)
focal_class.return: void
focal_class.signature: void setStartDate(Process process, String cluster, Date startDate)
focal_class.class_method_signature: EntityUtil.setParallel(Process process, int parallel)
focal_class.full_signature: public static void setParallel(Process process, int parallel)
focal_class.identifier: setParallel
focal_class.modifiers: public static
focal_class.parameters: (Process process, int parallel)
focal_class.return: void
focal_class.signature: void setParallel(Process process, int parallel)
focal_class.class_method_signature: EntityUtil.setEndTime(Process process, String cluster, Date endDate)
focal_class.full_signature: public static void setEndTime(Process process, String cluster, Date endDate)
focal_class.identifier: setEndTime
focal_class.modifiers: public static
focal_class.parameters: (Process process, String cluster, Date endDate)
focal_class.return: void
focal_class.signature: void setEndTime(Process process, String cluster, Date endDate)
focal_class.class_method_signature: EntityUtil.getParallel(Feed feed)
focal_class.full_signature: public static int getParallel(Feed feed)
focal_class.identifier: getParallel
focal_class.modifiers: public static
focal_class.parameters: (Feed feed)
focal_class.return: int
focal_class.signature: int getParallel(Feed feed)
focal_class.class_method_signature: EntityUtil.setStartDate(Feed feed, String cluster, Date startDate)
focal_class.full_signature: public static void setStartDate(Feed feed, String cluster, Date startDate)
focal_class.identifier: setStartDate
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, String cluster, Date startDate)
focal_class.return: void
focal_class.signature: void setStartDate(Feed feed, String cluster, Date startDate)
focal_class.class_method_signature: EntityUtil.setEndTime(Feed feed, String cluster, Date endDate)
focal_class.full_signature: public static void setEndTime(Feed feed, String cluster, Date endDate)
focal_class.identifier: setEndTime
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, String cluster, Date endDate)
focal_class.return: void
focal_class.signature: void setEndTime(Feed feed, String cluster, Date endDate)
focal_class.class_method_signature: EntityUtil.setParallel(Feed feed, int parallel)
focal_class.full_signature: public static void setParallel(Feed feed, int parallel)
focal_class.identifier: setParallel
focal_class.modifiers: public static
focal_class.parameters: (Feed feed, int parallel)
focal_class.return: void
focal_class.signature: void setParallel(Feed feed, int parallel)
focal_class.class_method_signature: EntityUtil.getFrequency(Entity entity)
focal_class.full_signature: public static Frequency getFrequency(Entity entity)
focal_class.identifier: getFrequency
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: Frequency
focal_class.signature: Frequency getFrequency(Entity entity)
focal_class.class_method_signature: EntityUtil.getFrequency(Process process)
focal_class.full_signature: public static Frequency getFrequency(Process process)
focal_class.identifier: getFrequency
focal_class.modifiers: public static
focal_class.parameters: (Process process)
focal_class.return: Frequency
focal_class.signature: Frequency getFrequency(Process process)
focal_class.class_method_signature: EntityUtil.getFrequency(Feed feed)
focal_class.full_signature: public static Frequency getFrequency(Feed feed)
focal_class.identifier: getFrequency
focal_class.modifiers: public static
focal_class.parameters: (Feed feed)
focal_class.return: Frequency
focal_class.signature: Frequency getFrequency(Feed feed)
focal_class.class_method_signature: EntityUtil.getTimeZone(Entity entity)
focal_class.full_signature: public static TimeZone getTimeZone(Entity entity)
focal_class.identifier: getTimeZone
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: TimeZone
focal_class.signature: TimeZone getTimeZone(Entity entity)
focal_class.class_method_signature: EntityUtil.getTimeZone(Process process)
focal_class.full_signature: public static TimeZone getTimeZone(Process process)
focal_class.identifier: getTimeZone
focal_class.modifiers: public static
focal_class.parameters: (Process process)
focal_class.return: TimeZone
focal_class.signature: TimeZone getTimeZone(Process process)
focal_class.class_method_signature: EntityUtil.getTimeZone(Feed feed)
focal_class.full_signature: public static TimeZone getTimeZone(Feed feed)
focal_class.identifier: getTimeZone
focal_class.modifiers: public static
focal_class.parameters: (Feed feed)
focal_class.return: TimeZone
focal_class.signature: TimeZone getTimeZone(Feed feed)
focal_class.class_method_signature: EntityUtil.getNextStartTime(Date startTime, Frequency frequency, TimeZone timezone, Date now)
focal_class.full_signature: public static Date getNextStartTime(Date startTime, Frequency frequency, TimeZone timezone, Date now)
focal_class.identifier: getNextStartTime
focal_class.modifiers: public static
focal_class.parameters: (Date startTime, Frequency frequency, TimeZone timezone, Date now)
focal_class.return: Date
focal_class.signature: Date getNextStartTime(Date startTime, Frequency frequency, TimeZone timezone, Date now)
focal_class.class_method_signature: EntityUtil.getInstanceSequence(Date startTime, Frequency frequency, TimeZone tz, Date instanceTime)
focal_class.full_signature: public static int getInstanceSequence(Date startTime, Frequency frequency, TimeZone tz, Date instanceTime)
focal_class.identifier: getInstanceSequence
focal_class.modifiers: public static
focal_class.parameters: (Date startTime, Frequency frequency, TimeZone tz, Date instanceTime)
focal_class.return: int
focal_class.signature: int getInstanceSequence(Date startTime, Frequency frequency, TimeZone tz, Date instanceTime)
focal_class.class_method_signature: EntityUtil.md5(Entity entity)
focal_class.full_signature: public static String md5(Entity entity)
focal_class.identifier: md5
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: String
focal_class.signature: String md5(Entity entity)
focal_class.class_method_signature: EntityUtil.equals(Entity lhs, Entity rhs)
focal_class.full_signature: public static boolean equals(Entity lhs, Entity rhs)
focal_class.identifier: equals
focal_class.modifiers: public static
focal_class.parameters: (Entity lhs, Entity rhs)
focal_class.return: boolean
focal_class.signature: boolean equals(Entity lhs, Entity rhs)
focal_class.class_method_signature: EntityUtil.equals(Entity lhs, Entity rhs, String[] filterProps)
focal_class.full_signature: public static boolean equals(Entity lhs, Entity rhs, String[] filterProps)
focal_class.identifier: equals
focal_class.modifiers: public static
focal_class.parameters: (Entity lhs, Entity rhs, String[] filterProps)
focal_class.return: boolean
focal_class.signature: boolean equals(Entity lhs, Entity rhs, String[] filterProps)
focal_class.class_method_signature: EntityUtil.stringOf(Entity entity)
focal_class.full_signature: public static String stringOf(Entity entity)
focal_class.identifier: stringOf
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: String
focal_class.signature: String stringOf(Entity entity)
focal_class.class_method_signature: EntityUtil.stringOf(Entity entity, String[] filterProps)
focal_class.full_signature: private static String stringOf(Entity entity, String[] filterProps)
focal_class.identifier: stringOf
focal_class.modifiers: private static
focal_class.parameters: (Entity entity, String[] filterProps)
focal_class.return: String
focal_class.signature: String stringOf(Entity entity, String[] filterProps)
focal_class.class_method_signature: EntityUtil.mapToProperties(Object obj, String name, Map<String, String> propMap, String[] filterProps)
focal_class.full_signature: @SuppressWarnings("rawtypes") private static void mapToProperties(Object obj, String name, Map<String, String> propMap, String[] filterProps)
focal_class.identifier: mapToProperties
focal_class.modifiers: @SuppressWarnings("rawtypes") private static
focal_class.parameters: (Object obj, String name, Map<String, String> propMap, String[] filterProps)
focal_class.return: void
focal_class.signature: void mapToProperties(Object obj, String name, Map<String, String> propMap, String[] filterProps)
focal_class.class_method_signature: EntityUtil.getStagingPath(Entity entity)
focal_class.full_signature: public static String getStagingPath(Entity entity)
focal_class.identifier: getStagingPath
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: String
focal_class.signature: String getStagingPath(Entity entity)
focal_class.class_method_signature: EntityUtil.getWorkflowName(Tag tag, List<String> suffixes,
  			Entity entity)
focal_class.full_signature: public static WorkflowName getWorkflowName(Tag tag, List<String> suffixes,
  			Entity entity)
focal_class.identifier: getWorkflowName
focal_class.modifiers: public static
focal_class.parameters: (Tag tag, List<String> suffixes,
  			Entity entity)
focal_class.return: WorkflowName
focal_class.signature: WorkflowName getWorkflowName(Tag tag, List<String> suffixes,
  			Entity entity)
focal_class.class_method_signature: EntityUtil.getWorkflowName(Tag tag, Entity entity)
focal_class.full_signature: public static WorkflowName getWorkflowName(Tag tag, Entity entity)
focal_class.identifier: getWorkflowName
focal_class.modifiers: public static
focal_class.parameters: (Tag tag, Entity entity)
focal_class.return: WorkflowName
focal_class.signature: WorkflowName getWorkflowName(Tag tag, Entity entity)
focal_class.class_method_signature: EntityUtil.getWorkflowName(Entity entity)
focal_class.full_signature: public static WorkflowName getWorkflowName(Entity entity)
focal_class.identifier: getWorkflowName
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: WorkflowName
focal_class.signature: WorkflowName getWorkflowName(Entity entity)
focal_class.class_method_signature: EntityUtil.getWorkflowNameSuffix(String workflowName,
  			Entity entity)
focal_class.full_signature: public static String getWorkflowNameSuffix(String workflowName,
  			Entity entity)
focal_class.identifier: getWorkflowNameSuffix
focal_class.modifiers: public static
focal_class.parameters: (String workflowName,
  			Entity entity)
focal_class.return: String
focal_class.signature: String getWorkflowNameSuffix(String workflowName,
  			Entity entity)
focal_class.class_method_signature: EntityUtil.getWorkflowNameTag(String workflowName, Entity entity)
focal_class.full_signature: public static Tag getWorkflowNameTag(String workflowName, Entity entity)
focal_class.identifier: getWorkflowNameTag
focal_class.modifiers: public static
focal_class.parameters: (String workflowName, Entity entity)
focal_class.return: Tag
focal_class.signature: Tag getWorkflowNameTag(String workflowName, Entity entity)
focal_class.class_method_signature: EntityUtil.getClusterView(T entity, String clusterName)
focal_class.full_signature: public static T getClusterView(T entity, String clusterName)
focal_class.identifier: getClusterView
focal_class.modifiers: public static
focal_class.parameters: (T entity, String clusterName)
focal_class.return: T
focal_class.signature: T getClusterView(T entity, String clusterName)
focal_class.class_method_signature: EntityUtil.getClustersDefined(Entity entity)
focal_class.full_signature: public static Set<String> getClustersDefined(Entity entity)
focal_class.identifier: getClustersDefined
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: Set<String>
focal_class.signature: Set<String> getClustersDefined(Entity entity)
focal_class.class_method_signature: EntityUtil.getClustersDefinedInColos(Entity entity)
focal_class.full_signature: public static Set<String> getClustersDefinedInColos(Entity entity)
focal_class.identifier: getClustersDefinedInColos
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: Set<String>
focal_class.signature: Set<String> getClustersDefinedInColos(Entity entity)
focal_class.class_method_signature: EntityUtil.getStagingPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.full_signature: public static Path getStagingPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.identifier: getStagingPath
focal_class.modifiers: public static
focal_class.parameters: (
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.return: Path
focal_class.signature: Path getStagingPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.class_method_signature: EntityUtil.getRetry(Entity entity)
focal_class.full_signature: public static Retry getRetry(Entity entity)
focal_class.identifier: getRetry
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: Retry
focal_class.signature: Retry getRetry(Entity entity)
focal_class.class_method_signature: EntityUtil.getLateProcess(Entity entity)
focal_class.full_signature: public static LateProcess getLateProcess(Entity entity)
focal_class.identifier: getLateProcess
focal_class.modifiers: public static
focal_class.parameters: (Entity entity)
focal_class.return: LateProcess
focal_class.signature: LateProcess getLateProcess(Entity entity)
focal_class.class_method_signature: EntityUtil.getLogPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.full_signature: public static Path getLogPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.identifier: getLogPath
focal_class.modifiers: public static
focal_class.parameters: (
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.return: Path
focal_class.signature: Path getLogPath(
  			org.apache.ivory.entity.v0.cluster.Cluster cluster, Entity entity)
focal_class.class_method_signature: EntityUtil.UTCtoURIDate(String utc)
focal_class.full_signature: public static String UTCtoURIDate(String utc)
focal_class.identifier: UTCtoURIDate
focal_class.modifiers: public static
focal_class.parameters: (String utc)
focal_class.return: String
focal_class.signature: String UTCtoURIDate(String utc)
focal_method.body: public static <T extends Entity> T getClusterView(T entity, String clusterName) {
  	    switch(entity.getEntityType()) {
  	    case CLUSTER:
  	        return entity;
  	        
  	    case FEED:
  	        Feed feed = (Feed) entity.clone();
  	        Cluster feedCluster = FeedHelper.getCluster(feed, clusterName);
  	        Iterator<Cluster> itr = feed.getClusters().getClusters().iterator();
  	        while(itr.hasNext()) {
  	            Cluster cluster = itr.next();
  	            //In addition to retaining the required clster, retain the sources clusters if this is the target cluster
  	            //1. Retain cluster if cluster n
  	            if(!(cluster.getName().equals(clusterName) || 
  	                    (feedCluster.getType() == ClusterType.TARGET && cluster.getType() == ClusterType.SOURCE)))
  	                itr.remove();
  	        }
  	        return (T) feed;            
  	        
  	    case PROCESS:
  	        Process process = (Process) entity.clone();
  	        Iterator<org.apache.ivory.entity.v0.process.Cluster> procItr = process.getClusters().getClusters().iterator();
  	        while(procItr.hasNext()) {
  	            org.apache.ivory.entity.v0.process.Cluster cluster = procItr.next();
  	            if(!cluster.getName().equals(clusterName))
  	                procItr.remove();
  	        }
  	        return (T) process;
  	    }
  	    throw new UnsupportedOperationException("Not supported for entity type " + entity.getEntityType());
  	}
focal_method.class_method_signature: EntityUtil.getClusterView(T entity, String clusterName)
focal_method.full_signature: public static T getClusterView(T entity, String clusterName)
focal_method.identifier: getClusterView
focal_method.invocations: getEntityType clone getCluster iterator getClusters getClusters hasNext next equals getName getType getType remove clone iterator getClusters getClusters hasNext next equals getName remove getEntityType
focal_method.modifiers: public static
focal_method.parameters: (T entity, String clusterName)
focal_method.return: T
focal_method.signature: T getClusterView(T entity, String clusterName)