Package com.splunk.shuttl.server.mbeans

Examples of com.splunk.shuttl.server.mbeans.ShuttlServerMBean


        "Won't do anything about this", "bucket", bucket));
  }

  public static ArchiveRestHandler create() {
    Logger logger = Logger.getLogger(ArchiveRestHandler.class);
    ShuttlServerMBean serverMBean = ShuttlServer
        .getRegisteredServerMBean(logger);

    return new ArchiveRestHandler(new DefaultHttpClient(), logger, serverMBean);
  }
View Full Code Here


  }

  private ShuttlServerMBean getProxy() throws Exception {
    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    ObjectName name = new ObjectName("com.splunk.shuttl.mbeans:type=Server");
    ShuttlServerMBean proxy = JMX.newMBeanProxy(mbs, name,
        com.splunk.shuttl.server.mbeans.ShuttlServerMBean.class);
    return (proxy);
  }
View Full Code Here

    coldBucketCopier.tryCopyingColdBuckets(indexName);
  }

  public static ColdBucketCopier createColdBucketCopier() {
    ShuttlServerMBean serverMBean = ShuttlServer
        .getRegisteredServerMBean(logger);
   
    CallCopyBucketEndpoint callCopyBucketEndpoint = CallCopyBucketEndpoint
        .create(serverMBean);
    LocalFileSystemPaths fileSystemPaths = LocalFileSystemPaths.create();
View Full Code Here

          ArchiverEndToEndTest.class.getName() + "-safeBuckets");
      IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
          .create(movedBucketsLocation);
      BucketLocker bucketLocker = new BucketLockerInTestDir(
          createDirectoryInParent(tempDirectory, "bucketlocks"));
      ShuttlServerMBean serverMBean = ShuttlServer.getMBeanProxy();
      ArchiveRestHandler archiveRestHandler = new ArchiveRestHandler(
          new DefaultHttpClient(), serverMBean);

      return new BucketFreezer(bucketMover, bucketLocker, archiveRestHandler,
          mock(FailedBucketsArchiver.class));
View Full Code Here

  }

  private void setUp(String hadoopHost, String hadoopPort)
      throws InstanceNotFoundException {
    config = ArchiveConfiguration.getSharedInstance();
    ShuttlServerMBean serverMBean = ShuttlServer.getMBeanProxy();
    localFileSystemPaths = LocalFileSystemPaths.create();
    pathResolver = new PathResolver(config);
    hadoopFileSystem = getHadoopFileSystem(hadoopHost, hadoopPort);

    IndexPreservingBucketMover bucketMover = IndexPreservingBucketMover
View Full Code Here

    try {
      ShuttlArchiverMBean archiverMBean = MBeanUtils.getMBeanInstance(
          ShuttlArchiverMBean.OBJECT_NAME, ShuttlArchiverMBean.class);
      JMXSplunkMBean splunkMBean = MBeanUtils.getMBeanInstance(
          JMXSplunkMBean.OBJECT_NAME, JMXSplunkMBean.class);
      ShuttlServerMBean serverMBean = MBeanUtils.getMBeanInstance(
          ShuttlServer.OBJECT_NAME, ShuttlServerMBean.class);
      return archiverMBean != null && splunkMBean != null
          && serverMBean != null;
    } catch (InstanceNotFoundException e) {
      return false;
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.server.mbeans.ShuttlServerMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.