forked from smartloli/EFAK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from smartloli/master
update
- Loading branch information
Showing
54 changed files
with
1,994 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...eagle-common/src/main/java/org/smartloli/kafka/eagle/common/protocol/topic/TopicRank.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.smartloli.kafka.eagle.common.protocol.topic; | ||
|
||
import org.smartloli.kafka.eagle.common.protocol.BaseProtocol; | ||
|
||
/** | ||
* Rank topic records logsize & capacity size. | ||
* | ||
* @author smartloli. | ||
* | ||
* Created by Jul 27, 2019 | ||
*/ | ||
public class TopicRank extends BaseProtocol { | ||
|
||
private String cluster = ""; | ||
private String topic = ""; | ||
private String tkey = ""; | ||
private long tvalue = 0L; | ||
|
||
public String getCluster() { | ||
return cluster; | ||
} | ||
|
||
public void setCluster(String cluster) { | ||
this.cluster = cluster; | ||
} | ||
|
||
public String getTopic() { | ||
return topic; | ||
} | ||
|
||
public void setTopic(String topic) { | ||
this.topic = topic; | ||
} | ||
|
||
public String getTkey() { | ||
return tkey; | ||
} | ||
|
||
public void setTkey(String tkey) { | ||
this.tkey = tkey; | ||
} | ||
|
||
public long getTvalue() { | ||
return tvalue; | ||
} | ||
|
||
public void setTvalue(long tvalue) { | ||
this.tvalue = tvalue; | ||
} | ||
|
||
} |
86 changes: 86 additions & 0 deletions
86
...common/src/main/java/org/smartloli/kafka/eagle/common/protocol/topic/TopicSqlHistory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.smartloli.kafka.eagle.common.protocol.topic; | ||
|
||
import org.smartloli.kafka.eagle.common.protocol.BaseProtocol; | ||
|
||
/** | ||
* Record topic query sql. | ||
* | ||
* @author smartloli. | ||
* | ||
* Created by Jul 27, 2019 | ||
*/ | ||
public class TopicSqlHistory extends BaseProtocol { | ||
|
||
private String cluster = ""; | ||
private String username = ""; | ||
private String ksql = ""; | ||
private String status = ""; | ||
private long timespan = 0L; | ||
private String tm = ""; | ||
|
||
public String getCluster() { | ||
return cluster; | ||
} | ||
|
||
public void setCluster(String cluster) { | ||
this.cluster = cluster; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
public String getKsql() { | ||
return ksql; | ||
} | ||
|
||
public void setKsql(String ksql) { | ||
this.ksql = ksql; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public long getTimespan() { | ||
return timespan; | ||
} | ||
|
||
public void setTimespan(long timespan) { | ||
this.timespan = timespan; | ||
} | ||
|
||
public String getTm() { | ||
return tm; | ||
} | ||
|
||
public void setTm(String tm) { | ||
this.tm = tm; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.