components.xml 1.83 KB
<plexus>
	<components>
		<component>
			<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
			<implementation>com.dianping.cat.hadoop.hdfs.FileSystemManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.config.server.ServerConfigManager</role>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.hadoop.hdfs.HdfsUploader</role>
			<implementation>com.dianping.cat.hadoop.hdfs.HdfsUploader</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.config.server.ServerConfigManager</role>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.message.storage.MessageBucket</role>
			<role-hint>hdfs</role-hint>
			<implementation>com.dianping.cat.hadoop.hdfs.HdfsMessageBucket</implementation>
			<instantiation-strategy>per-lookup</instantiation-strategy>
			<requirements>
				<requirement>
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.message.spi.MessageCodec</role>
					<role-hint>plain-text</role-hint>
				</requirement>
			</requirements>
		</component>
		<component>
			<role>com.dianping.cat.message.storage.MessageBucketManager</role>
			<role-hint>hdfs</role-hint>
			<implementation>com.dianping.cat.hadoop.hdfs.HdfsMessageBucketManager</implementation>
			<requirements>
				<requirement>
					<role>com.dianping.cat.hadoop.hdfs.FileSystemManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.config.server.ServerConfigManager</role>
				</requirement>
				<requirement>
					<role>com.dianping.cat.message.PathBuilder</role>
				</requirement>
			</requirements>
		</component>
	</components>
</plexus>