APISonar


com.dotmarketing.util.AdminLogger.log

> com > dotmarketing > util > AdminLogger > log
com APIs dotmarketing APIs util APIs AdminLogger APIs log APIs

Example 1
public void log(final String action, String message) {
		ActivityLogger.logInfo(UserResource.class, action, message);
		AdminLogger.log(UserResource.class, action, message);
	}
Example 2
public void viewAccepted(View new_view) {
		super.viewAccepted(new_view);
		Logger.info(this, "Method view: Cluster View is : " + new_view);
		AdminLogger.log(DotGuavaCacheAdministratorImpl.class, "viewAccepted", "Cluster View is : " + new_view);
	}
Example 3
public void closeIndex(String indexName) {
    	AdminLogger.log(this.getClass(), "closeIndex", "Trying to close index: " + indexName);

        Client client=new ESClient().getClient();
        client.admin().indices().close(new CloseIndexRequest(indexName)).actionGet();

        AdminLogger.log(this.getClass(), "closeIndex", "Index: " + indexName + " closed");
    }
Example 4
public static void activateIndex(String indexName) throws DotDataException {
    	AdminLogger.log(ESIndexResource.class, "activateIndex", "Trying to activate index: " + indexName);
    	
        if(indexName.startsWith(SiteSearchAPI.ES_SITE_SEARCH_NAME)){
            APILocator.getSiteSearchAPI().activateIndex(indexName);
        }
        else{
            APILocator.getContentletIndexAPI().activateIndex(indexName);
        }
        
        AdminLogger.log(ESIndexResource.class, "activateIndex", "Index activated: " + indexName);
    }
Example 5
public void suspect(Address mbr) {
		super.suspect(mbr);
		Logger.info(this, "Method suspect: There is a suspected member : " + mbr);
	    AdminLogger.log(DotJBCacheAdministratorImpl.class, "suspect", "There is a suspected member : " + mbr);
	}