123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\Indexer;
- /**
- * Indexer
- *
- * @api
- * @deprecated 102.0.0 Facade will be split
- * @see \Magento\Framework\Indexer\ActionInterface
- * @since 100.0.2
- */
- interface IndexerInterface
- {
- /**
- * Return indexer ID
- *
- * @return string
- */
- public function getId();
- /**
- * Return indexer's view ID
- *
- * @return string
- */
- public function getViewId();
- /**
- * Return indexer action class
- *
- * @return string
- */
- public function getActionClass();
- /**
- * Return indexer title
- *
- * @return string
- */
- public function getTitle();
- /**
- * Return indexer description
- *
- * @return string
- */
- public function getDescription();
- /**
- * Return indexer fields
- *
- * @return array
- */
- public function getFields();
- /**
- * Return indexer sources
- *
- * @return array
- */
- public function getSources();
- /**
- * Return indexer handlers
- *
- * @return array
- */
- public function getHandlers();
- /**
- * Fill indexer data from config
- *
- * @param string $indexerId
- * @return IndexerInterface
- * @throws \InvalidArgumentException
- */
- public function load($indexerId);
- /**
- * Return related view object
- *
- * @return \Magento\Framework\Mview\ViewInterface
- */
- public function getView();
- /**
- * Return related state object
- *
- * @return StateInterface
- */
- public function getState();
- /**
- * Set indexer state object
- *
- * @param StateInterface $state
- * @return IndexerInterface
- */
- public function setState(StateInterface $state);
- /**
- * Check whether indexer is run by schedule
- *
- * @return bool
- */
- public function isScheduled();
- /**
- * Turn scheduled mode on/off
- *
- * @param bool $scheduled
- * @return void
- */
- public function setScheduled($scheduled);
- /**
- * Check whether indexer is valid
- *
- * @return bool
- */
- public function isValid();
- /**
- * Check whether indexer is invalid
- *
- * @return bool
- */
- public function isInvalid();
- /**
- * Check whether indexer is working
- *
- * @return bool
- */
- public function isWorking();
- /**
- * Set indexer invalid
- *
- * @return void
- */
- public function invalidate();
- /**
- * Return indexer status
- *
- * @return string
- */
- public function getStatus();
- /**
- * Return indexer or mview latest updated time
- *
- * @return string
- */
- public function getLatestUpdated();
- /**
- * Regenerate full index
- *
- * @return void
- * @throws \Exception
- * @deprecated 102.0.0
- * @see \Magento\Framework\Indexer\ActionInterface::executeFull
- */
- public function reindexAll();
- /**
- * Regenerate one row in index by ID
- *
- * @param int $id
- * @return void
- * @deprecated 102.0.0
- * @see \Magento\Framework\Indexer\ActionInterface::executeList
- */
- public function reindexRow($id);
- /**
- * Regenerate rows in index by ID list
- *
- * @param int[] $ids
- * @return void
- * @deprecated 102.0.0
- * @see \Magento\Framework\Indexer\ActionInterface::executeList
- */
- public function reindexList($ids);
- }
|